Skip to main content

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

Project description

PyPI-Server DOI Coveralls docs license

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]

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/

Tutorials

Tutorials can be found at tutorials

  • Basics - a description of the data model of OpenSemanticLab and how to interact with it

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osw-1.0.0-py3-none-any.whl (140.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osw-1.0.0.tar.gz
  • Upload date:
  • Size: 486.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osw-1.0.0.tar.gz
Algorithm Hash digest
SHA256 76ad49432f7b57c073de5693658b2527d802d1dde26e60b00009b77b16789860
MD5 12dcac86b7b521b0210851e856e37eb3
BLAKE2b-256 6f06bbcbecce8d48d39a77e20a743cf4ff90fad0a6f4a7376ffc2e4cf4bad03e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osw-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 140.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osw-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c4070392603570e67028a587078ab65f3e191e26b239dfc3d148a8d237c99d2
MD5 333450ae9c41402caa5757d7fc05f7bf
BLAKE2b-256 b8b6fe13023b819ebfdcd83b2abdf12f6a1e8b98e5901e91b3fe0c5d6f8d9677

See more details on using hashes here.

Supported by

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