Skip to main content

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+.

Metadata

Release files for aicser-embed 0.3.1

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

Source distribution (sdist)

Source distribution for aicser-embed 0.3.1
File Size Uploaded Provenance
aicser_embed-0.3.1.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aicser-embed 0.3.1
File Interpreter ABI Platform
aicser_embed-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / aicser_embed-0.3.1.tar.gz

Download URL aicser_embed-0.3.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
437cf8bc6975dd7a4ac28df0a4dcbc9a45a39d79becccacfa3d26a72044c33a1
BLAKE2b-256 checksum
How to use checksums
bbf1422c7aa4759c3f0f772af8bc02a1d291405c75231745f958d23f95f677ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / aicser_embed-0.3.1-py3-none-any.whl

Download URL aicser_embed-0.3.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df76bf04c328775d182e8d870db83e97f82e0a815b77ff57615900ac619cbdcc
BLAKE2b-256 checksum
How to use checksums
fd206078a3e9c346d35fbeed9f7a445c722d4d897a8a62d4de5d6eb6a132e770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for aicser-embed 0.3.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.1 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