Skip to main content

PyPI-Server DOI Codecov docs license

osw

Python toolset for data processing, queries, wikicode generation and page manipulation within OpenSemanticLab.

Work with OpenSemanticLab instances the way you work with Python objects: load pages as typed pydantic entities, query with semantic search, generate models from the schemas stored in the wiki, and write changes back.

Documentation: https://opensemanticlab.github.io/osw-python/

Installation

pip install osw

Optional extras (osw[wikitext], osw[DB], osw[S3], osw[dataimport], osw[UI], osw[mcp], osw[all]) are described in the Get Started guide.

Quickstart

from osw.express import OswExpress

osw = OswExpress(domain="wiki-dev.open-semantic-lab.org")
instances = osw.site.semantic_search("[[Category:Item]]")
print(instances)

More runnable scripts live in examples/, and the Basics tutorial walks through the OpenSemanticLab data model.

Tools

Installing osw also installs an osw command line client, and the osw[mcp] extra adds an MCP server that exposes a live instance to agent clients such as Claude Code:

osw search ask '[[Category:Item]]' --limit 5

Commands, tools and their configuration are described in the Tools guide.

Logging

osw reports what it is doing on the osw logger at INFO by default. Levels, the OSW_LOG_LEVEL environment variable and how to collect the records in your own logging setup are described in the Get Started guide.

Contributing

Contributions are welcome, see CONTRIBUTING.md. Development setup, checks and tests are one command each: make install, make check, make test.

General features for object-oriented interaction with knowledge graphs live in the standalone package oold-python.

License

AGPL-3.0-or-later, see LICENSE.txt.

Metadata

Release files for osw 2.9.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 osw 2.9.0
File Size Uploaded Provenance Actions
osw-2.9.0.tar.gz 871.7 kB Without provenance Details for osw-2.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osw 2.9.0
File Interpreter ABI Platform Actions
osw-2.9.0-py3-none-any.whl Python 3 none any Details for osw-2.9.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / osw-2.9.0.tar.gz

Download URL osw-2.9.0.tar.gz
Size 871.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6d01339dcb74364be34909ae185dea5ceeba22c822f366cd97c2bbe652fa5da8
BLAKE2b-256 checksum
How to use checksums
d37b8af63cf728991d137cfabe3a020a029e126a015bdaac9591ac6db24af53f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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":true}

Release files / osw-2.9.0-py3-none-any.whl

Download URL osw-2.9.0-py3-none-any.whl
Size 233.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
beb75473f73a0d8e2bede33c4e2581e70b8b7543b06ff5a1256f77e49dff6cd6
BLAKE2b-256 checksum
How to use checksums
cd432daa5f189e76d9e04a0a13f192c9916a3c53acbb4d2a88c0ec123acd9aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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":true}

Security for osw 2.9.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

2.9.0 This release

2 release files No provenance

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