Skip to main content

Aurastamp SDK (Python)

Hide and reveal short messages inside images.

pip install aurastamp-sdk

The payload is 7 bytes

The message is embedded in the image itself, and the model reserves exactly 7 bytes for it. Anything longer is rejected before a request is made.

That is 7 characters of ASCII, but fewer for anything else — '가나' is two characters and six bytes.

To hide something longer, store the text somewhere and embed a short key instead; that is what aurastamp.com does.

Usage

from aurastamp_sdk import Aurastamp

aurastamp = Aurastamp()  # or Aurastamp("http://localhost:8000")

# Hide a message
encoded = aurastamp.image.encode_file(
    image_file_path="photo.png",
    message="hello",
    output_path="encoded.png",
)

# Reveal it again
print(aurastamp.image.decode_file(image_file_path="encoded.png"))
#=> '  hello'   (padded to 7 bytes)

Working with bytes directly:

with open("photo.png", "rb") as f:
    encoded = aurastamp.image.encode(image=f.read(), message="hello", filename="photo.png")

message = aurastamp.image.decode(image=encoded, filename="encoded.png")

Configuration

Setting Default
server_url arg AURASTAMP_API_URL env var
AURASTAMP_API_URL https://api.aurastamp.com

Errors

Every failure raises AurastampError, carrying the server's detail message and the HTTP status where there is one.

from aurastamp_sdk import AurastampError

try:
    aurastamp.image.encode_file(image_file_path="photo.png", message="way too long")
except AurastampError as error:
    print(error, error.status)

Coming from the aurastamp package

This supersedes aurastamp on PyPI, which is unmaintained and published from an account this project no longer controls. Its last release could not talk to the current API: it base64-decoded a response that was already raw PNG bytes and read keys off the decode response that the server never sends.

The import is aurastamp_sdk, not aurastamp — two distributions installing the same top-level package would overwrite each other's files.

If you depend on aurastamp, switch to aurastamp-sdk. What changed:

  • encode / encode_local_file → encode / encode_file, and they now return PNG bytes rather than a requests.Response
  • decode / decode_local_file → decode / decode_file, returning the message string
  • the unused model, return_type and hidden_image arguments are gone
  • failures raise AurastampError instead of returning a non-2xx response

Metadata

Release files for aurastamp-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aurastamp-sdk 1.0.0
File Size Uploaded Provenance
aurastamp_sdk-1.0.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aurastamp-sdk 1.0.0
File Interpreter ABI Platform
aurastamp_sdk-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / aurastamp_sdk-1.0.0.tar.gz

Download URL aurastamp_sdk-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
df84ca149f5a8bb91ea80fee9e0c9347ba7db4ab9f30b45c69cb3e5e68a56a48
BLAKE2b-256 checksum
How to use checksums
25d462de5f64c42654eb98f7be837a75beca35ef35994ce2b72df6d4dd423cba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / aurastamp_sdk-1.0.0-py3-none-any.whl

Download URL aurastamp_sdk-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5bb042dfc854e2c70a11045a18d8385d18067e26eee890d02cbe71061266b78
BLAKE2b-256 checksum
How to use checksums
39ac0ff9355693145b6fb89334cf00554ce6b6d7b1a05a9f3690de6e3380a648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for aurastamp-sdk 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page