Skip to main content

A library for encoding session-specific data into star maps.

Project description

spssstar

A Python library for encoding session-specific data into star maps. This library generates star properties (positions, colors, twinkling patterns) based on unique session identifiers.

Features

  • Encode session IDs into star positions, colors, and twinkling patterns.
  • Embed blockchain hashes for tamper-proof validation.
  • Generate reproducible but unique star maps.
  • Lightweight and easy to integrate with rendering libraries like spssimage.

Installation

Install the library using pip:

pip install spssstar

USAGE: from spssstar.core import StarEncoder

Initialize the encoder

encoder = StarEncoder(width=400, height=400)

Encode a session ID into a star map

star_map = encoder.encode_star_map("test-session", num_stars=10)

Export the star map for rendering

exported_data = star_map.export() print(exported_data)

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

spssstar-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spssstar-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file spssstar-0.1.2.tar.gz.

File metadata

  • Download URL: spssstar-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for spssstar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 daed8961da1401bc8f6c4ac7916bd86943c9d771e4afcfa27638cb4b0ff32e92
MD5 51c2448c7dc99bfb856193a5b87bff90
BLAKE2b-256 4716eede6f8a73dd61c0196deb43b92318fee3c737cc8b872c673abb361dc623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spssstar-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for spssstar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c05b697e50f1b5b47ae4beec82cbed3b8368aae4d5478e8599dc510f3da72bdf
MD5 ba64907ff6c542d2b1bd742074f938e4
BLAKE2b-256 d98f496d102b26f00c0772126f3e50041fa3f6bb3313991946a8275f3fbbe7fd

See more details on using hashes here.

Supported by

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