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.2.tar.gz (69.8 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.2-py3-none-any.whl (73.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jubladb_api-0.2.2.tar.gz
  • Upload date:
  • Size: 69.8 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.2.tar.gz
Algorithm Hash digest
SHA256 4b354eaff28f9e9fcecc80e9ca689dbfbd3e91525c2a73a5db2dfc5b55c76181
MD5 f2f63da575b02af945cc60ccdce461b2
BLAKE2b-256 9c0a5e7d0a850d0281a886d480f2f246cb4e802d7dc140a4982bafaca79966c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for jubladb_api-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: jubladb_api-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 73.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc4a8bb95357538d0784cd82dcfc04f34df89d2cda3477007d9440abfae66b0f
MD5 c908f712f5f6f88633e977604a7070ec
BLAKE2b-256 ff1c472683853db2d6581c6a4a1fe01c9b9f7cf6d757348f006df55000fdb49f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jubladb_api-0.2.2-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