Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

PyTree

https://img.shields.io/pypi/v/tree.svg?style=flat-square https://img.shields.io/pypi/l/Tree.svg?style=flat-square

Python package, which you can use to generate and drawing trees, realistic or fractal ones.

Usage

$ pip install Tree
from math import radians
from PIL import Image
from Tree.core import Tree
from Tree.draw import PillowDrawer

if __name__ == "__main__":
    # Create a Tree
    my_tree = Tree(
        pos = (0, 0, 0, -200),
        branches=[
            [0.5, rad(0)],
            [0.5, rad(120)],
            [0.5, rad(240)],
        ],
        sigma = (0.2, 5/180)
    )
    my_tree.grow(times=12)

    # Move the tree in the right position, so that the tree is completly in the image
    rec = my_tree.move_in_rectangle()

    # Create a image with the dimensions of the tree
    im = Image.new("RGB", my_tree.get_size())

    # Draw the tree on the image
    PillowDrawer(my_tree, im, (203, 40, 12)+(23, 90, 123), 10).draw()

    # Show the tree
    im.show()

Documentation

The documentation is hosted on Readthedocs.

Metadata

Release files for Tree 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for Tree 0.2.3
File Size Uploaded Provenance Actions
Tree-0.2.3.tar.gz 6.2 kB Without provenance Details for Tree-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Tree 0.2.3
File Interpreter ABI Platform Actions
Tree-0.2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for Tree-0.2.3-py2.py3-none-any.whl

Total release size: 20.9 kB

Release files / Tree-0.2.3.tar.gz

Download URL Tree-0.2.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
40ba25617590606a72dfe7684e938f77430bcef1fe08a389a14d62c97f604c47
BLAKE2b-256 checksum
How to use checksums
78b48bbf5140e1e0901f3a1f56c59add4bf6fea941a8a5d576cc3636b63f1ba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Tree-0.2.3-py2.py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL Tree-0.2.3-py2.py3-none-any.whl
Size 14.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3b937f955ebc2e5c2045f40aebf1e0b1a3544a79aab504861f05b8842607eeac
BLAKE2b-256 checksum
How to use checksums
e03a50437c77db365d9cdd8040f811465334f062a40a04b815e57806172cad1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Tree 0.2.3

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page