Skip to main content

Create PDF invoices for Eshop from YAML files.

Project description

eshop-invoice

eshop-invoice generator

License Travis Build Status PyPI Package

Generate invoices using python, weasyprint and yaml.

Sample Invoice

Usage

usage: eshop-invoice [-h] [--template TEMPLATE] [--defaults-file DEFAULTS_FILE]
                   --invoice-data-file INVOICE_DATA_FILE --out-file OUT_FILE
                   [--locale LOCALE]

Create PDF invoices from YAML files.

./eshop-invoice --invoice-data-file invoice.yml --template documents/invoice/template --out-file out.pdf
~/.default-invoice-data.yml invoice.yml

currency: €
from:
  name: Kids Eshop
  address:
    street: Dorse Point
    postal_code: "01337"
    city: Dublin

to:
  name: Customer Ec2
  customer_id: 10004
  address:
    street: Dorse Point 4
    postal_code: "042424"
    city: Dublin
tax_rate: 19
invoice:
  number: R10006
  date: 16.12.2021
  pay_until_date: 22.12.2021
positions:
  - net_price: 215
    amount: 1
    text: |
      Server
      Windows Server
      Monat 08.2021
  - net_price: 215
    amount: 2
    text: |
      Have a Nice Day

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eshop_invoice-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file eshop_invoice-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: eshop_invoice-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for eshop_invoice-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6745abbf83d55477d3e5afb2a99a4edd8bfa2096fff0cea6d7e9907307bc7584
MD5 ba3cdd04a6e0336fa70a3e4dfb09aa36
BLAKE2b-256 16b5f865b063bf414dd784def10c0afe57b355bdcaf33e0eb9d5239595510376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page