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 component, useState

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

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

            <button 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.8.0.tar.gz (279.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.8.0-py3-none-any.whl (331.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nextpy_framework-3.8.0.tar.gz
  • Upload date:
  • Size: 279.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.8.0.tar.gz
Algorithm Hash digest
SHA256 cf487743d8a05676f843f5d75b451f59b060a319169eec9c657a25c3e1892a68
MD5 78e6349bcdd81ad67c045b0de5613660
BLAKE2b-256 1b70ecb38d8d642e68325a011a7d2c5d2448387830df3215994f6fedb2c8eed2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nextpy_framework-3.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5777107d0f86205a944e349ed1b89aee97f3e45026f979fbff796cd701ba3c8c
MD5 30fa1dbb79e06bf9c599eb84aeec1144
BLAKE2b-256 5d76ba1f0dbec407afa8721c716ba9296e0a6bed3d1f3029294efc76ab925820

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