Python library for i.SAF VAT report generation.
Free software: BSD license
Supported Python versions: 2.7, 3.5+
Features
i.SAF data validation based on XSD
i.SAF XML builder
Usage
A complete example of i.SAF data dict can be found in the tests.
from pyisaf import schema_v1_2 as isaf_schema, ISAF1_2Builder as Builder
from schema import SchemaError
# Prepare i.SAF data
data = {
'header': {
'file_description': {
# ...
},
},
'master_files': {
'customers': {
# ...
},
'suppliers': {
# ...
},
},
'source_documents': {
'purchase_invoices': {
# ...
},
'sales_invoices': {
# ...
},
'settlements_and_payments': {
# ...
},
},
}
# Validate data against i.SAF schema
isaf_data = isaf_schema.validate(data)
# Build the XML
builder = Builder(isaf_data)
isaf_xml = builder.dumps()
History
v0.1.8 (2017-02-01)
Updates links after repository transfer.
v0.1.7 (2017-01-24)
Fixes rendering of elements which are nillable to set xsi:nil attribute
v0.1.6 (2017-01-06)
Adds Python 3.6 build
v0.1.5 (2016-12-05)
Fixes to not add empty tags like Customers, Suppliers, PurchaseInvoices if the underlying collection is empty.
v0.1.4 (2016-11-30)
Fixes nillable dates rendering
v0.1.3 (2016-11-24)
Includes packages (fail)
Removes docs from the packages
v0.1.2 (2016-11-24)
Minor fixes in description
v0.1.1 (2016-11-24)
Initial version
Metadata
Release files for pyisaf 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyisaf-0.1.8.tar.gz | 11.2 kB | Without provenance | Details for pyisaf-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyisaf-0.1.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyisaf-0.1.8-py2.py3-none-any.whl |
Total release size: 22.0 kB
Release files / pyisaf-0.1.8.tar.gz
| Download URL | pyisaf-0.1.8.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5a6ee2f460f95ef26517bb8ce877e06edec07546515f2bc4c092387685ae21a
|
|
BLAKE2b-256 checksum How to use checksums |
f594190f6c076cf273517774c2be459722adf783d0b858fef7127c1c6660fef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyisaf-0.1.8-py2.py3-none-any.whl
| Download URL | pyisaf-0.1.8-py2.py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d0195de1d29e1207673cfdd070e83141379ad388f7954f83a65575e94f970343
|
|
BLAKE2b-256 checksum How to use checksums |
d54fc49090fdf37cde63e1cf75bddf696574ecd85f217ab6b5e023fa259fd4b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyisaf 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.