Clait
A tool to generate nicely formatted and LaTeX generated invoices.
How to install?
just run:
python3 setup.py install
How to develop?
pip3 install zc.buildout buildout
you’ll find the tool in:
bin/clait
External dependency
you need to make sure you have installed the texlive suite, along with the pdflatex tool. No special LaTeX library is needed.
How to use?
create a directory such as paperwork, within it create two files:
invoices_config.yaml:
that will contain the name of the template (format key) the path to the pdflatex tool, and in source all the custom information for your billing.
format: french
source:
name: Ford Prefect
address:
- Hyperspace bypass
- Earth
telephone: +44 777 7777 7777
website: http://mostly.harmless.com
email: ford.prefect@mostly.harmless.com
siren: 111 222 333
ape: 9602A
bank:
rib:
- 00001
- 00002
- 00000000001
- 42
iban: FR42 0000 1000 0200 0000 0000 142
bics: FOOBARFUBAR
tools:
pdflatex: /usr/local/texlive/2014/bin/universal-darwin/pdflatex
invoices_list.yaml:
that will contain a list of !invoice objects. The iid will be the unique reference of the invoice. Then all the elements are as defined by the template.
- !invoice
iid: 201410-001
date: 2014-10-02
kind: paid
customer: !customer
address: [Alpha du centaure]
name: Zaphod Beeblebrox
subject: Voyage en dauphin
desc: "Pr\xE9paration et embarquation sur un dauphin \xE0 travers les mers"
place: Babylon
products:
- !product
descr: Soutien psychologique du dauphin
price: 430
qty: 1
- !offer
descr: Discount because I'm nice
price: 20
qty: 1
How to run?
To generate all your invoices, in the paperwork directory:
clait -d paperwork generate
If you want your tax calculation:
clait -d paperwork results quarterly clait -d paperwork results yearly
And finally, to launch the webapp, use
clait -d paperwork api
If you’ve made a change to an invoice and need to regenerate, just remove the pdf file!
How will it look like?
here’s a shot of one of the example invoices:
IV201410-001.pdf
License
This code is licensed under the GPLv3.
Metadata
Release files for clait 0.1.0
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 |
|---|---|---|---|---|
| clait-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for clait-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clait-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for clait-0.1.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / clait-0.1.0.tar.gz
| Download URL | clait-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7498b19bd762278aa6bfff9e8284261f31045448d6e363a8028e856127a1d1a2
|
|
BLAKE2b-256 checksum How to use checksums |
853a26bfd0552fe4728de31eb91b9de7aa993ee6ba70915695c9da15c162baee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / clait-0.1.0-py3-none-any.whl
| Download URL | clait-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a58092a132e322e8a67805c0f668a988fa0ec8b4a7daf25759a670f61e66cab
|
|
BLAKE2b-256 checksum How to use checksums |
acfe526b6203c8eacae09d4dd37d623ac828e23f628d0df6b5a094d9b88592c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for clait 0.1.0
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.