Skip to content

JMA Client

Version 0.4.0.2024.717.1

API version: 6.2.1

  • Improved handling error states so messages by the API are passed as exceptions and pretty printed
  • Improved error message when action or link is used that is not available
  • enter_api() now gives proper error messages
  • Introduced exceptions to allow better error handling:
    • ClientExceptionand derived: NotAvailableException
    • ApiException and derived: TemporarilyNotAvailableException, TooManyRequestsException
  • Removed logger for now and replace with warnings for user convenience (see errors without configuring a logger)
  • Added convenience class: JobGroup
    • start all
    • wait for all
  • Added convenience function to delete a job and related data: job.delete_with_associated(...)
  • Added convenience function to download a WorkData: workdata.download()
  • Made query result of WorkData, Jobs and ProcessingSteps iterable so navigation to the next page of results is done automatically:
    • iter() giving the query pages
    • iter_flat() giving the flat objects