elkjs
Draw beautiful ASCII and SVG pine trees (elkis).
Installation
pip install elkjs
Usage
from elkjs import PineTree, TreeStyle, Forest, render_svg
# Single tree
tree = PineTree(height=12, style=TreeStyle.SNOW, seed=42)
print(tree)
# Festive tree
print(PineTree(height=8, style=TreeStyle.FESTIVE))
# SVG output
svg = render_svg(tree, width=200, height=300)
# Random forest
forest = Forest.generate(count=7, min_height=5, max_height=15, seed=99)
print(forest)
CLI
elkjs tree --height 12 --style snow
elkjs tree --height 8 --style festive --svg tree.svg
elkjs forest --count 7 --seed 42
Styles
classic— traditional symmetric pinesparse— airy, fewer branchesdense— thick full foliagesnow— snow-capped branchesminimal— simple outlinefestive— decorated with ornaments
License
MIT
Metadata
Release files for elkjs 0.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 |
|---|---|---|---|---|
| elkjs-0.1.0.tar.gz | 5.3 kB | Without provenance | Details for elkjs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elkjs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for elkjs-0.1.0-py3-none-any.whl |
Total release size: 12.6 kB
Release files / elkjs-0.1.0.tar.gz
| Download URL | elkjs-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0c87d267ac3e80ae1b4963597f5331914b95d267728ad6b9c227fd4be944ea0
|
|
BLAKE2b-256 checksum How to use checksums |
5965b9f7e9be66d8f5f8f641a24eed3e0f2a2c699f0f9678be0955d7380e2c66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / elkjs-0.1.0-py3-none-any.whl
| Download URL | elkjs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0a0fde545e44dfa062eb9ffc3a714323d44e2ecff105bfd21162c5598ae05ab
|
|
BLAKE2b-256 checksum How to use checksums |
2705d16c6fce782d24b04b30953d9eab34f2e4d6816b8877b2a58cf1b68f23db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for elkjs 0.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.