
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
.. image:: https://img.shields.io/pypi/v/tree.svg?style=flat-square :target: https://pypi.python.org/pypi/Tree
.. image:: https://img.shields.io/pypi/l/Tree.svg?style=flat-square :target: https://github.com/PixelwarStudio/PyTree/blob/master/LICENSE
Python package, which you can use to generate and drawing trees, realistic or fractal ones.
.. code-block:: bash
$ pip install Tree
.. code-block:: python
from math import pi, radians as rad
from Tree.core import Tree
from PIL import Image
branches = (
(.5, rad(-30)),
(.6, rad(30)),
(.4, rad(60))
)
def main():
tree = Tree(
pos=(0, 0, 0, -500),
branches=branches
)
# Let the tree grow
tree.grow(10)
# Move the tree in the right position, so that the tree is completly in the image
tree.move_in_rectangle()
im = Image.new("RGB", tree.get_size(), (239, 239, 239))
tree.draw_on(im, (85, 25, 0, 128, 53, 21), (0, 62, 21), 10)
im.show()
if __name__ == '__main__':
main()
.. image:: https://raw.githubusercontent.com/PixelwarStudio/PyTree/master/images/example.png
The documentation is hosted on Readthedocs_.
.. _Readthedocs: http://pytree.readthedocs.io/en/latest/
FAQs
A package for creating and drawing trees
We found that Tree demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.