Common utilities and types for GraphRAG
Project description
GraphRAG Common
This package provides utility modules for GraphRAG, including a flexible factory system for dependency injection and service registration, and a comprehensive configuration loading system with Pydantic model support, environment variable substitution, and automatic file discovery.
Factory module
The Factory class provides a flexible dependency injection pattern that can register and create instances of classes implementing a common interface using string-based strategies. It supports both transient scope (creates new instances on each request) and singleton scope (returns the same instance after first creation).
Open the notebook to explore the factory module example code
Config module
The load_config function provides a comprehensive configuration loading system that automatically discovers and parses YAML/JSON config files into Pydantic models with support for environment variable substitution and .env file loading. It offers flexible features like config overrides, custom parsers for different file formats, and automatically sets the working directory to the config file location for relative path resolution.
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 graphrag_common-3.0.5.tar.gz.
File metadata
- Download URL: graphrag_common-3.0.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ae70038aa32fb584c063b2d0b4e50b93f61f5c95c0a05a0bb7cd6862f08e337
|
|
| MD5 |
f194d6072a36e42ee9dd941877c40817
|
|
| BLAKE2b-256 |
ba8c5479244412a90e8950ca7e4e7e4696386acd213e8c5f3265adffe065e3d2
|
File details
Details for the file graphrag_common-3.0.5-py3-none-any.whl.
File metadata
- Download URL: graphrag_common-3.0.5-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50fbaf50157c6b48d938efa131f075b2b76f78d372632c7e9b98dac9eef68387
|
|
| MD5 |
d66a09c5018b54166208c352e7ca2559
|
|
| BLAKE2b-256 |
ce5ba89a019f22823b67ef26281f2f05cd055683ff69ba8998a37b7b2bc0cc8c
|