A high-performance, low-latency web application skeleton built with Robyn and Pony ORM. This project is designed for building resource-efficient, highly scalable web applications.
- Ultra-Fast Performance: Built on Robyn, a rust-based Python web framework
- Efficient ORM: Pony ORM for intuitive and performant database operations
- Low Resource Footprint: Optimized for environments with limited resources
- High Scalability: Designed for handling high concurrent loads
- Type Safety: Leverages Python type hints and Pony ORM's type system
- Robyn: High-performance async web framework written in Rust
- Pony ORM: Python ORM with generator-based query execution
- Python 3.8+: Modern Python features and type hints
- SQLite/PostgreSQL: Database support through Pony ORM
- Python 3.8 or higher
- pip (Python package installer)
- A compatible database (SQLite/PostgreSQL)
-
Clone the repository:
git clone https://github.com/aladagemre/robyn-pony.git cd robyn-pony -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure your environment:
cp .env.example .env # Edit .env with your configuration
-
Start the development server:
python app.py
-
Visit
http://localhost:8000in your browser
robyn-pony/
├── app/
│ ├── models/ # Pony ORM entity definitions
│ ├── controllers/ # Request handlers and business logic
│ ├── views/ # Response formatting and templates
│ └── utils/ # Helper functions and utilities
├── config/
│ ├── settings.py # Application settings
│ └── database.py # Database configuration
├── tests/ # Test suite
├── requirements.txt # Project dependencies
└── app.py # Application entry point
- Performance First: Optimized for low latency and minimal resource usage
- Type Safety: Strict typing for better code reliability
- Clean Architecture: Separation of concerns for maintainability
- Scalability: Designed for horizontal scaling
- Minimal Dependencies: Keep the stack lean and efficient
- Robyn's Rust-based core for maximum performance
- Pony ORM's efficient query generation and execution
- Connection pooling for database operations
- Minimal middleware overhead
- Optimized routing system
Run the test suite:
pytest tests/- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Robyn Framework team
- Pony ORM developers
- All contributors to this project
This is a skeleton project meant to be used as a starting point for building high-performance web applications. Customize it according to your specific needs while maintaining the performance-first approach.