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.3.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.3.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for emmett55-1.3.0.tar.gz
Algorithm Hash digest
SHA256 931512d874e7f96920f0a2b15a458be975f262a88e202ef98139c7c8ab33be44
MD5 ad9fd2de9b7340b7b475a5935872695a
BLAKE2b-256 21892293fe43976db79d707c60b52c17feab2a86bb1b6f685b5690782388a37a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: emmett55-1.3.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.13.7

File hashes

Hashes for emmett55-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c2264b7dcd6384bc26bbe48a1e71fdec0214205b0bd6632b8c99fa10b299b14
MD5 ca881e631fc5769bd2d4d80550ed45ab
BLAKE2b-256 c75e4172fc432fb3b8ea07bc7eaa6d3ad23457d409141441b21e9ae19c1a2774

See more details on using hashes here.

Provenance

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