Skip to main content

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

Project description

PyPI-Server DOI Coveralls Project generated with PyScaffold

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]

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osw-0.26.0.tar.gz (172.9 kB view details)

Uploaded Source

Built Distribution

osw-0.26.0-py3-none-any.whl (115.0 kB view details)

Uploaded Python 3

File details

Details for the file osw-0.26.0.tar.gz.

File metadata

  • Download URL: osw-0.26.0.tar.gz
  • Upload date:
  • Size: 172.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for osw-0.26.0.tar.gz
Algorithm Hash digest
SHA256 2b41d3aba4de62e1ffe60364b5e746ddecf5b3b081a146461e621b8ea68a4de7
MD5 92d871b3a9da666f3552758f050569c4
BLAKE2b-256 8666b13b34eb63fa0c5933237f07128033211defa5ad0a2ac46315a994f26d57

See more details on using hashes here.

File details

Details for the file osw-0.26.0-py3-none-any.whl.

File metadata

  • Download URL: osw-0.26.0-py3-none-any.whl
  • Upload date:
  • Size: 115.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for osw-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f81ebfd3286cebd14b94fb88824d10358c84ad615440d72c1c897d8a29e36b79
MD5 5e57a9afee489f82dd5cf4b2ef536fd1
BLAKE2b-256 5246cb667aaa75c679f05917669be5d5599bd73495b89c759e18b8e67077cbbf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page