Python package manager with uv-like optimizations
Project description
Hermes
Fast Python package manager with uv-like optimizations
Ever thought why uv is fast, most people attribute it to being written in Rust, but there are several other optimisations that uv does, which we have tried to implement here
IMPORTANT : Hermes is currently designed as an educational project (Not a complete dependency manager, while i would definitely like to make it prod grade, there is a long way to go for that)
Currently hosted on TestPyPi only since i am still working on the core items, will move to PyPi when confident about the performance and stability.
UV-Inspired Features
- PubGrub Dependency Resolution - Advanced SAT-based resolver (same algorithm as UV)
- Parallel Async Downloads - HTTP/2 support with configurable concurrency limits
- Two-Tier Global Cache - Separate wheels and unpacked package caches
- Zero-Copy Installations - Reflink → hardlink → copy fallback strategy (30% disk savings on APFS)
- Lock File Support - Reproducible builds with
hermes.lock - Fast Metadata Fetching - PEP 658 support for direct
.metadataaccess - Virtual Environment Management - Lightweight venv creation without pip
- Parallel Installation - ThreadPoolExecutor with 4 workers for concurrent package installs
- SHA256 Verification - Automatic integrity checking for all downloads
- Platform-Aware Wheel Selection - Intelligent matching for OS, architecture, and Python version
- Security Auditing - Built-in vulnerability scanning via OSV database
- Rich CLI - Colored output, progress indicators, and performance tracking
Installation
pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
hermes-pm
Initialize a Project
# Create a new project
mkdir my-project
cd my-project
# Initialize (creates .venv, pyproject.toml, hermes.lock)
hermes init
Add Packages
# Add single package
hermes add requests
# Add multiple packages
hermes add httpx rich typer
# Add with version constraints
hermes add "requests>=2.28.0"
hermes add "httpx<1.0"
Sync from Lock File
# Install from hermes.lock (fast!)
hermes sync
List Packages
# Show all installed packages
hermes list
Remove Packages
# Remove package and unused dependencies
hermes remove requests
# Remove package but keep its dependencies
hermes remove requests --keep-deps
Security Audit
# Scan all installed packages for vulnerabilities
hermes audit
Manage Cache
# View cache statistics
hermes cache info
# Clear cache
hermes cache clear
Performance
Comprehensive benchmarks comparing Hermes against pip and Poetry can be found in the benchmarks directory (Tier wise separation, you can add or remove any packages you want for benchmarking):
Warm Cache Performance (vs pip)
| Tier | Packages | Hermes Speedup | Disk Savings |
|---|---|---|---|
| Basic Data Science | 5 | 1.78x faster | 32.8% smaller |
| ML Engineering | 8 | 1.26x faster | 29.3% smaller |
| Full ML Stack | 12 | 1.09x faster | 30.4% smaller |
Key Highlights:
- 26-78% faster than pip for cached reinstalls
- ~30% less disk space through reflink copies (APFS/Btrfs)
- 4-12x cache effectiveness - dramatically faster warm cache installs
- Parallel installation with ThreadPoolExecutor (4 workers)
Benchmarked on Python 3.13.7, macOS (Darwin 23.5.0), packages: numpy, pandas, matplotlib, scikit-learn, scipy, etc.
📖 Commands
| Command | Description |
|---|---|
hermes init |
Initialize a new project (venv, pyproject.toml, hermes.lock) |
hermes add <packages> |
Add and install packages with dependency resolution |
hermes list |
Show all installed packages |
hermes remove <packages> |
Remove packages (includes orphaned dependencies by default) |
hermes remove <pkg> --keep-deps |
Remove package but keep its dependencies |
hermes sync |
Install all packages from hermes.lock |
hermes audit |
Scan installed packages for security vulnerabilities (OSV) |
hermes cache info |
Show cache location, size, and statistics |
hermes cache clear |
Clear the global package cache |
hermes --version / -V |
Show Hermes version |
hermes --help |
Show help message |
Inspired by: uv - A production-ready, blazing-fast package manager
Testing
We have a shell file test suite that validates all core functionality
./test_core.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hermes_pm-0.0.1.tar.gz.
File metadata
- Download URL: hermes_pm-0.0.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc4f38245d308ae43fc5f8e9547979c02b3f5366e970b1c643c388f0d80fb64
|
|
| MD5 |
4072c7f79de9cbdeed681582e322c593
|
|
| BLAKE2b-256 |
8e41dc9dcce527ad731a2bedb1d3cd60e1e8f31d274bbfeea797471d876683e7
|
File details
Details for the file hermes_pm-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hermes_pm-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba501d9828b474a16327befed1c51104a152a4878ad0ba662b0d043d484919d0
|
|
| MD5 |
69a4f7e6d0b611c3e2134971e3afc175
|
|
| BLAKE2b-256 |
2fc51d2156f515fe89c1f69ce4a7c8f22b4ac406ed4236245a3144477888b471
|