Skip to main content

Add your description here

Project description

Trustcafe API Wrapper

Intended use (not working yet but testing.py does)

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")

Debates

  1. Not sure about the name jobs and run_job. Requests is an existing package dependency though. tasks seems to broard. I'm sure there's probably an already existing name that I can't articulate how to find.
  2. Should these job be called with dot notation? Or with slashes? Or something else? Is it okay to have these as strings?
  3. Should we do validation in the jobs or let the server do that all?
  4. wrapped is an awkward name. What's more proper? But also obvious?

ToDo:

  1. Make more jobs
  2. Make wrappers to make it less cumbersome when posting etc
  3. Publish to PyPi or whatever

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.1.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.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trustcafeapiwrapper-0.1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9acf187d3e1cf430a9d84ff7c3356cd74fdd10ab8d794f6b0317667778f909e5
MD5 4d48b55643f4aef19466101cd19f2362
BLAKE2b-256 51d7f582f8e82f920b6dfee642f573c19551fdda3ca1ccb4247ce4e4a7419b02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustcafeapiwrapper-0.1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e477b881d0efe10c995345836e52ba5f9da67f0aa5cbfee2b6e05af6f1d0544
MD5 e96b38433b6d76fe1e2e87bed8b41d41
BLAKE2b-256 0d17f80abcf019be18ce1a9abec02204b92ba77cb18c0dc1fa0b6f7e094c84cf

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