Need advice about which tool to choose?Ask the StackShare community!

.NET

6.2K
5.1K
+ 1
1.8K
Flask

17.4K
14.8K
+ 1
1.6K
Add tool

.NET vs Flask: What are the differences?

What is .NET? A free, cross-platform, open source developer platform for building many different types of applications. .NET is a general purpose development platform. With .NET, you can use multiple languages, editors, and libraries to build native applications for web, mobile, desktop, gaming, and IoT for Windows, macOS, Linux, Android, and more.

What is Flask? a microframework for Python based on Werkzeug, Jinja 2 and good intentions. Flask is intended for getting started very quickly and was developed with best intentions in mind.

.NET and Flask are primarily classified as "Frameworks (Full Stack)" and "Microframeworks (Backend)" tools respectively.

"Tight integration with visual studio", "Stable code" and "Great community" are the key factors why developers consider .NET; whereas "Lightweight", "Python" and "Minimal" are the primary reasons why Flask is favored.

.NET and Flask are both open source tools. Flask with 44.8K GitHub stars and 12.6K forks on GitHub appears to be more popular than .NET with 11K GitHub stars and 2.37K GitHub forks.

According to the StackShare community, .NET has a broader approval, being mentioned in 1561 company stacks & 231 developers stacks; compared to Flask, which is listed in 502 company stacks and 509 developer stacks.

Advice on .NET and Flask
Needs advice
on
C#C#.NET.NET
and
.NET Core.NET Core

I have to write an application for a Windows Server that either runs on a scheduled task or can run on a Windows server and triggered by a webhook. What other .NET project types or methods within a project can I do this with?

I know I could probably host an API on IIS on the Windows server and do it that way, but all my APIs are in Azure App service, and this has to integrate with the Windows desktop application.

See more
Replies (2)
Recommends
C#C#.NET Core.NET Core

It all depends on your use case. You mentioning "scheduled task" appears you want to use a Worker Service

If you want to trigger your actions you can host a webapi, too.

Bottomline: Both use cases suffice your needs so your course depends on where you want to "control" your app ( set delay, maybe sometimes start the action manually ). WorkerService -> Config file on the host Api -> Configure from client

See more
Recommends
Azure FunctionsAzure Functions

What you mean integrate on "all my APIs are in Azure App service and this has to integrate with Windows desktop application.". Try to explain a little bit what's your requirements.

If you want to Read/Write a SQL DB on premises, you can use a Azure Gateway without deploy anything in your server, another choice with SQL Server is to move the DB to Azure (if supported). You can use the triggers on Azure Functions to write/read something on Azure Storage, from your Server you can read the storage and perform some tasks. As you can see there are multiple choice without writing much code on premises, try to clarify your requirements.

See more
kristan-dev
Senior Solutions Analyst · | 8 upvotes · 274.7K views

My journey to developing REST APIs started with Flask Restful, and I've found it to be enough for the needs of my project back then. Now that I've started investing more time on personal projects, I've yet to decide if I should move to use Django for writing REST APIs. I often see job posts looking for Python+Django developers, but it's usually for full-stack developers. I'm primarily interested in Data Engineering, so most of my web projects are back end.

Should I continue with what I know (Flask) or move on to Django?

See more
Replies (1)
Rafael Torres
Technical Lead at 4Agile · | 9 upvotes · 265.3K views

If you want to be a Web developer with knowledge in another frontend and NoSql technology, maybe continue with Flask. However, if you want to create very fast solutions to grow up with a new business and merge these with data analysis and other tools, Django is the answer. Basically read more about the service architecture where you feel more comfortable, Microservice or Monolithic, but please will not married with any because they solve issues to different contexts.

See more
Girish Sharma
Software Engineer at FireVisor Systems · | 6 upvotes · 219.9K views
Needs advice
on
BottleBottleFlaskFlask
and
NamekoNameko

Which is the best Python framework for microservices?

We are using Nameko for building microservices in Python. The things we really like are dependency injection and the ease with which one can expose endpoints via RPC over RabbitMQ. We are planning to try a tool that helps us write polyglot microservices and nameko is not super compatible with it. Also, we are a bit worried about the not so good community support from nameko and looking for a python alternate to write microservices.

See more
Replies (1)
Recommends
BottleBottle

Bottle is much less bloated and fast. Its built-in templating system is one of the fastest as it compiles the templates in bytecode. Also Bottle has no depenencies, preventing dependency bloat.

See more
Saurav Pandit
Application Devloper at Bny Mellon · | 6 upvotes · 224.9K views

I have just started learning Python 3 weeks ago. I want to create a REST API using python. The API will be used to save form data in an Oracle database. The front end is using AngularJS 8 with Angular Material. In python, there are so many frameworks to develop REST APIs.

I am looking for some suggestions which REST framework to choose?

