attgen
Description
attgen is a tool to generate a french certificate during the COVID-19 confinment. I give it not for the real usage you may have with it but for given the code I use to play with pdfrw and reportlab libraries.
Installation
attgen is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 2.7/3.5+ and PyPy.
$ pip install attgen
Usage
$ attgen --help
usage: attgen [-h] [--verbose] [--conf CONF] [--time TIME] [--out OUT]
optional arguments:
-h, --help show this help message and exit
--verbose, -v increase output verbosity
--conf CONF, -c CONF Add a configuration file
--time TIME, -t TIME Set begin time (eg. 15h12)
--out OUT, -o OUT Set the output filename
The configuration file is a yaml file:
global_data:
adresse: '1 rue de la place, 75000 Paris'
ville: "Paris"
reasons: sport
# reasons: "travail courses sante famille sport judiciaire missions"
data:
- lastname: 'Jean'
firstname: 'Michel'
birthday: '01/01/1970'
town: "Amiens"
- lastname: 'Jean'
firstname: 'Marie'
birthday: '01/01/1970'
town: "Amiens"
inputs: /tmp/certificate.pdf
This Config file can be also put in the Home directory under ${HOME}/.attgen and will be read at the beginning of the execution.
Examples of usage:
attgen
attgen -t 15:00
attgen -o /tmp/my_certificate.pdf
attgen -c my_config_file.yaml
attgen -c my_config_file.yaml -o /tmp/my_certificate.pdf -t 15:00
License
attgen is distributed under the terms of
Metadata
Release files for attgen 1.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 |
|---|---|---|---|---|
| attgen-1.1.0.tar.gz | 134.3 kB | Without provenance | Details for attgen-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| attgen-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for attgen-1.1.0-py3-none-any.whl |
Total release size: 267.0 kB
Release files / attgen-1.1.0.tar.gz
| Download URL | attgen-1.1.0.tar.gz |
|---|---|
| Size | 134.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54150356dbbfd78d268dfac0e0cfc42b84ade2177f7d0c2deeff6b13ac5d7ca2
|
|
BLAKE2b-256 checksum How to use checksums |
c1242170e22f98cdeca94b1fca76f452055bb9f398a551cac92cc797b1aae407
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|
Release files / attgen-1.1.0-py3-none-any.whl
| Download URL | attgen-1.1.0-py3-none-any.whl |
|---|---|
| Size | 132.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
225fa3be3476d2adfdf5e09ac2e572323c7e9e7af6b98a8a4c5f643e0286e6c4
|
|
BLAKE2b-256 checksum How to use checksums |
03e42dbc3bdd1237024589cfc01b872fab6502487c034a2d46d9122d1cd943d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|
Security for attgen 1.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.