Skip to main content

Nexa.py – A Python Web Framework

Nexa.py is a Python web framework designed to make web application development easier.

Initial Setup

1. Clone the repository

git clone https://github.com/faizanurrahim/Nexa.py.git NexaPY

2. Navigate to the project directory

cd NexaPY

3. Install Nexa.py

pip install -e .

4. Verify the installation

nexa --help

If the command displays the Nexa.py help menu, the installation was successful! OR

try:
    from Nexa import NXserver
    print("Nexa.py installed")
except Exception as exc: print(exc)

Quick Start

Start with the Basics

Create a file named app.py:

from Nexa import NXserver

# Create your application
app = NXserver("My First App")

# Define your first route
app.route("/")(lambda: "<h1>Hello, World!</h1>")

# Run the application
app.run()

Run the Application

python app.py

NXserver binds to 127.0.0.1:3000 by default, keeping the application local to your machine. Set host="0.0.0.0" only when you intend to listen on every IPv4 interface.

To select a host and port explicitly:

app = NXserver("My App", host="127.0.0.1", port=3000)

Templating

Nexa.py supports template rendering through render_template().

1. Create the application

Create a file named app.py:

from Nexa import NXserver, render_template

# Create your application
app = NXserver("My First App")

# Define your first route
app.route("/")(lambda: render_template("index.nxs", Name="Nexa.py"))

2. Create your template

Create a folder named templates and inside it create index.nxs:

Project structure:

NexaPY/
│
├── app.py
└── templates/
    └── index.nxs

templates/index.nxs

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First Template</title>
</head>
<body>
    <h1>Hi {{Name}}</h1>
</body>
</html>

3. Run the Application

python app.py

Your browser should display:

Hi Nexa.py

More Concepts

Explore more Nexa.py features and examples:

Read Concepts Documentation

Metadata

Release files for Nexa.py 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Nexa.py 0.5.1
File Size Uploaded Provenance Actions
nexa_py-0.5.1.tar.gz 43.7 kB With provenance Details for nexa_py-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Nexa.py 0.5.1
File Interpreter ABI Platform Actions
nexa_py-0.5.1-py3-none-any.whl Python 3 none any Details for nexa_py-0.5.1-py3-none-any.whl

Total release size: 88.7 kB

Release files / nexa_py-0.5.1.tar.gz

Download URL nexa_py-0.5.1.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c45485a2b12a9a32022555f358350d690c421e1cebb20100993833d18c48b0
BLAKE2b-256 checksum
How to use checksums
625789b55334f4bd3211a9c3def37aee77f09a4f78cab9465e428ab8fbb2c552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / nexa_py-0.5.1-py3-none-any.whl

Download URL nexa_py-0.5.1-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acdc1768bc98a4e203727d39f1da2d29e15af31e18b8b24d7c9cd38b8eb0cf66
BLAKE2b-256 checksum
How to use checksums
b3700c29a9cb2705bbf49d813b46efb5131e977b1d054bc99d4bec7045d5b190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for Nexa.py 0.5.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nexa_py-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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.

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