Skip to main content

Add your description here

Project description

Trustcafe API Wrapper

Prerequisites

You will need:

  1. API Client and Secret
  2. Python 3.12 or above
  3. A method for environment variables like python-dotenv

API client key and secret from the site

  1. 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)
  2. Click "Create new client credentials key pair"
  3. Choose all of the scopes or select which you would like to restrict the key to
  4. Scroll down and press Save
  5. 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")
)

profile = API.run_job('userprofile.get', "simon-little")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trustcafeapiwrapper-0.1.0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trustcafeapiwrapper-0.1.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file trustcafeapiwrapper-0.1.0.2.tar.gz.

File metadata

  • Download URL: trustcafeapiwrapper-0.1.0.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trustcafeapiwrapper-0.1.0.2.tar.gz
Algorithm Hash digest
SHA256 ee90deae1ae0680ea19ec510752034cbc6b397b7a17e0f6ac71c0a9f7bd07cd4
MD5 5239ff3727bc81b4900b63648b6e9bfa
BLAKE2b-256 e5a639cee1487f455b609df9429786ce985573042c91f8af8fabff1859a767c1

See more details on using hashes here.

File details

Details for the file trustcafeapiwrapper-0.1.0.2-py3-none-any.whl.

File metadata

  • Download URL: trustcafeapiwrapper-0.1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trustcafeapiwrapper-0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 977fe7d7e5344e955ffb1b94fdd2fd83d00133ace5c2126102e8a2619f598e1c
MD5 19eb6c2fa730202d5416a67b50a9a67a
BLAKE2b-256 0de61a7e52351d8afb29e4945b42b311bca39d4496126e8cdc1aa8d1ce760497

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page