https://github.com/planet-api/python-sdk
Python SDK for Planet API, the 2D planet sprite generation API.
https://github.com/planet-api/python-sdk
2d 2d-game 2d-graphics assets indiegame planet space sprites universe
Last synced: 5 months ago
JSON representation
Python SDK for Planet API, the 2D planet sprite generation API.
- Host: GitHub
- URL: https://github.com/planet-api/python-sdk
- Owner: planet-api
- Created: 2022-05-12T11:46:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T15:45:15.000Z (about 4 years ago)
- Last Synced: 2025-08-30T08:30:42.534Z (9 months ago)
- Topics: 2d, 2d-game, 2d-graphics, assets, indiegame, planet, space, sprites, universe
- Language: Python
- Homepage: https://planet.joffreybvn.be/python-sdk/index.html
- Size: 1.28 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Planet Generator - Python SDK
Planet API is a **2D planet sprite generator**. Our internal process procedurally generate surfaces, map them to a true sphere, to finally render a planet at 1080x1080 with transparent background.
This SDK facilitate the interaction with the API and implement masks features to add lighting and solar effect to the planets.
This API currently under development. During this phase, it can be accessed for free. [See here how to get your key](https://planet.joffreybvn.be/).
## Installation
```shell
pip install planet-generator-sdk
```
## Quickstart
Generate a 2D planet sprite with masks:
```python
from planet_generator import Client
# Create a Planet API client
planet_api = Client.from_api_key(
api_key="YOUR API KEY HERE"
)
# Generate a new planet
planet = planet_api.get_planet()
sprite = planet.sprite.get_image(apply_masks=True)
sprite # Contains the 2D planet sprite
```