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.1.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.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emmett55-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 ef03a709c826fc3da29c9c181f16ce2cdd3974d9d3c9c065aa7f4752c63be4fb
MD5 774681141be013af35b4d5da520cb1d3
BLAKE2b-256 f8fe2fc06b39dd2a2386e843d0462049a51fca6d3461b3c1f250a9d18133f81a

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett55-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: emmett55-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57e82ae48113c33dd7251b5e2778539246753d994e8ac217097d1b1da6669e6e
MD5 b43d30a60408d4e398333e5b40eb31b4
BLAKE2b-256 3e612bcb53c44ca07ee73a47d4a640e21ba31db07f7ca0a7a6e56d2cc208d7e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett55-1.1.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