Skip to main content

Python interface for IARP's myDATA service

Project description

Supported Python Versions PyPI version

CLI / HTTP client for myDATA

This project allows users to interact with myDATA ("my Digital Accounting and Tax Application") either via a Python HTTP client or from the CLI.

Install

Install it with pip:

python -m pip install mydata-client

Usage

[!WARNING] The tool is not suitable yet for production use. We strongly suggest that you use it for experimenting only with the development sandbox that myDATA provides.

[!NOTE] Oh, you may also find the docs a bit... lacking :grimacing:

If you want to interact programmatically with myDATA's API, you can use the HTTP client under mydata/client.py. The Python dataclasses that bind to XML documents can be found in the mydata/models* modules, depending on which version of the API you want to use.

There is also a proof-of-concept CLI that you can use:

mydata --username <username> <command>

There are two command groups that you can invoke:

  • The api command group, which is unopinionated and straight up hits the endpoint that you ask.
  • The invoice command group, which is heavily opinionated and adds some helper commands to work with invoices. Basically, it's there to assist the list -> retrieve -> copy -> edit -> validate -> send lifecycle of an invoice.

Building

Install uv. Then, install the project dependencies:

uv install

Adding new XSD schemas

Whenever there's an API update, myDATA devs include the XML schemas for the latest API. You can include them in the project as follows:

  • Download the XSD zipfile from the myDATA page, and take note of its version number (e.g., 1.0.10).

  • Run the following command:

    uv run ingest-xsd --api-version 1.0.10 /path/to/xsd.zip
    
  • Update mydata/client.py to point to the new models.

  • Commit the final result

License

Licensed under MPL-2.0. Please read the NOTICE.md and LICENSE files for the full copyright and license information.

Useful links

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

mydata_client-0.3.1.tar.gz (164.8 kB view details)

Uploaded Source

Built Distribution

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

mydata_client-0.3.1-py3-none-any.whl (72.6 kB view details)

Uploaded Python 3

File details

Details for the file mydata_client-0.3.1.tar.gz.

File metadata

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

File hashes

Hashes for mydata_client-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c063ffeeff82579336259f892aadf756082a13ac78a976963b46d859a628696b
MD5 c07e100c781a44b0ec5964e8231184d0
BLAKE2b-256 75fba3fea004d07a2fb2d73334389cc96afcf5b77c32480396421394062f27ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for mydata_client-0.3.1.tar.gz:

Publisher: pypi.yml on apyrgio/mydata

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

File details

Details for the file mydata_client-0.3.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mydata_client-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0093e8f9c9bc64a49348ec351d16f602008c554b047f3079f05d10b6b448baa9
MD5 966ce856c56d5046a2068a2e6db42227
BLAKE2b-256 8863ce1bdc3012ee3dc33a99c7901a171453233765622bded6e08a99d070d9e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mydata_client-0.3.1-py3-none-any.whl:

Publisher: pypi.yml on apyrgio/mydata

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