Skip to main content

A gevent-intended very very basic flask-like WSGI server

Project description

Why? What?

I’m making a very light-weight internal network service, and am using the amazing flask, as it’s excellent for prototyping such things.

However, I feel like it’s a little over-weight for the simplicity of the task. So, out of curiosity, I’m trying to make a flask-alike server and WSGI microframework which has just enough for these types of projects.

It’s not intended to replace flask, obviously. There’s no point.

But it is intended that for things like this which don’t need a templating language, or any of that, it should be close enough to flask that I can drop this in, and with minimal changes have it running very quickly.

current state:

very very very initial alpha. For pure JSON based views, it’s kind of working. For templating, it’s using pythons string.format instead of jinja2.

Routes currently don’t use variables, but are just a plain lookup.

static files seem to be (initially) working.

mime detection of template types isn’t really working yet.

All that said:

It’s quite fast. (Ha, no surprise, with all those caveats…)

broken stuff:

  • the ‘request’ object is just the pure WSGI environ at the moment.

  • MIME types for templates (and static files)

  • routing <with><vars>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

espressocup-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file espressocup-0.0.3.tar.gz.

File metadata

  • Download URL: espressocup-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for espressocup-0.0.3.tar.gz
Algorithm Hash digest
SHA256 628032c6434d96556bb4473d00afe023543ea2545b61808855ceb7ca857dc4c1
MD5 2f75726eb17ccd819bf0b14ebfbfa6d9
BLAKE2b-256 c884d8f9e51618fa31ab3a91ad1d7732dbe8f70ebe5326015de22ec43fb348ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page