Wraps the Trust Cafe API
Project description
Trustcafe API Wrapper
Prerequisites
You will need:
- API Client and Secret
- Python 3.11 or something sensible or above
- A method for environment variables like python-dotenv
API client key and secret from the site
- https://www.trustcafe.io/en/myaccount/apiaccess for production and https://alpha.wts2.net/en/myaccount/apiaccess for alpha (this will change in the future)
- Click "Create new client credentials key pair"
- Choose all of the scopes or select which you would like to restrict the key to
- Scroll down and press Save
- Copy the client key and secret to your environment, the secret cannot be retrieved without making a new one
Installation
pip install trustcafeapiwrapper
OR
uv add trustcafeapiwrapper
Usage
import trustcafeapiwrapper, os
API = trustcafeapiwrapper.APIClient(
client_id=os.getenv("client_id"),
client_secret=os.getenv("client_secret"),
env="alpha" # alpha | production.
debug=False
)
profile = API.run_job('userprofile.get', "simon-little")
from trustcafeapiwrapper.wrappers.post.create_post import create_post
API.wrapped(create_post(
"This is a test post created via the create_post wrapper function.",
))
More
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trustcafeapiwrapper-0.1.0.8.tar.gz.
File metadata
- Download URL: trustcafeapiwrapper-0.1.0.8.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fac71a7f83f023b445e0e881a22ffff090df80b2861edcf4cae49bd5869a771a
|
|
| MD5 |
7912faf161416d7ca61adcbf779328e3
|
|
| BLAKE2b-256 |
755725cadd955c6aa85c59bec19c6fb31e7d59b77c2cbc53ac58ea7bc18a88a3
|
File details
Details for the file trustcafeapiwrapper-0.1.0.8-py3-none-any.whl.
File metadata
- Download URL: trustcafeapiwrapper-0.1.0.8-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7d4f4971e43235cea21c9f08d084c1e91640d55905bb7cb3afcdf9dc1a3feda
|
|
| MD5 |
7167ce905d066c25504a111a5a743358
|
|
| BLAKE2b-256 |
b97c1fcad0001593ec3e38768e49dd852403049381e5fc6b646f80b17f7456ed
|