Catalog PyPI
Back to packageRELEASE DETAILS

0.3.1

PyPI

aicser-embed

Mint signed, single-use Aicser embed links from your server

Published29 Sept 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.3.1 documentation

aicser-embed

Mint signed, single-use Aicser embed links from your Python server, for embedding a dashboard, chart, or executive report for one of your customers.

pip install aicser-embed
import os
from aicser_embed import sign_embed_url

embed = sign_embed_url(
    base_url="https://api.aicser.com",          # your Aicser API
    api_key=os.environ["AICSER_API_KEY"],        # Settings → API keys; keep it on the server
    dashboard_id="b4b3…",                        # or resource_id=… with scope="chart"|"report"
    locked_filters=[{"field": "tenant_id", "value": customer.id}],
    expires_in_minutes=60,
    allowed_domains=["app.example.com"],
    download="none",                             # "none" | "image" | "data"
)
# Put embed.url in an <iframe>, or hand it to @aicser/embed's getToken.
# Reports: sign_embed_url(..., resource_id="conversationId:messageId", scope="report")
  • Locked filters. Aicser applies them to every query made with the link, so a visitor can't see another customer's rows.
  • Single use. A link opens once, so mint one per page view. With @aicser/embed, return a fresh link's token from getToken and sessions renew without reloading the page.
  • Errors. Failures raise AicserSignError, which carries .status: 401 for a bad key, 402 for a plan without embedding, 404 for an unknown resource.

The package uses only the standard library and supports Python 3.8+.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

2 collected
aicser_embed-0.3.1-py3-none-any.whl

bdist_wheel · 3.59 KB · Python py3

Source file
aicser_embed-0.3.1.tar.gz

sdist · 3.93 KB · Python source

Source file

Repository

PENDING
aicser-platform/aicser

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:21 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1feea6564bc55a0c985a2feb3a17640a1214fca54ec93b009ff28badd5c70f1b

Other collected versions

View all collected versions →