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.25.0.tar.gz (172.4 kB view details)

Uploaded Source

Built Distribution

osw-0.25.0-py3-none-any.whl (114.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for osw-0.25.0.tar.gz
Algorithm Hash digest
SHA256 b7ed6f3fb1dd3da458bf846bca413f87c3bb68d30a761e6f04e252b6fac767e3
MD5 d2ebb51825691807bc1bd2382d3f3bef
BLAKE2b-256 3cec77259ebdd170661277039557fb5db032180dc4fb0374e9b8b17525d4393f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osw-0.25.0-py3-none-any.whl
  • Upload date:
  • Size: 114.5 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.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed4a613a0c0bee40b6f587d1b5319e22735cba31cd803a119379cb3d0470d67
MD5 da9d9c803f317f7859dac60425db787d
BLAKE2b-256 1f72d35900e43204bda23775177b0536b96de5a327e0c380c63e536f4096cbb4

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