Python SDk for Planet API, the 2D planet sprite generator.
Project description
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.
Installation
pip install planet-generator-sdk
Quickstart
Generate a 2D planet sprite with masks:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file planet-generator-sdk-0.1.2.tar.gz
.
File metadata
- Download URL: planet-generator-sdk-0.1.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab10915f886a0c59ae26db582b44fbc621bff73a342a60591ea752bf4ff48385 |
|
MD5 | 2d400dc3d2e9a8abc156cdccd365bd8a |
|
BLAKE2b-256 | 35a9d725df4ae04d34f11a13986d11e82819fa80a1aefd3de7601543fb42c211 |
File details
Details for the file planet_generator_sdk-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: planet_generator_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 610de3beb968baf9134773585a3c67b76c93c60baf96d3331fc3b964766eec2c |
|
MD5 | 622efab2e86cdb8ad2fa147b2231f9d1 |
|
BLAKE2b-256 | 884349c76bbbaef0cacdf50352d6be12b08dd3076b8dd0805f2809adb02a3fec |