graph-databases
graph-databases packages the graph database resources historically shipped
as SageMath's graphs data package. It has no dependency on Sage and performs
no network access or writes at import or run time.
The distribution contains:
graphs.db, an immutable SQLite database of unlabeled graphs;brouwer_srg_database.json, the strongly regular graph parameter database;isgci_sage.xml, the ISGCI graph-class database; andsmallgraphs.txt, the small-graph names used with the ISGCI data.
Installation
Requires Python 3.13 or newer.
python -m pip install graph-databases
The Python import name is graph_databases.
API
Use the resource API when consuming the raw files:
from graph_databases import open_resource, resource, resource_path
with open_resource("smallgraphs.txt", "r") as stream:
first_line = stream.readline()
# `resource_path` also works when a loader needs a real filesystem path.
with resource_path("isgci_sage.xml") as path:
print(path)
The SQLite helper always opens the bundled database read-only and closes the connection after the context exits:
from graph_databases import graph_database_connection
with graph_database_connection() as connection:
rows = connection.execute("SELECT count(*) FROM graph_data").fetchone()[0]
The Brouwer JSON data can be decoded with one call:
from graph_databases import load_brouwer_database
records = load_brouwer_database()
Only known top-level resource names are accepted. The package never modifies its installed resources; applications that download updates should store them in a separate user-writable location.
Releases
Publishing a GitHub Release runs the repository's Release GitHub Actions
workflow. The workflow builds and checks the wheel and source distribution,
smoke-tests the wheel in a clean environment, attaches both files to the
GitHub Release, and publishes them to PyPI through Trusted Publishing. The
Release tag must be 20210214.2 or v20210214.2. Configure a PyPI Trusted
Publisher for this repository, the release.yml workflow, and the pypi
environment before publishing the first release. Do not publish a release
until the data-license blocker below has been resolved.
Data provenance and licensing
The Python source and packaging files are provided under GPL-2.0-or-later.
The bundled databases come from several upstream sources and retain their
source-specific terms. Sage's existing COPYING.txt labels graphs as
None (database), so the precise redistribution terms must be confirmed with
the data owners before a public PyPI release. See DATA_LICENSES.md
for the provenance currently recorded by Sage.
For the new PyPI project, configure a pending Trusted Publisher with project
graph-databases, GitHub owner sagemath, repository
data-graphs, workflow filename release.yml, and environment pypi.
Migration from the previous package
This distribution replaces sagemath-data-graphs. Install graph-databases and change
imports from sage_data_graphs to graph_databases. The resource helpers and
bundled database contents are unchanged. The two distributions use separate
import namespaces and can coexist while consumers migrate.
Metadata
Release files for graph-databases 20210214.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graph_databases-20210214.2.tar.gz | 465.5 kB | With provenance | Details for graph_databases-20210214.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graph_databases-20210214.2-py3-none-any.whl | Python 3 | none | any | Details for graph_databases-20210214.2-py3-none-any.whl |
Total release size: 937.8 kB
Release files / graph_databases-20210214.2.tar.gz
| Download URL | graph_databases-20210214.2.tar.gz |
|---|---|
| Size | 465.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8dca276b5839ecd0126219597ff9b9def92f9d2b7dd217a1bc672b6623d0917
|
|
BLAKE2b-256 checksum How to use checksums |
e7393b2accb0a96c414d8acb063e5e7f1c7bf90d5f2f923507de62ddfe008e3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / graph_databases-20210214.2-py3-none-any.whl
| Download URL | graph_databases-20210214.2-py3-none-any.whl |
|---|---|
| Size | 472.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52d158465adaff186f348b383e59a5bd0bf943aaf0189526e7406a3ed22b17dc
|
|
BLAKE2b-256 checksum How to use checksums |
4338af663885c9ed97556311456ea653ecbdc7d3eb234399e13ab63164a8a32e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for graph-databases 20210214.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for graph_databases-20210214.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.