pystardog
Python client for Stardog Platform Endpoints and Stardog Cloud
Decision gist · record as of 2026-08-14
Yes. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is the official Python client for Stardog and is well-suited for anyone building applications that need to query or manage knowledge graphs on the Stardog platform.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; requires a running Stardog server or Stardog Cloud account to connect to.
- Low install friction with a pure-Python wheel distribution.
- Actively maintained with recent releases; last commit on 2026-05-18 and latest release on 2026-03-18.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most production and proprietary projects.
last release 2026-03-18 (149 days) · last repo commit 2026-05-18 · 41 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,945 downloads/mo, #12,231 on PyPI
Alternatives
Verify before relying
pip install pystardog
import pystardog
# Connect to a Stardog endpoint and execute a query
conn = pystardog.Connection(endpoint='http://localhost/mydb')
results = conn.query('SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10')- Exact API surface and method signatures for querying and managing Stardog endpoints.
- Whether the package supports SPARQL Update operations or only SELECT/CONSTRUCT queries.
- Authentication mechanism details (API key, username/password, OAuth) for Stardog Cloud.
- Performance characteristics for large result sets or long-running queries.
- How rdflib integration works in practice for RDF data handling.
What it is and what it does
Pystardog is a Python HTTP client for the Stardog knowledge graph platform, enabling developers to query and manage RDF data stored in Stardog servers or Stardog Cloud. It wraps HTTP communication with requests and requests-toolbelt, and integrates with rdflib for RDF data handling. The package is designed for both local Stardog instances and cloud deployments, with optional cloud-specific functionality available via an extras install.
Typical usage involves establishing a connection to a Stardog endpoint, executing SPARQL queries, and processing results. The library handles authentication, request formatting, and response parsing, abstracting away low-level HTTP details. It supports Python 3.9 through 3.13 and is actively maintained.
Use it for
- Query a Stardog knowledge graph from a Python application to retrieve semantic data.
- Integrate Stardog Cloud's natural language query features into Python scripts.
- Build data pipelines that fetch RDF triples and process them with rdflib.
- Automate SPARQL queries against a local or remote Stardog server.
- Prototype semantic search or reasoning applications backed by Stardog.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is the official Python client for Stardog and is well-suited for anyone building applications that need to query or manage knowledge graphs on the Stardog platform.
Install
pystardog on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent releases; last commit on 2026-05-18 and latest release on 2026-03-18. Supports current Python versions (3.9 through 3.13).
Requires Python 3.9 or later; requires a running Stardog server or Stardog Cloud account to connect to.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most production and proprietary projects.
Quickstart
pip install pystardog
import pystardog
# Connect to a Stardog endpoint and execute a query
conn = pystardog.Connection(endpoint='http://localhost/mydb')
results = conn.query('SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10')
Verify before relying
- Exact API surface and method signatures for querying and managing Stardog endpoints.
- Whether the package supports SPARQL Update operations or only SELECT/CONSTRUCT queries.
- Authentication mechanism details (API key, username/password, OAuth) for Stardog Cloud.
- Performance characteristics for large result sets or long-running queries.
- How rdflib integration works in practice for RDF data handling.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesrequestsrequests-toolbeltrdflib |
| Maintenance | Actively maintained 149 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,945 / month, #12,231 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: pystardog-0.20.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “stardog python client”
- pystardogPython client library for querying and managing Stardog knowledge…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- openapi-python-clientGenerates type-annotated Python HTTP clients from OpenAPI 3.0 and 3.1…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also pymantic · pyoxigraph · SPARQLWrapper · sparqlslurper · owlready2 · semanticscholar · wolframalpha · pyshacl · neo4j-graphrag · azure-kusto-data