Live data from Hacker News

Ask HN: What Python web programming frameworks and tools are you using?

news.ycombinator.com

1–10 of 16 posts

Ask HN: What Python web programming frameworks and tools are you using?

#1
I'm interested in hearing from the community about what tools you are using for building web applications in Python.

So, what tools, databases, web servers and frameworks are you using for your latest Python web application projects? Or, if you've abandoned Python, what language have you moved to, and why?

Re: Ask HN: What Python web programming frameworks and tools are you using?

#2
Bottle[0], Dataset[1], and pipenv[3].

With those three tools I can create a web app with basic functionality with few lines of code, like a prototype. For example:

  from datetime import datetime
  from bottle import get, post, request, run, template, redirect
  import dataset


  db = dataset.connect('sqlite:///database.sqlite')
  entries_table = db['entries']


  @get('/')
  def show_entries():
      entries = entries_table.all()
      entries_sorted = sorted(entries, reverse=True)
      return template('entries', entries=entries_sorted)


  @post('/add')
  def add_entry()
      entry = request.forms.get('entry')
      entries_table.insert(dict(
          text=entry,
          created_by=datatime.utcnow(),
      ))
      return redirect('/')


  run(reloader=True, debug=True)
- [0] https://bottlepy.org/docs/dev/

- [1] https://dataset.readthedocs.io/en/latest/

- [3] https://docs.pipenv.org/

Edit: formatting.

Re: Ask HN: What Python web programming frameworks and tools are you using?

#4
For websites and internal web applications I use the following.

Framework:

- A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask.

- Mako for templating.

Databases:

- PostgreSQL for primary data storage.

- Solr for full-text search.

- Redis for cached data.

Servers:

- Nginx for the front-end server.

- uWSGI for the application server (bridge between Nginx and Django). I'd like to try Nginx Unit.

Browser-side:

- jQuery for functionality.

- Bootstrap for base styles.

Re: Ask HN: What Python web programming frameworks and tools are you using?

#5

For websites and internal web applications I use the following. Framework: - A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask. - Mako for templating. Databases: - PostgreSQL for primary data storage. - Solr for full-text search. - Redis for cached data. Servers: - Nginx for the front-end server. - uWSGI for the application server (bridge between Nginx a…

Flask is really cool. It has a great community and a package for everything you'd need.

Re: Ask HN: What Python web programming frameworks and tools are you using?

#7
post #5

For websites and internal web applications I use the following. Framework: - A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask. - Mako for templating. Databases: - PostgreSQL for primary data storage. - Solr for full-text search. - Redis for cached data. Servers: - Nginx for the front-end server. - uWSGI for the application server (bridge between Nginx a…

Flask is really cool. It has a great community and a package for everything you'd need.

I use Flask in most of my projects, the source is very fun to read.
Post reply on HN