Installation¶
Requirements¶
Before installing ifc-graph, ensure you have:
- Python 3.9 or higher
- Neo4j Database (version 4.x or 5.x)
- pip package manager
Installing from PyPI¶
The recommended way to install ifc-graph is via pip:
This will install the package along with all required dependencies:
ifcopenshell- For parsing IFC filesneo4j- Python driver for Neo4j databasepyyaml- For configuration file parsingpython-dotenv- For environment variable management
Installing from Source¶
If you want to install the latest development version or contribute to the project:
# Clone the repository
git clone https://github.com/mugojames254/ifc-graph-database.git
cd ifc-graph-database
# Install in development mode
pip install -e .
With Development Dependencies¶
For development work, install with dev dependencies:
This includes:
pytest- Testing frameworkpytest-cov- Coverage reportingblack- Code formatterruff- Lintermypy- Type checker
With Documentation Dependencies¶
To build the documentation locally:
Verifying Installation¶
After installation, verify everything works:
You should see output similar to:
Setting Up Neo4j¶
ifc-graph requires a running Neo4j database. Here are your options:
Option 1: Neo4j Desktop (Recommended for beginners)¶
- Download Neo4j Desktop
- Create a new project and database
- Start the database
- Note the connection URI (usually
bolt://localhost:7687)
Option 2: Docker¶
docker run -d \
--name neo4j \
-p 7474:7474 -p 7687:7687 \
-e NEO4J_AUTH=neo4j/your_password \
neo4j:latest
Option 3: Neo4j AuraDB (Cloud)¶
- Create a free account at Neo4j AuraDB
- Create a new database instance
- Note the connection URI and credentials
Next Steps¶
Once installed, proceed to the Quick Start guide to process your first IFC file.