PyInvoice
Invoice/Receipt Generator.
Screenshot
Dependency
Reportlab
Python 2.6+/3.3+
Python 2.6 |
Python 2.7 |
Python 3.3 |
Python 3.4 |
|
Reportlab 2.6 |
✓ |
✓ |
||
Reportlab 2.7 |
✓ |
✓ |
||
Reportlab 3.0 |
✓ |
✓ |
✓ |
|
Reportlab 3.1.44 |
✓ |
✓ |
✓ |
|
Reportlab 3.2 |
✓ |
✓ |
✓ |
Install
pip install pyinvoice
Usage
from datetime import datetime, date
from pyinvoice.models import InvoiceInfo, ServiceProviderInfo, ClientInfo, Item, Transaction
from pyinvoice.templates import SimpleInvoice
doc = SimpleInvoice('invoice.pdf')
# Paid stamp, optional
doc.is_paid = True
doc.invoice_info = InvoiceInfo(1023, datetime.now(), datetime.now()) # Invoice info, optional
# Service Provider Info, optional
doc.service_provider_info = ServiceProviderInfo(
name='PyInvoice',
street='My Street',
city='My City',
state='My State',
country='My Country',
post_code='222222',
vat_tax_number='Vat/Tax number'
)
# Client info, optional
doc.client_info = ClientInfo(email='client@example.com')
# Add Item
doc.add_item(Item('Item', 'Item desc', 1, '1.1'))
doc.add_item(Item('Item', 'Item desc', 2, '2.2'))
doc.add_item(Item('Item', 'Item desc', 3, '3.3'))
# Tax rate, optional
doc.set_item_tax_rate(20) # 20%
# Transactions detail, optional
doc.add_transaction(Transaction('Paypal', 111, datetime.now(), 1))
doc.add_transaction(Transaction('Stripe', 222, date.today(), 2))
# Optional
doc.set_bottom_tip("Email: example@example.com<br />Don't hesitate to contact us for any questions.")
doc.finish()
License
MIT
Metadata
Release files for PyInvoice 0.1.7
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 |
|---|---|---|---|---|
| PyInvoice-0.1.7.tar.gz | 8.3 kB | Without provenance | Details for PyInvoice-0.1.7.tar.gz |
Release files / PyInvoice-0.1.7.tar.gz
| Download URL | PyInvoice-0.1.7.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be741d165099c58c7bdd186759ca49a4b38fb5a20135b8275fccf74ad36dc22a
|
|
BLAKE2b-256 checksum How to use checksums |
2f2a34deaeaf246787a77211ad86055ce285e5d59151dbe79f17528d8f007932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyInvoice 0.1.7
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.