Here are some features I am looking for:

  • Easy integration and unit testing, like in Angular. We just want to run a command.

  • Code packaging, like in java maven project we can build and package. I am looking for something which I can push in as an artifact and deploy whole code as a package.

  • Support for swagger/ OpenAPI

  • Support for JSON Web Token

  • Support for test case coverage report

Framework can have features included or can be available by extension. Also, you can suggest a framework other than the ones I have mentioned.

See more
Replies (1)
Recommends
FlaskFlask
at

For starters flask provides a beautiful and easy way to create REST APIs. Also its supported by excellent beginner docs as well as a very active community. Another good thing with Flask is its widely available list of plugins which allow you to build as you go. Its also good in performance and can scale to a quite decent level. However, if you are sure your project is going to be fairly big, it would be better to start with Django as it provides a lot of features out of the box and is extremely stable in performance. Both these frameworks have support for Swagger, JWT, Coverage Report although you have to install plugins for them. Deploying both of these are fairly simple and there is huge documentation available. Django has one of the best documentations I have come across. I hope I was able to answer your queries.

See more
Decisions about .NET and Flask
Ing. Alvaro Rodríguez Scelza
Software Systems Engineer at Ripio · | 9 upvotes · 389.1K views

Decided to change all my stack to microsoft technologies for they behave just great together. It is very easy to set up and deploy projects using visual studio and azure. Visual studio is also an amazing IDE, if not the best, when used for C#, it allows you to work in every aspect of your software.

Visual studio templates for ASP.NET MVC are the best I've found compared to django, rails, laravel, and others.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of .NET
Pros of Flask
  • 271
    Tight integration with visual studio
  • 261
    Stable code
  • 187
    Great community
  • 181
    Reliable and strongly typed server side language.
  • 140
    Microsoft
  • 119
    Fantastic documentation
  • 89
    Great 3rd party libraries
  • 79
    Speedy
  • 71
    Great azure integration
  • 63
    Great support
  • 33
    Linq
  • 33
    Highly productive
  • 33
    C#
  • 30
    High Performance
  • 28
    Great programming languages (C#, VB)
  • 24
    Open source
  • 19
    Powerful Web application framework (ASP.NET MVC)
  • 16
    Clean markup with razor
  • 16
    Fast
  • 15
    Powerful ORM (EntityFramework)
  • 13
    Dependency injection
  • 10
    Visual studio + Resharper = <3
  • 10
    Constantly improving to keep up with new trends
  • 9
    High-Performance
  • 8
    Security
  • 8
    TFS
  • 7
    Integrated and Reliable
  • 7
    Huge ecosystem and communities
  • 7
    Job opportunities
  • 6
    Light-weight
  • 6
    Lovely
  • 5
    {get; set;}
  • 5
    Variations
  • 5
    Asynchrony
  • 4
    Concurrent
  • 4
    Entity framework
  • 4
    Support and SImplicity
  • 4
    Default Debuging tools
  • 4
    Useful IoC
  • 4
    Scaffolding
  • 3
    Blazor
  • 2
    Nuget package manager
  • 2
    F♯
  • 2
    F#
  • 319
    Lightweight
  • 275
    Python
  • 217
    Minimal
  • 149
    Open source
  • 100
    Documentation
  • 69
    Easy to use
  • 55
    Well designed
  • 55
    Easy to setup and get it going
  • 51
    Easy to develop and maintain applications
  • 48
    Easy to get started
  • 22
    Beautiful code
  • 19
    Rapid development
  • 16
    Powerful
  • 15
    Expressive
  • 14
    Customizable
  • 14
    Flexibilty
  • 14
    Simple to use
  • 13
    Love it
  • 13
    Get started quickly
  • 13
    Awesome
  • 12
    Speed
  • 11
    Perfect for small to large projects with superb docs.
  • 11
    Easy to integrate
  • 10
    For it flexibility
  • 9
    Productive
  • 9
    Flexibilty and easy to use
  • 8
    Flask
  • 8
    Not JS
  • 7
    User friendly
  • 6
    Secured
  • 5
    Unopinionated
  • 3
    Orm
  • 2
    Secure

Sign up to add or upvote prosMake informed product decisions

Cons of .NET
Cons of Flask
  • 12
    C#
  • 11
    Too expensive to deploy and maintain
  • 7
    Microsoft dependable systems
  • 7
    Microsoft itself
  • 4
    Hard learning curve
  • 3
    Tight integration with visual studio
  • 1
    Not have a full fledged visual studio for linux
  • 10
    Not JS
  • 7
    Context
  • 5
    Not fast
  • 1
    Don't has many module as in spring

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is .NET?

.NET is a general purpose development platform. With .NET, you can use multiple languages, editors, and libraries to build native applications for web, mobile, desktop, gaming, and IoT for Windows, macOS, Linux, Android, and more.

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.

Need advice about which tool to choose?Ask the StackShare community!

What companies use .NET?
What companies use Flask?
See which teams inside your own company are using .NET or Flask.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with .NET?
What tools integrate with Flask?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to .NET and Flask?
ASP.NET
.NET is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
See all alternatives