Skip to main content

giftassetsdk 6.9.6

Dynamic async SDK for GiftAsset API.

The SDK loads the live OpenAPI schema from: https://giftasset.gifts/openapi.json and builds method mapping in memory for the current process runtime.

Install

pip install giftassetsdk

Quick start

import asyncio
from giftasset_sdk import SDK


async def main():
    client = SDK(api_key="YOUR_API_KEY")
    await client.initialize()

    gift = await client.get_gift_by_name(name="EasterEgg-1")
    print(gift["telegram_gift_name"])

    # Optional: inspect available methods loaded from OpenAPI
    print(len(client.list_methods()))
    print(client.list_methods()[:10])

    await client.close()


asyncio.run(main())

Calling any method from OpenAPI

Method names are resolved from OpenAPI path names. Example:

/api/v1/gifts/get_gift_by_name -> client.get_gift_by_name(...)

If endpoint has request body, you can pass body in 2 ways:

  1. Explicit body:
await client.get_collection_offers(body={"collection_name": "Evil Eye"})
  1. Direct kwargs (auto-packed into body):
await client.get_collection_offers(collection_name="Evil Eye")

For path parameters:

image_bytes = await client.data(
    collection_shortname="artisanbrick",
    attribute_type="models",
    attribute_name="fightclub.png",
)

Notes

  • Initialization fetches OpenAPI and creates temporary in-memory map.
  • No hardcoded endpoint catalog in source.
  • X-API-Key is sent automatically for each request.

Metadata

Release files for giftassetsdk 6.9.6.post1

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

Source distribution (sdist)

Source distribution for giftassetsdk 6.9.6.post1
File Size Uploaded Provenance
giftassetsdk-6.9.6.post1.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for giftassetsdk 6.9.6.post1
File Interpreter ABI Platform
giftassetsdk-6.9.6.post1-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / giftassetsdk-6.9.6.post1.tar.gz

Download URL giftassetsdk-6.9.6.post1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
50f9b4955c44e5dfc6509d61891e55e54bd7a41c4afbe3a953c9b919a3ca4c16
BLAKE2b-256 checksum
How to use checksums
0c4dd7b5e2cc729ac8bf2d7bea9477e852f53fd72fb9d8d730756329483de405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / giftassetsdk-6.9.6.post1-py3-none-any.whl

Download URL giftassetsdk-6.9.6.post1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fbd53a2781895073c5ca7ae2e026daf6c06fb023183b55891cbe9fee01e1ceb
BLAKE2b-256 checksum
How to use checksums
cbb48bfa8809cc0f4798cc5bd842e86939e00bc9253222407fe1af4b4a17d435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Security for giftassetsdk 6.9.6.post1

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.

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