Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Invoice/Receipt generator

Project description

Invoice/Receipt Generator.



  • 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  


pip install pyinvoice


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,,  # Invoice info, optional

# Service Provider Info, optional
doc.service_provider_info = ServiceProviderInfo(
    street='My Street',
    city='My City',
    state='My State',
    country='My Country',
    vat_tax_number='Vat/Tax number'

# Client info, optional
doc.client_info = ClientInfo(email='')

# 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,, 1))
doc.add_transaction(Transaction('Stripe', 222,, 2))

# Optional
doc.set_bottom_tip("Email:<br />Don't hesitate to contact us for any questions.")




Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
PyInvoice-0.1.7.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None Apr 21, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page