py-tree

Package for generating and drawing (fractal)trees.

https://github.com/pixelwarstudio/pytree

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Package for generating and drawing (fractal)trees.

Basic Info
  • Host: GitHub
  • Owner: PixelwarStudio
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 392 KB
Statistics
  • Stars: 22
  • Watchers: 2
  • Forks: 7
  • Open Issues: 1
  • Releases: 0
Created about 9 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.rst

PyTree
======
.. 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.

Usage
-----
.. 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

Documentation
-------------
The documentation is hosted on Readthedocs_.

.. _Readthedocs: http://pytree.readthedocs.io/en/latest/ 

Owner

  • Name: Pixelwar
  • Login: PixelwarStudio
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Delete event: 2
  • Push event: 2
  • Pull request event: 1
  • Create event: 1
Last Year
  • Watch event: 1
  • Delete event: 2
  • Push event: 2
  • Pull request event: 1
  • Create event: 1

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 228
  • Total Committers: 1
  • Avg Commits per committer: 228.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
PixelwarStudio j****s@g****t 228
Committer Domains (Top 20 + Academic)
gmx.net: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 11
  • Average time to close issues: 4 months
  • Average time to close pull requests: 10 months
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 0.64
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 11
Past Year
  • Issues: 1
  • Pull requests: 3
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 11 months
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • Emilyhelin (1)
  • kootenpv (1)
  • safo-bora (1)
Pull Request Authors
  • dependabot[bot] (15)
Top Labels
Issue Labels
Pull Request Labels
dependencies (15) python (1)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 24,274 last-month
  • Total dependent packages: 2
    (may contain duplicates)
  • Total dependent repositories: 139
    (may contain duplicates)
  • Total versions: 9
  • Total maintainers: 1
pypi.org: tree

A package for creating and drawing trees

  • Versions: 8
  • Dependent Packages: 1
  • Dependent Repositories: 139
  • Downloads: 24,274 Last month
Rankings
Dependent repos count: 1.3%
Downloads: 3.7%
Dependent packages count: 4.7%
Average: 7.3%
Forks count: 13.3%
Stargazers count: 13.3%
Maintainers (1)
Last synced: 11 months ago
spack.io: py-tree

A package for creating and drawing trees.

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 27.8%
Dependent packages count: 55.6%
Last synced: 11 months ago

Dependencies

requirements.txt pypi
  • Pillow ==4.2.1
  • click ==6.7
  • setuptools ==20.7.0
  • sphinx_rtd_theme ==0.2.4
  • svgwrite ==1.1.10
setup.py pypi