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.3.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.3.0
File Size Uploaded
graphrag_common-3.3.0.tar.gz 9.3 kB Details

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / graphrag_common-3.3.0.tar.gz

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

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

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

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.0

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