Skip to main content

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

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)

Source distribution for naja-atra 1.2.2
File Size Uploaded
naja_atra-1.2.2.tar.gz 46.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for naja-atra 1.2.2
File Interpreter ABI Platform
naja_atra-1.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page