Skip to main content

A Python library of common code and CLI apps shared across Kurrawong projects and infrastructure.

Project description

Kurra Python Library

A Python library of RDF data manipulation functions.

This library uses the RDFLib under-the-hood to process RDF data and supplies functions to:

  • upload it to RDF databases - "triplestores" - and query them
  • manipulate it in a few commands - e.g. format conversion

This toolkit provides a command line interface (CLI) for doing all of this as well as presenting its functions in a library that other Python applications can use.

Command Line Interface

kurra uses a Command Line Interface that can be inspected. Once you have installed kurra (see below), you can ask it to tell you want commands it supports with --help, e.g.:

kurra --help

which will return something like:

╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                         │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.  │
│ --help                        Show this message and exit.                                                       │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ list      Get a list of Fuseki datasets                                                                         │
│ create    Create a new Fuseki dataset                                                                           │
│ query     Query a Fuseki database                                                                               │
│ upload    Upload files to a Fuseki dataset.                                                                     │
│ format    Format RDF files using one of several common RDF formats.                                             │
│ version   Show the version of the kurra app.                                                                    │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

You can then run

kurra format --help

or

kurra create --help

etc. to get further help for the particular commands.

Installation

Install the latest version of kurra from PyPI.

CLI App

The recommended way to manage and run Python CLI apps is to use uv.

uv tool install kurra

Now you can invoke kurra anywhere in your terminal as long as ~/.local/bin is in your PATH.

See the uv documentation on installing tools for more information.

Library

You can also install kurra as a Python library.

pip install kurra

Use the relevant command to add dependencies to your project if you are using a tool like uv, poetry, or conda.

Then import it and use in your code, e.g. for the format functions:

from kurra.format import format_file, make_dataset, export_quads

Development

Install the Poetry project and its dependencies.

task install

Format code.

task code

License

BSD-3-Clause license. See LICENSE.

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

kurra-0.6.3.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

kurra-0.6.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file kurra-0.6.3.tar.gz.

File metadata

  • Download URL: kurra-0.6.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for kurra-0.6.3.tar.gz
Algorithm Hash digest
SHA256 6b1041b82854a51e256a962ce8582f2e0746ac6f866c0ad552a41fdbf10989b0
MD5 3841a92ab108fe83efe1b79f4014e053
BLAKE2b-256 80c882ace4fd8c809343b1bbc612a7045e85e4ad744da2c2d1a52f002f83c558

See more details on using hashes here.

File details

Details for the file kurra-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: kurra-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for kurra-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de5bd49fcbbf251b18df86bab64986c285f22ab8de6b147b6d9df97637ff681d
MD5 f8bf2439a46530aa7e3b8b06d57688a7
BLAKE2b-256 df76226e16de8fc918a1b1d5ca46eb7dc213ad5b07c28cd4df4b9e28e8dff61f

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