zugferd 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zugferd-0.1.0/.gitignore +5 -0
- zugferd-0.1.0/LICENSE +21 -0
- zugferd-0.1.0/PKG-INFO +45 -0
- zugferd-0.1.0/README.md +26 -0
- zugferd-0.1.0/pyproject.toml +29 -0
- zugferd-0.1.0/src/zugferd/__init__.py +8 -0
- zugferd-0.1.0/src/zugferd/py.typed +0 -0
zugferd-0.1.0/.gitignore
ADDED
zugferd-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xrechnung.dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
zugferd-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: zugferd
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Generate, validate (official KoSIT rules) and parse ZUGFeRD / Factur-X e-invoices via the xrechnung.dev API. Alias of the `xrechnung` package. No JVM required.
|
|
5
|
+
Project-URL: Homepage, https://xrechnung.dev
|
|
6
|
+
Project-URL: Documentation, https://xrechnung.dev/zugferd-python/
|
|
7
|
+
Author-email: "xrechnung.dev" <dev@xrechnung.dev>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: e-rechnung,einvoice,en16931,factur-x,pdf/a-3,xrechnung,zugferd
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Office/Business :: Financial :: Accounting
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Requires-Dist: xrechnung<1,>=0.1.0
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# zugferd
|
|
21
|
+
|
|
22
|
+
Generate, validate and parse **ZUGFeRD 2.x / Factur-X** (PDF/A-3) and **XRechnung** e-invoices from Python
|
|
23
|
+
through the [xrechnung.dev](https://xrechnung.dev) API.
|
|
24
|
+
|
|
25
|
+
This package is a thin alias of [`xrechnung`](https://pypi.org/project/xrechnung/) — same API, same code.
|
|
26
|
+
Zero dependencies beyond it, **no JVM required**, and every document is always validated with the current
|
|
27
|
+
official KoSIT rules (XRechnung 3.0.2, Schematron 2.6.0).
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install zugferd
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
import zugferd
|
|
35
|
+
|
|
36
|
+
pdf = zugferd.generate(invoice, format="zugferd", language="de") # PDF/A-3 with embedded EN 16931 XML
|
|
37
|
+
open("rechnung.pdf", "wb").write(pdf)
|
|
38
|
+
|
|
39
|
+
result = zugferd.validate("rechnung.pdf")
|
|
40
|
+
for e in result.errors:
|
|
41
|
+
print(e.code, e.message, e.doc_url)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Free tier: 10 documents per month without an API key. See the full documentation in the
|
|
45
|
+
[`xrechnung` README](https://pypi.org/project/xrechnung/). MIT licensed.
|
zugferd-0.1.0/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# zugferd
|
|
2
|
+
|
|
3
|
+
Generate, validate and parse **ZUGFeRD 2.x / Factur-X** (PDF/A-3) and **XRechnung** e-invoices from Python
|
|
4
|
+
through the [xrechnung.dev](https://xrechnung.dev) API.
|
|
5
|
+
|
|
6
|
+
This package is a thin alias of [`xrechnung`](https://pypi.org/project/xrechnung/) — same API, same code.
|
|
7
|
+
Zero dependencies beyond it, **no JVM required**, and every document is always validated with the current
|
|
8
|
+
official KoSIT rules (XRechnung 3.0.2, Schematron 2.6.0).
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install zugferd
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
import zugferd
|
|
16
|
+
|
|
17
|
+
pdf = zugferd.generate(invoice, format="zugferd", language="de") # PDF/A-3 with embedded EN 16931 XML
|
|
18
|
+
open("rechnung.pdf", "wb").write(pdf)
|
|
19
|
+
|
|
20
|
+
result = zugferd.validate("rechnung.pdf")
|
|
21
|
+
for e in result.errors:
|
|
22
|
+
print(e.code, e.message, e.doc_url)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Free tier: 10 documents per month without an API key. See the full documentation in the
|
|
26
|
+
[`xrechnung` README](https://pypi.org/project/xrechnung/). MIT licensed.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "zugferd"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Generate, validate (official KoSIT rules) and parse ZUGFeRD / Factur-X e-invoices via the xrechnung.dev API. Alias of the `xrechnung` package. No JVM required."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "xrechnung.dev", email = "dev@xrechnung.dev" }]
|
|
14
|
+
keywords = ["zugferd", "factur-x", "xrechnung", "e-rechnung", "einvoice", "en16931", "pdf/a-3"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Topic :: Office/Business :: Financial :: Accounting",
|
|
20
|
+
"Typing :: Typed",
|
|
21
|
+
]
|
|
22
|
+
dependencies = ["xrechnung>=0.1.0,<1"]
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Homepage = "https://xrechnung.dev"
|
|
26
|
+
Documentation = "https://xrechnung.dev/zugferd-python/"
|
|
27
|
+
|
|
28
|
+
[tool.hatch.build.targets.wheel]
|
|
29
|
+
packages = ["src/zugferd"]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""ZUGFeRD / Factur-X client for the xrechnung.dev API. Alias of the `xrechnung` package.
|
|
2
|
+
|
|
3
|
+
import zugferd
|
|
4
|
+
pdf = zugferd.generate(invoice, format="zugferd")
|
|
5
|
+
print(zugferd.validate("rechnung.pdf").valid)
|
|
6
|
+
"""
|
|
7
|
+
from xrechnung import * # noqa: F401,F403
|
|
8
|
+
from xrechnung import __all__, __version__ # noqa: F401
|
|
File without changes
|