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:
- application and modules
- routing
- request/response/session/websocket helpers
- the pipeline
- services (JSON only)
- caching (except for disk cache)
- HTML code generation
- extensions
- testing client
- CLI (with the
emmett55
command)
Consequentially, Emmett55 doesn't include:
- the ORM
- the authentication system
- the templating system
- the internationalization system
- validations
- forms utilities
- XML services
- disk caching
- the mailer
- the debugger
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d086dd07a95d64b643b2d0c849757cf2fd848ce9269c8b9c422ded3c5e3dfaae |
|
MD5 | 4008cf01250be4599c449b78a7a8abcc |
|
BLAKE2b-256 | c1ed0c0976da99a332a9afa4f3a5bb79cc24801b7b04f9be1bc2c136b0e04078 |
Provenance
The following attestation bundles were made for emmett55-1.0.1.tar.gz
:
Publisher:
publish.yml
on emmett-framework/emmett55
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
emmett55-1.0.1.tar.gz
- Subject digest:
d086dd07a95d64b643b2d0c849757cf2fd848ce9269c8b9c422ded3c5e3dfaae
- Sigstore transparency entry: 149127603
- Sigstore integration time:
- Predicate type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6666902157df2a45c415fab19ac37a73119e18a6341f43dd83a074ee352f0cd9 |
|
MD5 | 00e6a484f37e511849951297777ee850 |
|
BLAKE2b-256 | 15200feb411bc4d3db1007ac9e54d44b45d2c245e01f15705d45b1331e38b75d |
Provenance
The following attestation bundles were made for emmett55-1.0.1-py3-none-any.whl
:
Publisher:
publish.yml
on emmett-framework/emmett55
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
emmett55-1.0.1-py3-none-any.whl
- Subject digest:
6666902157df2a45c415fab19ac37a73119e18a6341f43dd83a074ee352f0cd9
- Sigstore transparency entry: 149127606
- Sigstore integration time:
- Predicate type: