Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

planet-generator-sdk-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

planet_generator_sdk-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for planet-generator-sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ab10915f886a0c59ae26db582b44fbc621bff73a342a60591ea752bf4ff48385
MD5 2d400dc3d2e9a8abc156cdccd365bd8a
BLAKE2b-256 35a9d725df4ae04d34f11a13986d11e82819fa80a1aefd3de7601543fb42c211

See more details on using hashes here.

File details

Details for the file planet_generator_sdk-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for planet_generator_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 610de3beb968baf9134773585a3c67b76c93c60baf96d3331fc3b964766eec2c
MD5 622efab2e86cdb8ad2fa147b2231f9d1
BLAKE2b-256 884349c76bbbaef0cacdf50352d6be12b08dd3076b8dd0805f2809adb02a3fec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page