No project description provided
Project description
Python interface for invoice generation
Simple utility for PDF invoice generation in Python
Setup
- Install the module
- Copy
config/config.example.yaml
from the repository toconfig/config.yaml
and update parameter values as desired - Optionally configure terms by creating a
translations/terms.[language].yaml
file, check out the example fileconfig/terms.example.yaml
Usage
- Generate an invoice object eg.
invoice = Invoice(invoice_id, invoice_date <YY-mm-dd>, customer_id, customer_name, customer_address, customer_postal_code, customer_city, customer_country, customer_vat_registered_number, vat_percentage)
- Set article lines by using the
set_articles()
method on the invoice object. Example[{'name': 'Pizza margherita', 'price': 9.99, 'amount': 1}, {'name': 'Pizza fungi', 'price': 11.99, 'amount': 1}]
- Generate an InvoicePDF object eg.
pdf = InvoicePDF(invoice <the invoice object>, invoice_language <the desired print language>)
- Generate the PDF by running the
generate_document()
method on the invoicepdf object
Translations
Translations can be overwritten by copying the translation file into /translations folder
Contribution
Feel free or make proposals for code contributions and the addition of translation files for additional language support in this repository
Credits
Big thanks to Pluralsight (https://www.pluralsight.com) and Chart Explorers (https://www.youtube.com/@ChartExplorers) for the detailed descriptions on working with the used techniques
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pdf_invoice_util-0.0.1.tar.gz
.
File metadata
- Download URL: pdf_invoice_util-0.0.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e06cc4212494ef8681f18912492f92ac224d6a3e56bd7eecc5c7782e1d4cd0e |
|
MD5 | ecf30650802c11a5b908917498ce2a0c |
|
BLAKE2b-256 | a3c6abae1e3d708f5b0f4b7a55c5ae62d34a656fab81414faf4f87cd29986101 |
File details
Details for the file pdf_invoice_util-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pdf_invoice_util-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b63498f13a6d5160ffd63ebc0715b1b041df477465313ba91c258af4984ceac |
|
MD5 | cd29033e409aba0e49bb0c16030d7d04 |
|
BLAKE2b-256 | 18360348e69fb302adcea979369daf8e070a8adcb5ec03f56dbc78ce36bf72b7 |