Python interface for IARP's myDATA service
Project description
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
apicommand group, which is unopinionated and straight up hits the endpoint that you ask. - The
invoicecommand 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 -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mydata_client-0.3.3.tar.gz.
File metadata
- Download URL: mydata_client-0.3.3.tar.gz
- Upload date:
- Size: 176.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b635a5b6f5331bd47346971016c2f99b2296a166560226fa435348b57ec51396
|
|
| MD5 |
a29aca3af80047d5b8cc347aceb61d18
|
|
| BLAKE2b-256 |
e8201869b0038e29270103cce3d7a82ceb29ae139655e109e056d874ccc37df3
|
Provenance
The following attestation bundles were made for mydata_client-0.3.3.tar.gz:
Publisher:
pypi.yml on apyrgio/mydata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mydata_client-0.3.3.tar.gz -
Subject digest:
b635a5b6f5331bd47346971016c2f99b2296a166560226fa435348b57ec51396 - Sigstore transparency entry: 931191090
- Sigstore integration time:
-
Permalink:
apyrgio/mydata@987f8c4d0fe08bea1075c856d368f80508345c9b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/apyrgio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@987f8c4d0fe08bea1075c856d368f80508345c9b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file mydata_client-0.3.3-py3-none-any.whl.
File metadata
- Download URL: mydata_client-0.3.3-py3-none-any.whl
- Upload date:
- Size: 89.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708b1c247a9f79933b08c8c410210bafb93e0e77cb03ccfe26f9c5b22703a7a5
|
|
| MD5 |
b0561dda4e1fef0b80abaeb5d6a7339c
|
|
| BLAKE2b-256 |
37ce5d50975bca73f174dfde571225392111ab0f7f315540d67d1ba2ab552a2e
|
Provenance
The following attestation bundles were made for mydata_client-0.3.3-py3-none-any.whl:
Publisher:
pypi.yml on apyrgio/mydata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mydata_client-0.3.3-py3-none-any.whl -
Subject digest:
708b1c247a9f79933b08c8c410210bafb93e0e77cb03ccfe26f9c5b22703a7a5 - Sigstore transparency entry: 931191162
- Sigstore integration time:
-
Permalink:
apyrgio/mydata@987f8c4d0fe08bea1075c856d368f80508345c9b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/apyrgio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@987f8c4d0fe08bea1075c856d368f80508345c9b -
Trigger Event:
workflow_dispatch
-
Statement type: