An API for reading and manipulating Starmade game data
Project description
# Starmadepy v0.1
A Python library for manipulating Starmade game data
## Overview
Starmadepy is a simple python library that makes parsing and manipulating Starmade game data easy. As this project is fairly new, the only file type that is currently supported is the .smtpl, or Template file type.
[Docs](http://starmadepy.readthedocs.org/en/latest/)
## Example
Maybe you created a really nice component that utilizes blocks, wedges, corners, heptas, and tetras in a couple different colors and you’d like to generate some copies of this template in different colors.
The following code will open a template file, select all the blocks with the color grey and then replace them with orange.
from starmadepy import starmade
template = starmade.Template.fromSMTPL(‘sometemplatefile.smtpl’) template.replace({‘color’: ‘grey’}, {‘color’: ‘orange’})
## Installation
It is recommended that you use virtualenv or the virtualenvwrapper.
pip install starmadepy
## Contributing coming soon
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for starmadepy-0.1.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a5102c9b8cf91549101e32dad9ded082849f4e75c405268e9666b31f0c4608 |
|
MD5 | 856ab49cb00dfd01b8e8de40698d228e |
|
BLAKE2b-256 | ed89c70aeedc7fe900594eaf2c6e95e60f334b1ca64bcdffc5e0e1420f82dbb2 |