Skip to main content

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.

Open the notebook to explore the config module example code

Metadata

Release files for graphrag-common 3.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphrag-common 3.2.0
File Size Uploaded
graphrag_common-3.2.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graphrag-common 3.2.0
File Interpreter ABI Platform
graphrag_common-3.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / graphrag_common-3.2.0.tar.gz

Download URL graphrag_common-3.2.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
82da738dc86a26f4457a0f67a89828fdcd5234e901362f81db101b733ab38243
BLAKE2b-256 checksum
How to use checksums
5f47481753d7d3352bb2dd5486105fde0b8dc42859bbdf7b67224acc27373da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release files / graphrag_common-3.2.0-py3-none-any.whl

Download URL graphrag_common-3.2.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9602c1804bbaf7bbe45363c757fab017d7eb07f9c1257ef0514eec7eb003bab2
BLAKE2b-256 checksum
How to use checksums
4ecccf514d6092e020285a9c03d659a84e2af80d8156bc9d51ee16fd40327f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release history Release notifications | RSS feed

3.3.0

2 release files

This release

3.2.0 This release

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page