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)
    handle_count=create_onclick(lambda e: setCount(count + 1))

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

            <button create_onclick={handle_count}>
                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-4.1.0.tar.gz (539.0 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-4.1.0-py3-none-any.whl (592.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nextpy_framework-4.1.0.tar.gz
Algorithm Hash digest
SHA256 52e6b6acc82cd11dd075ee8912288aa9c926aa0c07ce46aecb52277d3b4f22ab
MD5 58d32548bf2df9e26788d7cbf1263b8a
BLAKE2b-256 07550e8c16e6f02919c031bbfcaa62434a9f7880efef165dd028d93d65abe2df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nextpy_framework-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b41aaabca41859ddeb7a57890f30aa6333f551756ee5ed9e1d4e9401a18a428
MD5 509a0126d924b64bf89ceccd579a1027
BLAKE2b-256 ba981d28c6692f01bcfb010939b6ba19ff41405e65e5b364bc4e3119f219eb32

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