Skip to main content

Hitobito JSON:API

Project description

JublaDB Python API

A package with generated code to access the Jubla DB API with Python code.

For more information, please visit the project page

Requirements

Python 3.10+

Installation

pip install

Install the latest release from PyPI:

pip install jubladb_api

Alternatively, you can install the development version directly from GitHub:

pip install git+https://github.com/Jungwacht-Herisau/jubladb_python_api.git

Getting started

import jubladb_api.client
import jubladb_api.metamodel

client = jubladb_api.client.create(url=jubladb_api.metamodel.API_INFO.default_server_url, api_key="xyz")

person = client.get_person(1234, include=["roles"])
print(f"Roles of {person.first_name} {person.last_name}:")
for role_key in person.roles:
    role = client.get_role(role_key)
    print(f" - {role.name}")

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

jubladb_api-0.2.0.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

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

jubladb_api-0.2.0-py3-none-any.whl (71.9 kB view details)

Uploaded Python 3

File details

Details for the file jubladb_api-0.2.0.tar.gz.

File metadata

  • Download URL: jubladb_api-0.2.0.tar.gz
  • Upload date:
  • Size: 69.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jubladb_api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 410eb6e1eab2796cf9198801d1787d79c38195edd0119524021ae2a47c504e4a
MD5 41f73a9942b0071627d0273db03d8308
BLAKE2b-256 5fe23fb6ca858e214cc90416694bd4df252801e761f12dbe4d89f9507be6f52f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jubladb_api-0.2.0.tar.gz:

Publisher: python-publish.yml on Jungwacht-Herisau/jubladb_python_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jubladb_api-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jubladb_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 71.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jubladb_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd39528a2b8e6ec0ca48eeee0593bc48a3e40272ce05b3a4a5078ca829c4d88
MD5 0c6c114d95e62f030b46246ea5eddba0
BLAKE2b-256 b8c8e60c0957445c6cffeae02e0d94f27003e3c10156ae295bdffe05d0e776e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for jubladb_api-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on Jungwacht-Herisau/jubladb_python_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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