EU tyres energy label generator
Project description
Tyres EU energy label generator
Generator for EU tyre energy labels. Creates a label according to the specification as an SVG file.
Installation
$ pip install tyre-energy-label
Usage
from tyre_label import TyreEnergyLabel
label = TyreEnergyLabel(
supplier='Cool Tyre',
type_identifier='94385300',
size='185/75 R16',
tyre_class='C2',
fuel_efficiency='E',
wet_grip='A',
roll_noise=72,
noise_level='C',
snow_grip=True,
ice_grip=True,
eprel_id=381667,
eprel_link='https://eprel.ec.europa.eu/qr/381667'
)
label.save('example.svg')
# optional: get SVG as a string
svg_data = label.as_svg(embed_fonts=True, include_link=True)
Command line interface
The package installs tyre-label
CLI. Use $ tyre-label --help
for the list of available options.
Example usage
$ tyre-label \
--supplier "Cool Tyre" \
--type "94385300" \
--size "185/75 R16" \
--class "C2" \
--fuel C \
--wet A \
--noise 72 \
--level A \
--snow 1 \
--ice 1 \
--eprel-id 381667 \
--url "https://eprel.ec.europa.eu/qr/381667" \
-o example.svg
JSON support
$ tyre-label --json '{
"supplier": "Cool Tyre",
"type_identifier": "94385300",
"size": "185/75 R16",
"tyre_class": "C2",
"fuel_efficiency": "C",
"wet_grip": "A",
"roll_noise": 72,
"noise_level": "A",
"snow_grip": true,
"ice_grip": true,
"eprel_id": 381667,
"eprel_link": "https://eprel.ec.europa.eu/qr/381667"
}' -o example.svg
License
Distributed under the MIT license. See LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tyre-energy-label-0.1.5.tar.gz
(56.7 kB
view details)
File details
Details for the file tyre-energy-label-0.1.5.tar.gz
.
File metadata
- Download URL: tyre-energy-label-0.1.5.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e17faddf783afe29a8f730440f4d5eea89c314af717c7daa05574c82d9cd0d8 |
|
MD5 | b5487be992ba4cfd14b39c373d3bbe9e |
|
BLAKE2b-256 | 74510192ff5565e88acaac964f80d693c0c58fea25363671f2c08d61d90b5a17 |