facturapdf-0.0.4
توضیحات
Create PDF invoice according to Spanish regulations.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | facturapdf-0.0.4 |
| نام | facturapdf |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos Goce |
| ایمیل نویسنده | cgonzalez@initios.com |
| آدرس صفحه اصلی | https://github.com/initios/factura-pdf |
| آدرس اینترنتی | https://pypi.org/project/facturapdf/ |
| مجوز | BSD 3-Clause License |
FACTURA PDF
===========
.. image:: https://pypip.in/version/facturapdf/badge.svg
:target: https://pypi.python.org/pypi/facturapdf/
:alt: Latest Version
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 (|).
.. code-block:: python
# 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.
.. code-block:: python
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
-------
.. code-block:: shell-session
$ 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
---------------
.. list-table::
* - Master
- .. image:: https://travis-ci.org/initios/factura-pdf.svg?branch=master
:target: https://travis-ci.org/initios/factura-pdf
* - Develop
- .. image:: https://travis-ci.org/initios/factura-pdf.svg?branch=develop
:target: https://travis-ci.org/initios/factura-pdf
نحوه نصب
نصب پکیج whl facturapdf-0.0.4:
pip install facturapdf-0.0.4.whl
نصب پکیج tar.gz facturapdf-0.0.4:
pip install facturapdf-0.0.4.tar.gz