Skip to main content

giftbit-python

A Python SDK for GiftBit's API.

Installation

$ pip install giftbit

Getting Started

API Credentials

The GiftbitClient needs your Giftbit credentials. You can pass them into the constructor or use the environment variable GIFTBIT_API_KEY.

from giftbit import GiftbitClient

client = GiftbitClient(api_key="<your api key here>")

# or using the environment variable
client = GiftbitClient()

By default, the GiftbitClient uses Giftbit's testbed API. To use the production API server, do the following:

from giftbit import GiftbitClient, 

client = GiftbitClient(testbed=False)

You can check to see if the client is configured correctly by using the ping method

from giftbit import GiftbitClient, 

client = GiftbitClient(testbed=False)

result = client.ping()

print(result)

Brands

List Brands

from giftbit import GiftbitClient, 

client = GiftbitClient()

result = client.list_brands()

for brand in result['brands']:
    print(brand['name'])

Get Individual Brand

from giftbit import GiftbitClient, 

client = GiftbitClient()

result = client.get_brand('amazonus')

print(result['brand'])

Regions

Not implemented yet

Campaigns

Not implemented yet

Funds

Not implemented yet

Gifts

Not implemented yet

Not implemented yet

Metadata

Release files for giftbit 0.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 giftbit 0.1
File Size Uploaded Provenance
giftbit-0.1.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / giftbit-0.1.tar.gz

Download URL giftbit-0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
577a10e8c8ad0c365ca83a91af2f255ba34b8a425b48c14c4dde1f61b444f075
BLAKE2b-256 checksum
How to use checksums
a6af431bac459c35f5e3c1efd69e24296b4d7d3c30e6390d7f9d16ca800f4f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / giftbit-0.1-py3-none-any.whl

Download URL giftbit-0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
830109652c51ea416ac1c88aab049734e3bfe67b2c4b4d8d59e4aabdb71c2dea
BLAKE2b-256 checksum
How to use checksums
5ad01151701cec682bbcca8dd14c5617a8525673e81f628c93fe9f237b155e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for giftbit 0.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.

Release history Release notifications | RSS feed

This release

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