Skip to main content

PyPI version

Tremendous Api Client Python PyPackage

Tremendous Api Client client is a Python library to access services quickly.

Installation

Use the package manager pip to install foobar.

pip install TremendousClient

Environment Variables

TREMENDOUS_ENV: 'dev|prod'
TREMENDOUS_TOKEN: 'TREMENDOUS TOKEN'

Note

If you don't want to set this variables from global environment you can pass them to class. You can see usage below

Usage

from tremendous import TremendousService

kwargs = {
    # you can also set tremendous environment from environment.
    'environment': 'dev|prod',  # Default value : dev
    # you can also set token from environment.
    'token': 'tremendous token',  # Default value : None
}
# Initialize client with
tremendous_service = TremendousService()
# or tremendous_service = TremendousService(**kwargs)

# For Products
products = tremendous_service.getProducts()

# For Funding Source
funding_source = tremendous_service.getFundingSource()

# For Create Order
body = {
        "payment": {
            "funding_source_id": "funding_source_id"
        },
        "rewards": [
            {
                "products": [
                    "product_id"
                ],
                "value": {
                    "denomination": 2,
                    "currency_code": "USD"
                },
                "recipient": {
                    "name": "John Doe Jr.",
                    "email": "johndoe@example.com"
                },
                "delivery": {
                    "method": "LINK"
                }
            }
        ]
    }
order = tremendous_service.createOrder(body)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Release files for TremendousClient 0.0.7

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

Source distribution (sdist)

Source distribution for TremendousClient 0.0.7
File Size Uploaded
TremendousClient-0.0.7.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / TremendousClient-0.0.7.tar.gz

Download URL TremendousClient-0.0.7.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8814fd6d0662ba892c71bba53b20211e25ddde0fa29522c210ccb1822a80eab6
BLAKE2b-256 checksum
How to use checksums
7ba64d5e9a94bd17556f1eea59571097b6086fd907556d879a6761ff1a8f17cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / TremendousClient-0.0.7-py3-none-any.whl

Download URL TremendousClient-0.0.7-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33d84b7897e6760c881d208eb76aa5b3bae018ba1f8236b55858e0483bd9cbe0
BLAKE2b-256 checksum
How to use checksums
e290dea146e164f8e0ccf68d74d6688f651b4f6dfd1ee218406229bfe26ab72b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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