root/local/: graphrag-storage-3.0.2 metadata and description

Simple index

GraphRAG storage package.

author Mónica Carvajal
author_email Alonso Guevara Fernández <alonsog@microsoft.com>, Andrés Morales Esquivel <andresmor@microsoft.com>, Chris Trevino <chtrevin@microsoft.com>, David Tittsworth <datittsw@microsoft.com>, Dayenne de Souza <ddesouza@microsoft.com>, Derek Worthen <deworthe@microsoft.com>, Gaudy Blanco Meneses <gaudyb@microsoft.com>, Ha Trinh <trinhha@microsoft.com>, Jonathan Larson <jolarso@microsoft.com>, Josh Bradley <joshbradley@microsoft.com>, Kate Lytvynets <kalytv@microsoft.com>, Kenny Zhang <zhangken@microsoft.com>, Nathan Evans <naevans@microsoft.com>, Rodrigo Racanicci <rracanicci@microsoft.com>, Sarah Smith <smithsarah@microsoft.com>
classifiers
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
description_content_type text/markdown
license MIT
project_urls
  • Source, https://github.com/microsoft/graphrag
requires_dist
  • aiofiles~=24.1
  • azure-cosmos~=4.9
  • azure-identity~=1.25
  • azure-storage-blob~=12.24
  • graphrag-common==3.0.2
  • pandas~=2.3
  • pydantic~=2.10
requires_python <3.14,>=3.11

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
graphrag_storage-3.0.2-py3-none-any.whl
Size
20 KB
Type
Python Wheel
Python
3
  • Replaced 6 time(s)
  • Uploaded to root/local by root 2026-02-19 21:53:55
graphrag_storage-3.0.2.tar.gz
Size
13 KB
Type
Source
  • Replaced 6 time(s)
  • Uploaded to root/local by root 2026-02-19 21:54:07

GraphRAG Storage

This package provides a unified storage abstraction layer with support for multiple backends including file system, Azure Blob, Azure Cosmos, and memory storage. It features a factory-based creation system with configuration-driven setup and extensible architecture for implementing custom storage providers.

Basic

This example creates a file storage system using the GraphRAG storage package's configuration system. The example shows setting up file storage in a specified directory and demonstrates basic storage operations like setting and getting key-value pairs.

Open the notebook to explore the basic storage example code

Custom Storage

Here we create a custom storage implementation by extending the base Storage class and registering it with the GraphRAG storage system. Once registered, the custom storage can be instantiated through the factory pattern using either StorageConfig or directly via storage_factory, enabling extensible storage solutions for different backends.

Open the notebook to explore the custom storage example code

Details

By default, the create_storage comes with the following storage providers registered that correspond to the entries in the StorageType enum.

The preregistration happens dynamically, e.g., FileStorage is only imported and registered if you request a FileStorage with create_storage(StorageType.File, ...). There is no need to manually import and register builtin storage providers when using create_storage.

If you want a clean factory with no preregistered storage providers then directly import storage_factory and bypass using create_storage. The downside is that storage_factory.create uses a dict for init args instead of the strongly typed StorageConfig used with create_storage.

from graphrag_storage.storage_factory import storage_factory
from graphrag_storage.file_storage import FileStorage

# storage_factory has no preregistered providers so you must register any
# providers you plan on using.
# May also register a custom implementation, see above for example.
storage_factory.register("my_storage_key", FileStorage)

storage = storage_factory.create(strategy="my_storage_key", init_args={"base_dir": "...", "other_settings": "..."})

...