https://github.com/jerakin/deftree
DefTree is a python module to simplify modifying Defold files.
https://github.com/jerakin/deftree
Last synced: about 2 months ago
JSON representation
DefTree is a python module to simplify modifying Defold files.
- Host: GitHub
- URL: https://github.com/jerakin/deftree
- Owner: Jerakin
- License: mit
- Created: 2017-12-20T21:39:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T11:01:31.000Z (over 6 years ago)
- Last Synced: 2025-05-06T04:48:23.471Z (2 months ago)
- Language: Python
- Homepage: https://deftree.readthedocs.io/en/latest/
- Size: 107 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
#######
DefTree
#######.. image:: https://travis-ci.org/Jerakin/DefTree.svg?branch=master
:target: https://travis-ci.org/Jerakin/DefTree.. image:: https://img.shields.io/github/release/jerakin/deftree.svg
:target: https://github.com/jerakin/deftree/releasesDefTree is a python module for modifying `Defold `_ documents.
Install
=======.. code:: bash
pip install deftree
Dependencies
============You need to install the backport of the standard library typing module if you are running Python versions older than 3.5
.. code:: bash
pip install typing
Example Usage
=============Changing an atlas extrude border setting
.. code:: python
import deftree
tree = deftree.parse(path) # parse the document into a DefTree
root = tree.get_root() # returns the root from the tree
root.set_attribute("extrude_borders", 2) # sets the attribute "extrude_boarders" to 2
tree.write() # writes the file to the parsed files pathAPI
===You can find the `API `_ on `readthedocs `_.
Contributing
============Please take a look at the `contributing `_ guidelines if you're interested in helping!
More information
================Around the web, the initial post on `forum.defold.com `_, the package on `PyPi `_ and of course the repo on
`github `_.