The stable version of Hypergraph-DB is available on PyPI. You can install it with pip:
pip install hypergraph-dbFor development or to get the latest features, you can install from the GitHub repository:
pip install git+https://github.com/iMoonLab/Hypergraph-DB.git!!! warning "Development Version" The development version may be unstable and not fully tested. If you encounter any bugs, please report them in GitHub Issues.
For faster dependency management, we recommend using uv:
=== "Windows"
powershell powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
=== "macOS/Linux"
bash curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone the repository
git clone https://github.com/iMoonLab/Hypergraph-DB.git
cd Hypergraph-DB
# Install with development dependencies
uv sync --extra devTo verify that Hypergraph-DB is installed correctly:
import hyperdb
print(f"Hypergraph-DB version: {hyperdb.__version__}")
# Create a simple hypergraph
hg = hyperdb.HypergraphDB()
hg.add_v(1, {"name": "test"})
print("Installation successful!")Hypergraph-DB has minimal dependencies, but you can install optional packages for enhanced functionality:
If you want to use the built-in visualization features:
# These are included in the base installation
# No additional dependencies needed for basic visualizationFor contributing to the project:
# Using pip
pip install hypergraph-db[dev]
# Using uv
uv sync --extra devThis includes:
pytest- for running testsblack- for code formattingisort- for import sorting
For building documentation:
# Using pip
pip install hypergraph-db[docs]
# Using uv
uv sync --extra docs- Python Version: Ensure you're using Python 3.10 or later
- Virtual Environment: Consider using a virtual environment to avoid conflicts
- Permissions: On some systems, you might need to use
pip install --user
If you encounter issues:
- Check the GitHub Issues
- Create a new issue with detailed information about your setup
- Contact the maintainers at evanfeng97@qq.com