No description
Find a file
Kumi 8e5fae9f2f
All checks were successful
Build Debian Package / build-deb (push) Successful in 2m8s
fix: Getting closer?
2025-07-18 14:05:38 +02:00
.forgejo/workflows fix: Getting closer? 2025-07-18 14:05:38 +02:00
pyadonis chore: Default to not caching users' certificates 2025-07-18 13:08:06 +02:00
.gitignore fix: Use default value for settings.ini, .gitignore update 2025-07-15 14:41:17 +02:00
build-deb.sh feat: Switch to stdeb for deb building 2025-07-15 16:46:29 +02:00
LICENSE refactor: Update code base, turn into package 2025-07-15 14:31:02 +02:00
pyproject.toml fix: Use Private.coffee Git links 2025-07-16 12:47:22 +02:00
README.md refactor: Update code base, turn into package 2025-07-15 14:31:02 +02:00
renovate.json Add renovate.json 2025-07-15 14:29:49 +00:00
settings.dist.ini feat: Response caching 2025-07-15 15:16:32 +02:00
setup.py feat: Switch to stdeb for deb building 2025-07-15 16:46:29 +02:00
stdeb.cfg feat: Switch to stdeb for deb building 2025-07-15 16:46:29 +02:00

PyAdonis

A Python client library for interacting with the Adonis crew management system.

Installation

pip install pyadonis

Configuration

Create a settings.ini file with your Adonis API credentials:

[ADONIS]
CrewPortalBaseURL=http://adonis.local/AdonisWebServices/CrewPortalWebService.svc/
IntegrationBaseURL=http://adonis.local/AdonisWebServices/IntegrationWebService.svc/
Login=Adonis_API
Password=your_password_here

Usage

As a library

from pyadonis import Adonis, Config

# Initialize the client
config = Config("settings.ini")
api = Adonis.fromConfig(config)

# Get crew information
crew = api.getCrew("CREW_PIN")
print(f"Name: {crew.firstName} {crew.lastName}")

# Work with certificates
api.writeCompetence("CREW_PIN", "COMPETENCE_CODE", "CERT_NUMBER")

Command-line tools

The package installs several command-line tools:

  • pyadonis-pindata: Fetch crew data for given PINs
  • pyadonis-fixcert: Set a scan as valid for a specific certificate
  • pyadonis-certificates: View certificates
  • pyadonis-getdoc: Retrieve document attachments
  • pyadonis-pincerts: Get certificates for crew members
  • pyadonis-requirements: Fetch system requirements
  • pyadonis-surveys: View surveys
  • pyadonis-writecertificate: Create or update competence certificates

License

This project is licensed under the MIT License - see the LICENSE file for details.