Skip to main content

Azubiheft.de custom api

Project description

Azubiheft Web API Wrapper

Downloads Downloads Downloads

This library provides a Python wrapper for azubiheft.com. With this library, developers can easily manage their Ausbildung (training) reports through a script, allowing for enhanced automation and better control over their Ausbildung documentation.

📖 About Azubiheft

Azubiheft brings a streamlined online approach to training documentation. Designed for businesses, instructors, and apprentices, it offers an effortless way to manage every training entry online. With Azubiheft, you're always one step ahead with all your training data right at your fingertips.

🛠 Installation

pip install azubiheftApi

🔍 Usage

Here's a quick guide on how to use the azubiheftApi:

from azubiheftApi import azubiheftApi
from datetime import datetime

# Initialize session
azubiheft = azubiheftApi.Session()

# Login
azubiheft.login("yourUserName", "yourPassword")

# Check login status
print(azubiheft.isLoggedIn())

# Get available subjects
subjects = azubiheft.getSubjects()
print(subjects)

# Add a new subject
azubiheft.add_subject("New Subject")

# Delete an existing subject by ID
azubiheft.delete_subject("subjectId")

# Fetch a report by date
report = azubiheft.getReport(datetime(2023, 10, 19))
print(report)


# Get a week's report ID
week_id = azubiheft.getReportWeekId(datetime.now())
print(week_id)

# Write a new report entry
azubiheft.writeReport(datetime(2023, 10, 19), "Hello World", "2:00", 1)
# its also possible to format the text using \n or just like this
# """
# Hello World
# This is a new line
# """

# Fetch the report again to see changes
report = azubiheft.getReport(datetime(2023, 10, 19), include_formatting=True)  #  include_formatting=True to include formatting
print(report)


# delete a report entry
azubiheft.deleteReport(datetime(2023, 10, 19))


# Log out from the session
azubiheft.logout()

# Check login status (should be False after logging out)
print(azubiheft.isLoggedIn())

🌱 Contribution

Feel free to fork, star, or contribute to this repository. For any bugs or feature requests, please open a new issue.


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

azubiheftapi-1.0.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

azubiheftApi-1.0.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azubiheftapi-1.0.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for azubiheftapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d955ef98c17de7b960a90e30267bcf55a752b2bc28406ed1a8c1cf94216b5486
MD5 e32242f3caddd8abc6d0f63c7361935b
BLAKE2b-256 111d67c0b7d313b512dad4128e98df597c6afd8d19ad14df58df5fb2af5f23fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: azubiheftApi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for azubiheftApi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1ec5dacd842c6f3d36e38890d9d3e208184defb787bd966cde5027e4b67f5b
MD5 9613b4d4f364c7272e2f1059a15beecd
BLAKE2b-256 8d2ce497b477f22609fe3fe2f43b5d238a707603c6c17c9a9dbe4bbff2e9eb86

See more details on using hashes here.

Supported by

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