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[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.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osw-2.0.0.tar.gz.
File metadata
- Download URL: osw-2.0.0.tar.gz
- Upload date:
- Size: 691.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b94e8dc747657c39fa30411e0eb914ececf41d9da4e28e52f4103ba7cf1c2bc
|
|
| MD5 |
072e9c1c9adf9d4a947f7f530616fa75
|
|
| BLAKE2b-256 |
165e6b758186d50ff278434cce7f2bd3a071f7f2febcb156161a3b5694212881
|
File details
Details for the file osw-2.0.0-py3-none-any.whl.
File metadata
- Download URL: osw-2.0.0-py3-none-any.whl
- Upload date:
- Size: 145.5 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14bc476af1e048dd8137d8edb4b7bdcbd2b303720f617b3b028c5211fd09802c
|
|
| MD5 |
c6ff1fe7d36b977f66418e15bb51aa48
|
|
| BLAKE2b-256 |
d461f192ea872288037308b79c4b1750e21a13105dcfb4e2819625ffd5ad0efc
|