Naja-Atra
Naja-Atra is a lightweight python web framework. It's designed to make starting a web service easier. It supports both HTTP and WebSocket.
Installation
Install and update using pip:
$ pip install -U naja-atra
A Simple Example:
from naja_atra import route
@route('/')
def hello(name: str = 'World'):
return {'message': f'Hello, {name}!'}
To run the app, simply execute the naja-atra command:
$ python3 -m naja_atra
Or, you can run it programmatically:
from naja_atra import route
from naja_atra import server
@route("/")
def hello(name: str = 'World'):
return {"message": f"Hello {name}"}
def main():
server.start(host="0.0.0.0", port=9090)
if __name__ == "__main__":
main()
More
- Source Code: https://github.com/naja-atra/naja-atra
- Issues Tracker: https://github.com/naja-atra/naja-atra/issues
Metadata
Release files for naja-atra 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| naja_atra-1.2.2.tar.gz | 46.1 kB | Without provenance | Details for naja_atra-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| naja_atra-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for naja_atra-1.2.2-py3-none-any.whl |
Total release size: 105.9 kB
Release files / naja_atra-1.2.2.tar.gz
| Download URL | naja_atra-1.2.2.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
411b88f5a651c4de23aefa1ad5f4ba313ed14edc9060799ad8eb55a2b5262a90
|
|
BLAKE2b-256 checksum How to use checksums |
0bf04fc62d1f2cd793e3afbce0264f2641a929c42b970e96f6ade872fa8809af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / naja_atra-1.2.2-py3-none-any.whl
| Download URL | naja_atra-1.2.2-py3-none-any.whl |
|---|---|
| Size | 59.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d29b7d7c638095eb187f1cfc2412afeedd07eada328d94736eab00ee603314ad
|
|
BLAKE2b-256 checksum How to use checksums |
be772f652ce02e1d6f79b563427535ae068dad56175aeff887fd84cc8dbbf06a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for naja-atra 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.