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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphrag_common-3.1.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphrag_common-3.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file graphrag_common-3.1.2.tar.gz.

File metadata

  • Download URL: graphrag_common-3.1.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for graphrag_common-3.1.2.tar.gz
Algorithm Hash digest
SHA256 d34fa3870826a498911adc5eee270321f982855663c7a8d975b19ea41577c56b
MD5 e0e1df71669579719186438e421b7d25
BLAKE2b-256 ec7f99f5525c2cda805cb1db9e0fec93b03cff6f5aaad0386c93e4b619f296d5

See more details on using hashes here.

File details

Details for the file graphrag_common-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: graphrag_common-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for graphrag_common-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1225270fe1ca334b4ab44d6f25e8e4065acd1542a214ee920fa9a3dcb7b423ea
MD5 5db782431c8f35babeb452b94df7ef33
BLAKE2b-256 50a6eded6a9e001e832e8d30110f5f548a424646169c75bfff1bb8505179eab4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.2 This release

2 files

3.1.1

2 files

3.1.0

2 files

3.0.9

2 files

3.0.8

2 files

3.0.7

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page