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.2.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emmett55-1.2.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emmett55-1.2.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emmett55-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1c9c16e24cbdf29867af1323a16b390f42eba47890b7ac0c275b791625b28044
MD5 77468fa6050fd79a1758195af6656425
BLAKE2b-256 2852aae3d6fdfc280788b952bec04b95611f2f34fa981e9769d384159e028165

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on emmett-framework/emmett55

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: emmett55-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emmett55-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7929f3ded8220edefa66f054f67567c8e3fcf45a45d6c36885cff32aae24012c
MD5 785f67d3f48bf7db55076d6fc82c0b09
BLAKE2b-256 f8e53fc1e506cad859c585b78edb9f967d9258d20d5938bf91b51d0079f32361

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on emmett-framework/emmett55

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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