Python toolset for data processing, queries, wikicode generation and page manipulation
Project description
osw
Python toolset for data processing, queries, wikicode generation and page manipulation within OpenSemanticLab. General features for object oriented interaction with knowledge graphs are planned to be moved to a standalone package: oold-python
Installation
pip install osw
Variants
Variant | Description |
---|---|
osw[wikitext] |
Additional functions in wiki_tools to transform mediawiki markup / templates |
osw[DB] |
interact with SQL databases per DatabaseController |
osw[S3] |
Interact with S3 Stores per S3FileController |
osw[dataimport] |
Additional tools to import data |
osw[UI] |
To use a helper UI to work with entity slots |
To install multiple optional/extra dependencies run
pip install osw[opt1, opt2, ...]
To install all optional/extra dependencies run
pip install osw[all]
Getting started
You can find examples in the tutorial folder, e.g. entity creation, entity manipulaton, querying, and file downloads
Troubleshooting
Error: datamodel-codegen not found
make sure datamodel-codegen is installed and included in PATH, e. g. on jupyterlab:
os.environ["PATH"] += os.pathsep + "/home/jovyan/.local/bin"
Documentation
https://opensemanticlab.github.io/osw-python/
Development
Dev install
pip install -e . [dev,testing]
Activate pre-commit hooks (in git console)
pre-commit install
Run tests
tox -e test
Run integration tests (tests are skipped if login params are not provided)
tox -e test -- --wiki_domain "<osl-domain>" --wiki_username "<(bot)login>" --wiki_password "<password>" --db_username "<username>" --db_password "<password>"
Note
This project has been set up using PyScaffold 4.3.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file osw-0.28.0.tar.gz
.
File metadata
- Download URL: osw-0.28.0.tar.gz
- Upload date:
- Size: 177.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62cbb0f6cab07ffaf49efbfb0269e48aae626011969a51118d1e810c49840b5a |
|
MD5 | 9ae4d0227c16a557c076970f6adba6cf |
|
BLAKE2b-256 | 8ca9fc7324b9e951746b8c1298fcf000cc177ca1a0f0e94d108648f455b5daa2 |
File details
Details for the file osw-0.28.0-py3-none-any.whl
.
File metadata
- Download URL: osw-0.28.0-py3-none-any.whl
- Upload date:
- Size: 118.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fed86006dad276faca37d11f42fb223c947acd2f0985a4a3f6368cf04d623b8 |
|
MD5 | 234070a05a17b736d8e84fac65943343 |
|
BLAKE2b-256 | 3bdbabd10e7d5f632e672a16e09983e4fe8335f2639f57e1c3ae7e1691293f6f |