eshop-invoice-1.0.1
توضیحات
Create PDF invoices for Eshop from YAML files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | eshop-invoice-1.0.1 |
| نام | eshop-invoice |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anupama Bitmandi Mutt |
| ایمیل نویسنده | anupama.bm@gmail.com |
| آدرس صفحه اصلی | https://github.com/anupama.bmmutt/eshop-generator |
| آدرس اینترنتی | https://pypi.org/project/eshop-invoice/ |
| مجوز | MIT |
<div align="center">
<img alt="eshop-invoice" src="">
<h1>eshop-invoice generator</h1>
<img alt="License" src="">
<img alt="Travis Build Status" src="">
<img alt="PyPI Package" src="">
</div>
Generate invoices using python, weasyprint and yaml.
<div align="center">
<h5>Sample Invoice</h5>
</div>
## 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.
```
```shell
./eshop-invoice --invoice-data-file invoice.yml --template documents/invoice/template --out-file out.pdf
```
<table style="width: 100%;">
<tbody>
<tr>
<td><code>~/.default-invoice-data.yml</code></td>
<td><code>invoice.yml</code></td>
</tr>
<tr>
<td class="highlight highlight-source-yaml">
<pre><code>
currency: €
from:
name: Kids Eshop
address:
street: Dorse Point
postal_code: "01337"
city: Dublin
</code></pre></td>
<td class="highlight highlight-source-yaml">
<pre><code>
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
</code></pre></td>
</tr>
</tbody>
</table>
نیازمندی
| مقدار | نام |
|---|---|
| >=47 | weasyprint |
| >=0.9.6 | pybars3 |
| >=5.1 | pyyaml |
نحوه نصب
نصب پکیج whl eshop-invoice-1.0.1:
pip install eshop-invoice-1.0.1.whl
نصب پکیج tar.gz eshop-invoice-1.0.1:
pip install eshop-invoice-1.0.1.tar.gz