Skip to main content

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)

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.3.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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spssstar-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 017b415b387a6212fb06584fc9ea2eb23923ec9cd9a50b1523876d5dba5c4966
MD5 2217d05c20b07dcc63941818af87b817
BLAKE2b-256 afa24bfc20115f8c4f58d44a60424d59298495ca88e9229f810644edbfb518b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spssstar-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1be91cb7be96a952a8541c1e69660da1f65bc6f0bc7dfd1b66914dc97f2ea6b0
MD5 cfb4772f578da88b06ed5bbe84bec5cf
BLAKE2b-256 fa74d2903160cf5d128cfa865e0f35120319fa71a42076fc8b3b26e68896bb40

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

Supported by

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