FACTURA PDF
Create PDF invoice according to Spanish regulations.
Usage
Check tests/tests_functional.py and facturapdf/strategies files.
Generators
To ease the creation of pdf flowables you can use the generators functions.
Element generator
Creates a flowable based on a given string. Check the element function to see the available elements. Arguments are given inside brackets separated by pipelines (|).
# Generates a Image flowable with 25 mm of width
generators.element('image[logo.jpg|25]')
# Generates a FrameBreak flowable
generators.element('framebreak')
Chapter generator
Creates a list of flowables passing any number of string arguments.
generators.chapter('Paragraph[Cat in the hat]', 'image[hat.jpg|25]')
# Passing a string that is not a valid flowable keyword or anything that is not a string will do nothing
# So you can mix chapter generator with another one at once
generators.chapter('hello', [1, 2, 3]) # will return ['hello', [1, 2, 3]]
Testing
$ python -m unittest discover
Check for output files at tests/output folder.
Changelog
- 0.0.4 (2015-02-03)
Upgrade reportlab version to 3.1.44 to fix a issue with pillow
Fix Python 3
Several improvements on testing infrastructure: add tox andTravis-CI
License
BSD 3-Clause License. See LICENSE file.
Building status
Master |
|
Develop |
|
Metadata
Release files for facturapdf 0.0.4
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 | |
|---|---|---|---|---|
| facturapdf-0.0.4.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| facturapdf-0.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / facturapdf-0.0.4.tar.gz
| Download URL | facturapdf-0.0.4.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8782f3612ffa9e702159ed8f5152fef17b1c95b79f0f86a90a4492d262f97928
|
|
BLAKE2b-256 checksum How to use checksums |
2daadf059278970aa6f6503afee9219e05798c1367bc877f3da0cafe9f8d757f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / facturapdf-0.0.4-py2.py3-none-any.whl
| Download URL | facturapdf-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9b0c1e60f6c3d24e151b2ea0b1e65860a768391a3e25f945ede6368817b8a5af
|
|
BLAKE2b-256 checksum How to use checksums |
1696c68c2d52a6f42a48bfa11147a6cd087c199ea3941f02291ece9e33fd0f07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for facturapdf 0.0.4
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.