Compare commits
2 Commits
314e4bde7f
...
43163e2ac7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43163e2ac7 | ||
|
|
10765d16bf |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
# Virtualenv
|
# Virtualenv
|
||||||
.Python
|
.Python
|
||||||
|
__pycache__
|
||||||
[Bb]in
|
[Bb]in
|
||||||
[Ii]nclude
|
[Ii]nclude
|
||||||
[Ll]ib
|
[Ll]ib
|
||||||
|
|||||||
20
README.md
20
README.md
@@ -4,19 +4,25 @@ is a simple command line tool to generate invoices for freelance work. It uses a
|
|||||||
on `jinja2` to generate the
|
on `jinja2` to generate the
|
||||||
invoice in HTML and then converts it to a PDF using `xhtml2pdf`.
|
invoice in HTML and then converts it to a PDF using `xhtml2pdf`.
|
||||||
|
|
||||||
## inatallation
|
## Install
|
||||||
|
|
||||||
Use python venv:
|
Use python venv:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python -m venv venv
|
python -m venv .venv
|
||||||
source venv/bin/activate
|
source .venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the requirements:
|
Build and install executable:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
python setup.py build
|
||||||
|
python setup.py install
|
||||||
|
```
|
||||||
|
|
||||||
|
See where it is installed:
|
||||||
|
```bash
|
||||||
|
which invoice
|
||||||
```
|
```
|
||||||
|
|
||||||
## usage
|
## usage
|
||||||
@@ -136,13 +142,11 @@ options:
|
|||||||
## example
|
## example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python src/main.py -b test_data -i invoice.yaml -e envelope.yaml -t test_data/templates
|
invoice -b test_data -i invoice.yaml -e envelope.yaml -t test_data/templates
|
||||||
```
|
```
|
||||||
|
|
||||||
## to do
|
## to do
|
||||||
|
|
||||||
- make image path in invoice.yaml relative to invoice.yaml
|
|
||||||
- find out how to move an image to the right place in the pdf
|
|
||||||
- give more structure to code
|
- give more structure to code
|
||||||
- make code testable
|
- make code testable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user