Skip to main content

The micro web framework for inventors

Project description

Emmett55

Emmett55 is a Python micro web framework designed with simplicity in mind.

from emmett55 import App, request, response
from emmett55.tools import service, requires

app = App(__name__)

def is_authenticated():
    return request.headers.get("api-key") == "foobar"
    
def not_authorized():
    response.status = 401
    return {"error": "not authorized"}

@app.route("/", methods='get')
@requires(is_authenticated, otherwise=not_authorized)
@service.json
async def index():
    return {"message": "hello world"}

Compared with Emmett

Emmett55 is based on Emmett and shares the following features with it:

Consequentially, Emmett55 doesn't include:

Typical use-cases for picking Emmett55 over Emmett are:

  • the lack of need of the upper-mentioned missing features
  • the desire to use different libraries in place of the Emmett components, like SQLAlchemy or Jinja

Documentation

While we're still in the process of developing Emmett55 documentation, the Emmett one can be examined – with the caviat to replace emmett with emmett55 when mentioned and keep in mind the upper-mentioned list of non-included features.

License

Emmett55 is released under the BSD License.

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

emmett55-1.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

emmett55-1.0.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file emmett55-1.0.1.tar.gz.

File metadata

  • Download URL: emmett55-1.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for emmett55-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d086dd07a95d64b643b2d0c849757cf2fd848ce9269c8b9c422ded3c5e3dfaae
MD5 4008cf01250be4599c449b78a7a8abcc
BLAKE2b-256 c1ed0c0976da99a332a9afa4f3a5bb79cc24801b7b04f9be1bc2c136b0e04078

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett55-1.0.1.tar.gz:

Publisher: publish.yml on emmett-framework/emmett55

Attestations:

File details

Details for the file emmett55-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: emmett55-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for emmett55-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6666902157df2a45c415fab19ac37a73119e18a6341f43dd83a074ee352f0cd9
MD5 00e6a484f37e511849951297777ee850
BLAKE2b-256 15200feb411bc4d3db1007ac9e54d44b45d2c245e01f15705d45b1331e38b75d

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett55-1.0.1-py3-none-any.whl:

Publisher: publish.yml on emmett-framework/emmett55

Attestations:

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