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.
Related projects
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.1
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 |
|---|---|---|---|---|
| osw-2.9.1.tar.gz | 873.2 kB | Without provenance | Details for osw-2.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osw-2.9.1-py3-none-any.whl | Python 3 | none | any | Details for osw-2.9.1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / osw-2.9.1.tar.gz
| Download URL | osw-2.9.1.tar.gz |
|---|---|
| Size | 873.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09c6116ad4e417744e8f3eb4a6057e36d89377505cd1e6dc867bbbe981f76cb8
|
|
BLAKE2b-256 checksum How to use checksums |
ae0ac9a22f7476f04db8bb04d3703a30f07b4fda170c358021db8cc46326e4db
|
| 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.1-py3-none-any.whl
| Download URL | osw-2.9.1-py3-none-any.whl |
|---|---|
| Size | 233.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70ad5c54f439d624f43bc73a6a76c26910dff0a38f9c8a9cae7ac8c8ae982dc0
|
|
BLAKE2b-256 checksum How to use checksums |
6105c29997c82fcbc4aebb2e324802752a0e3ee639fc43de57a57e618e5cbcd6
|
| 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.1
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.