Requirements
BinaryDB has minimal requirements:- Python 3.10+ (uses modern type hints like
str | Path) - Standard library only - No external dependencies required
pickle- For object serializationpathlib- For file system operationstyping- For type annotations
Getting BinaryDB
BinaryDB is currently distributed as source code. You can get it from the GitHub repository and integrate it into your project.Copy to your project
Copy the Your project structure should now look like:
binarydb directory to your project:Repository Structure
The BinaryDB package is organized as follows:Some modules are currently empty or in development. The core functionality is implemented in
database.py and errors.py.Verifying Installation
To verify that BinaryDB is correctly installed, try importing it:Development Setup
If you’re planning to contribute to BinaryDB or run tests, you may want to install it in development mode:Common Issues
Import Errors
If you getModuleNotFoundError: No module named 'binarydb', make sure:
- The
binarydbdirectory is in your project root or in your Python path - The directory contains an
__init__.pyfile - You’re running Python from the correct directory
Python Version
BinaryDB uses modern Python type hints likestr | Path (PEP 604). If you get syntax errors, ensure you’re using Python 3.10 or later:
Permission Errors
If you encounter permission errors when creating database files, ensure your application has write access to the directory where you’re storing the database:Alternative: Standalone File
For simple projects, you can use just the core files:- Copy
database.pyanderrors.pyto your project - Remove the relative imports if needed
- Import directly:
from database import Database
Next Steps
Now that BinaryDB is installed, learn how to use it:Quick Start Guide
Build your first BinaryDB application with step-by-step examples
