Installing Framefox
Get Framefox up and running on your system in just a few minutes. This guide covers system requirements, installation steps, and verification.System Requirements
Python 3.12 or higher is required to run Framefox. The framework leverages modern Python features and type hints available in Python 3.12+.
Prerequisites
Before installing Framefox, ensure you have:- Python 3.12+ installed on your system
- pip package manager (usually comes with Python)
- A terminal or command prompt
- (Optional) A virtual environment tool like
venvorvirtualenv
Check Python Version
Run
python --version or python3 --version to verify you have Python 3.12 or higher installed.Check pip
Run
pip --version or pip3 --version to ensure pip is installed and working.Installation Steps
Create a Virtual Environment (Recommended)
It’s best practice to use a virtual environment for your Python projects to avoid dependency conflicts:You should see
(venv) in your terminal prompt when the virtual environment is activated.Install Framefox
Install Framefox using pip:This will install Framefox and all its dependencies, including:
- FastAPI (version 0.115.7 or higher) - Web framework foundation
- SQLModel (version 0.0.22 or lower) - SQL database models
- Pydantic - Data validation
- Uvicorn (version 0.34.0 or higher) - ASGI server
- Jinja2 (version 3.1.4 or higher) - Template engine
- Alembic (version 1.14.1 or higher) - Database migrations
- Typer (version 0.15.1 or higher) - CLI framework
- And many more supporting libraries
The installation may take a few minutes depending on your internet connection and system performance.
Verify Installation
Confirm that Framefox is installed correctly by checking its version:You can also view available commands:This should display a list of available Framefox CLI commands including:
framefox init- Initialize a new projectframefox run- Start the development serverframefox create- Generate componentsframefox database- Database management- And more
Core Dependencies
Framefox automatically installs these core dependencies:Database Drivers
Framefox includes drivers for multiple databases:- PyMySQL (>=1.1.1) - MySQL/MariaDB support
- psycopg2-binary (>=2.9.10) - PostgreSQL support
- SQLite - Built into Python (no additional driver needed)
You don’t need to install database drivers separately. They’re included with Framefox.
Optional: Database Setup
While not required for installation, you may want to set up a database:- SQLite
- MySQL
- PostgreSQL
SQLite works out of the box with no additional setup:Perfect for development and small applications.
Troubleshooting
Python Version Issues
If you get an error about Python version:Permission Errors
If you encounter permission errors during installation:ImportError or Module Not Found
If you get import errors after installation:- Ensure your virtual environment is activated
- Verify Framefox is installed:
pip show framefox - Try reinstalling:
pip install --force-reinstall framefox
Next Steps
Now that Framefox is installed, you’re ready to create your first application!Quickstart Guide
Follow the quickstart tutorial to build your first Framefox application in minutes.
Upgrading Framefox
To upgrade to the latest version of Framefox:Check the changelog before upgrading to review breaking changes and new features.