Skip to main content

Nestipy Logo

Version Python License

Description

Nestipy is a Python framework built on top of FastAPI that follows the modular architecture of NestJS

Under the hood, Nestipy makes use of FastAPI, but also provides compatibility with a wide range of other libraries, like Blacksheep, allowing for easy use of the myriad of third-party plugins which are available.

Getting started

    pip install nestipy-cli
    nestipy new my_app
    cd my_app
    nestipy start --dev
    ├── src
    │    ├── __init__.py
    ├── app_module.py
    ├── app_controller.py
    ├── app_service.py
    ├── main.py
    ├── pyproject.toml
    ├── uv.lock
    ├── README.md
    
       

Documentation

View full documentation from here.

Support

Nestipy is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here].

Stay in touch

License

Nestipy is MIT licensed.

Nestipy Web (Frontend)

Create a fullstack scaffold with the web UI:

    nestipy new my_app --web
    cd my_app
    nestipy start --dev --web --web-args "--vite --install"

Production static serving:

    nestipy run web:build
    nestipy start --web

Check environment health:

    nestipy doctor

Nested Layouts

You can add layout.py files in any folder under app/. The compiler nests layouts to match the folder structure (similar to Next.js).

  • app/layout.py wraps every page.
  • app/api/layout.py wraps only /api/*.

Import rules:

  • from layout import X resolves to the nearest layout.
  • from app.layout import X forces the root layout.

Action Security (Presets)

The CLI exposes flags to enable default Web Action security presets. These map to environment variables consumed by ActionsModule.for_root.

Examples:

nestipy start --dev --action-security --action-origins "http://localhost:5173" --action-csrf

Available flags:

  • --action-security/--no-action-security
  • --action-origins
  • --action-allow-missing-origin/--no-action-allow-missing-origin
  • --action-csrf/--no-action-csrf
  • --action-signature-secret
  • --action-permissions/--no-action-permissions

notfound.py (Planned)

We plan to add notfound.py at any level to define client-side 404 screens for that subtree, mirroring Next.js behavior.

Metadata

Release files for nestipy-cli 0.11.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 nestipy-cli 0.11.1
File Size Uploaded
nestipy_cli-0.11.1.tar.gz 177.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nestipy-cli 0.11.1
File Interpreter ABI Platform
nestipy_cli-0.11.1-py3-none-any.whl Python 3 none any Details

Total release size: 387.5 kB

Release files / nestipy_cli-0.11.1.tar.gz

Download URL nestipy_cli-0.11.1.tar.gz
Size 177.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b5cf0ce19927a2e0814ef5a968f58e8a491590d7e504e603eccb71bdde8e1dea
BLAKE2b-256 checksum
How to use checksums
fc997bef21caa017cedb088fdf099fbd10ba25dc67a0bf5ecff09c748871a53b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / nestipy_cli-0.11.1-py3-none-any.whl

Download URL nestipy_cli-0.11.1-py3-none-any.whl
Size 210.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
533394a6805580e72105b180d23d89df96a32b5813dfb7e8ab75d7b6f64a6829
BLAKE2b-256 checksum
How to use checksums
8152142be25736c0033eb2f83517c643281dfd767f9a4e26ff432a03323e3ca7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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