Skip to main content

API wrapper library for Kadi4Mat

Project description

Kadi-APY

Kadi-APY is a library for use in tandem with Kadi4Mat. The REST-like API of Kadi4Mat makes it possible to programmatically interact with most of the resources that can be used through the web interface by sending suitable HTTP requests to the different endpoints the API provides.

The goal of this library is to make the use of this API as easy as possible. It offers both an object oriented approach to work with the API in Python as well as a command line interface (CLI). The library is written in Python 3 and works under both Linux and Windows.

Quickstart

Installation

The library can be installed using pip:

pip3 install kadi-apy

Note that Python version >=3.9 is required to install the latest version.

Configuration

To connect to an existing Kadi4Mat instance, some further configuration is required, which can be initialized by running:

kadi-apy config create

Simple Python example

Retrieve an existing record by its ID and upload a file to it:

from kadi_apy import KadiManager

manager = KadiManager()

record = manager.record(id=1)
record.upload_file("/path/to/file.txt")

Simple CLI example

Do the same as in the example above:

kadi-apy records add-files -r 1 -n /path/to/file.txt

Issues

For any issues regarding kadi-apy (bugs, suggestions, discussions, etc.) please use the issue tracker of this project. Before creating an issue, please make sure that no similar issue is already open and that you are using the latest release or the current version of the master branch. Note that creating a new issue requires a GitLab account.

For bugs in particular, please use the provided Bug template when creating an issue, which also adds the Bug label to the issue automatically.

Contributions

Contributions to the code are always welcome. In order to merge any contributions back into the main repository, please open a corresponding merge request. For instructions on how to set up a development environment, please see the documentation.

Further links

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kadi_apy-0.48.1-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file kadi_apy-0.48.1-py3-none-any.whl.

File metadata

  • Download URL: kadi_apy-0.48.1-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for kadi_apy-0.48.1-py3-none-any.whl
Algorithm Hash digest
SHA256 038d61cff47aa14e9334117c58904b6efa26cf5f197d2b1b100f4ca32b295c74
MD5 4c12cd54951654176d3e632b911e7b3f
BLAKE2b-256 151e2a259f0626243752fa0b80fcd6c43448cd1707f8515113398e6f70e7e08f

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