change name to remove dashes and hopefully be importable

This commit is contained in:
simonwt 2026-03-30 23:05:49 +01:00
parent bfe42ef1a1
commit f07cf0e02d
5 changed files with 23 additions and 5 deletions

6
.gitignore vendored
View file

@ -20,5 +20,9 @@ __pycache__/
.vscode/*
# UV Build
dist/*
# Test Artifacts
token_data.json
token_data.json

View file

@ -1,3 +1,16 @@
# Trustcafe API Wrapper
Intended use (not working yet but testing.py does)
'''
import trustcafeapi
import os, simplejson as json
API = trustcafeapi.APIClient(
client_id=os.getenv("client_id"),
client_secret=os.getenv("client_secret"),
debug=True
)
'''

View file

@ -41,7 +41,7 @@ class APIClient(BaseModel):
if authenticate:
token = self._access_token
headers["Authorization"] = f"Bearer {token}"
if self.debug:
print({
"method": method.upper(),
@ -129,4 +129,5 @@ class APIClient(BaseModel):
else:
job_func = job_function
return job_func(self, *args, **kwargs)
return job_func(self, *args, **kwargs)

View file

@ -1,5 +1,5 @@
[project]
name = "trustcafe-api-wrapper"
name = "trustcafeapiwrapper"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"

2
uv.lock generated
View file

@ -212,7 +212,7 @@ wheels = [
]
[[package]]
name = "trustcafe-api-wrapper"
name = "trustcafeapiwrapper"
version = "0.1.0"
source = { virtual = "." }
dependencies = [