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

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

Uploaded Python 3

Supported by

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