Skip to main content

The Python Web Framework introducing file-based routing, SSR, and SSG and more

Project description

NextPy Logo

NextPy Framework

The Full-Stack Python Framework

PyPI Python License Stars

Build modern web applications using Python, PSX, file-based routing, server-side rendering, static generation, React-style hooks, and integrated AI development tools.

DocumentationExamplesDiscordGitHub Discussions

Getting Started

NextPy is a Python-first full-stack framework inspired by the developer experience of Next.js while introducing powerful innovations such as:

  • PSX (Python Syntax Extension)
  • File-based routing
  • Server-side rendering (SSR)
  • Static site generation (SSG)
  • API routes
  • React-style hooks in Python
  • Built-in AI coding assistant
  • Modern CLI tooling
  • Enterprise-ready architecture

Installation

pip install nextpy-framework

Create a Project

nextpy create my-app
cd my-app
nextpy dev

Visit:

http://localhost:8000

Why NextPy?

Python First

Build full-stack applications without switching languages.

PSX

Write component-based user interfaces using NextPy's Python Syntax Extension.

AI Native

NextPy includes an integrated AI coding assistant:

nextpy ai

Chat mode:

nextpy ai chatbot

Agent mode:

nextpy ai agent

Generate complete applications:

nextpy ai create ecommerce app

Full-Stack by Default

  • Frontend
  • Backend
  • API Routes
  • Database Integration
  • Authentication
  • Deployment

Everything in one framework.


Example

from nextpy import interactive_component as component, useState, create_onclick

@component
def Home():
    [count, setCount] = useState(0)

    return (
        <div>
            <h1>Welcome to NextPy</h1>

            <button create_onclick={create_onclick(lambda e: setCount(count + 1))}>
                Count: {count}
            </button>
        </div>
    )

default = Home

Documentation

Visit the official documentation:

https://nextpy.dev/docs

Documentation includes:

  • Getting Started
  • Routing
  • PSX
  • Components
  • Hooks
  • Data Fetching
  • API Routes
  • Deployment
  • AI Assistant
  • CLI Reference

Community

The NextPy community can be found on GitHub Discussions where you can ask questions, share projects, suggest features, and connect with other developers.

  • GitHub Discussions
  • Discord Community
  • X (Twitter)
  • YouTube

Please read and follow our Code of Conduct when participating in community spaces.


Contributing

Contributions are welcome and greatly appreciated.

Before contributing, please read:

  • Contribution Guidelines
  • Code of Conduct

Good first issues are available for new contributors looking to get involved.


Security

If you discover a security vulnerability, please do not create a public issue.

Instead, contact:

security@rahimstudios.com

We will investigate and respond as quickly as possible.


License

Licensed under the MIT License.


Built with ❤️ by RahimStudios

The future of AI-native Python development.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextpy_framework-3.9.0.tar.gz (280.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nextpy_framework-3.9.0-py3-none-any.whl (332.4 kB view details)

Uploaded Python 3

File details

Details for the file nextpy_framework-3.9.0.tar.gz.

File metadata

  • Download URL: nextpy_framework-3.9.0.tar.gz
  • Upload date:
  • Size: 280.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nextpy_framework-3.9.0.tar.gz
Algorithm Hash digest
SHA256 4c16cc4c1d87b52e300a4af28964430c3202b3ff242fd9ce3eb1b097f8510c8a
MD5 82590cbdaa5e03c4c308fe37bc19477b
BLAKE2b-256 78d2f628962d7695628cdcdc5708d8e085781f5475bc37a5637520b543b7a781

See more details on using hashes here.

File details

Details for the file nextpy_framework-3.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nextpy_framework-3.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73b98564783353a90b8317dab2cabac07abed978f577b7d50cb5f5fcaec92f12
MD5 a5eec08543e3ff1445e3787a4137376d
BLAKE2b-256 1295cf728126f142218a86b88fbaf8a2848b5c0e218c73a4d6d6acc3f6b359a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page