Build modern web applications using Python, PSX, file-based routing, server-side rendering, static generation, React-style hooks, and integrated AI development tools.
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
pip install nextpy-frameworknextpy create my-app
cd my-app
nextpy devVisit:
http://localhost:8000
Build full-stack applications without switching languages.
Write component-based user interfaces using NextPy's Python Syntax Extension.
NextPy includes an integrated AI coding assistant:
nextpy aiChat mode:
nextpy ai chatbotAgent mode:
nextpy ai agentGenerate complete applications:
nextpy ai create ecommerce app- Frontend
- Backend
- API Routes
- Database Integration
- Authentication
- Deployment
Everything in one framework.
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 = HomeVisit the official documentation:
Documentation includes:
- Getting Started
- Routing
- PSX
- Components
- Hooks
- Data Fetching
- API Routes
- Deployment
- AI Assistant
- CLI Reference
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.
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.
If you discover a security vulnerability, please do not create a public issue.
Instead, contact:
We will investigate and respond as quickly as possible.
Licensed under the MIT License.