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.1.tar.gz (523.2 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.1-py3-none-any.whl (573.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nextpy_framework-3.9.1.tar.gz
  • Upload date:
  • Size: 523.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2b82428b712c17a06623b54a1840d0d6cf2fdd4c3d3f49fde1ff506307bf2ae4
MD5 c3d5aed32f1895916e927b784417d97d
BLAKE2b-256 5abffc3c4898f55004255d94cdd3507554dd5942dc11aa0c54a70829bc019c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nextpy_framework-3.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e38e59c57bacbd4df96820ec5a055b3a2e6d4c980af3eef8ebb01a2a999ccde8
MD5 ea355784ee9a1ac301e295acca371db6
BLAKE2b-256 cb7f786af518406f8325b7176cfb275c8af8fc7f8f364330882e19ec9ba3602b

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