Installation
Requirements
Python 3.9 or higher
Basic Installation
Install Velox from PyPI:
pip install velox-web
This installs Velox without any dependencies.
With ASGI Support
To use async features, install with uvicorn:
pip install velox-web[asgi]
This installs:
velox-web— The frameworkuvicorn— ASGI server
With Full Features
To install all features:
pip install velox-web[full]
This installs:
velox-web— The frameworkuvicorn— ASGI serverpsycopg2-binary— PostgreSQL supportredis— Redis cache supportaiosqlite— Async SQLite supportasyncpg— Async PostgreSQL support
Development Dependencies
For local development:
pip install velox-web[dev]
This installs:
pytest— Test frameworkpytest-asyncio— Async test supporthttpx— HTTP client for testing
Verify Installation
After installing, verify it works:
import velox
print(velox.__version__) # Should print 1.0.0
Or run the built-in server:
from velox import Velox
app = Velox(__name__)
@app.get('/')
def home(req, res):
res.text('Hello from Velox!')
app.run()
Then open http://localhost:8000 in your browser.
From Source
Install from the latest source:
git clone https://github.com/Barros1915/velox.git
cd velox
pip install -e .
Upgrading
To upgrade to the latest version:
pip install --upgrade velox-web
Or for a specific version:
pip install velox-web==1.0.0