Skip to main content

signtraker

A typed, production-grade Python client for the SignTraker API.

  • Layered design: a shared HTTP transport (BaseClient) plus one thin client per resource group.
  • Typed throughout: full type hints, Pydantic v2 models, and a shipped py.typed marker.
  • Friendly errors: HTTP status codes map to a typed exception hierarchy.
  • OData querying: ergonomic filter / top / skip / orderby / select keywords.

Installation

pip install signtraker

Optional .env support:

pip install "signtraker[dotenv]"

Authentication

The API uses an API key sent as Authorization: ST-API <key>. Find your key in SignTraker under My Profile (contact your administrator if API access is not enabled).

The API host is tenant-specific (https://<subdomain>.signtraker.com), so you must provide either a subdomain or a full base_url.

from signtraker import SignTrakerClient

# Provide the key explicitly...
client = SignTrakerClient(api_key="YOUR_KEY", subdomain="theperrygroup")

# ...or via environment variables (SIGNTRAKER_API_KEY / SIGNTRAKER_SUBDOMAIN).
client = SignTrakerClient(subdomain="theperrygroup")

Supported environment variables (the brand-spelled SIGNTRACKER_* forms are also accepted as a fallback):

  • SIGNTRAKER_API_KEY
  • SIGNTRAKER_BASE_URL or SIGNTRAKER_SUBDOMAIN
  • SIGNTRAKER_TIMEOUT_SECONDS, SIGNTRAKER_MAX_RETRIES, SIGNTRAKER_RETRY_BACKOFF_SECONDS

Quickstart

from signtraker import SignTrakerClient

client = SignTrakerClient(subdomain="theperrygroup")

# List the first 5 agents ordered by last name
agents = client.agents.list_agents(top=5, orderby="LastName")
for agent in agents:
    print(agent["FirstName"], agent["LastName"])

# Fetch one agent
agent = client.agents.get_agent(123)

# Find an agent by email
matches = client.agents.list_agents(email="someone@example.com")

Responses are plain dictionaries. For typed access, validate with a model:

from signtraker.models import Agent

agent = Agent.model_validate(client.agents.get_agent(123))
print(agent.first_name, agent.email)

API coverage

Resource group Property Endpoints
Agents client.agents list, get, create, update, activate, deactivate
Change Orders client.change_orders list, get, create
Credits client.credits list awards, create award
Enterprises client.enterprises list
Offices client.offices list
Order Presets client.order_presets list
Orders (signage) client.orders list, get, create, request removal
Services client.services list, get, create

Error handling

from signtraker import SignTrakerClient, NotFoundError, SignTrakerError

client = SignTrakerClient(subdomain="theperrygroup")
try:
    agent = client.agents.get_agent(999999)
except NotFoundError:
    print("No such agent")
except SignTrakerError as exc:
    print(exc.status_code, exc.message)

Documentation

Full documentation (API reference, guides, and examples) is built with MkDocs. See the docs/ directory or the published site.

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pip install -r docs/requirements.txt

black --check .
isort --check-only --profile=black --line-length=88 .
flake8 .
mypy signtraker/ --strict
pytest --cov=signtraker --cov-report=term-missing
mkdocs build --strict

Live integration tests are opt-in and run only when a real key is set in the environment:

SIGNTRAKER_API_KEY=... SIGNTRAKER_SUBDOMAIN=theperrygroup pytest -m live

License

MIT. See LICENSE.

Metadata

Release files for signtraker 0.1.0

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

Source distribution (sdist)

Source distribution for signtraker 0.1.0
File Size Uploaded Provenance Actions
signtraker-0.1.0.tar.gz 21.0 kB With provenance Details for signtraker-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 45.9 kB

Release files / signtraker-0.1.0.tar.gz

Download URL signtraker-0.1.0.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7ec643d073ee7083749447bf59327e525bfed0dbb86aafffbf7c9394933cbf64
BLAKE2b-256 checksum
How to use checksums
5bab88bb158a24c843226c94b6a430821c4f955f9780df85f9b82f915971d6ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Release files / signtraker-0.1.0-py3-none-any.whl

Download URL signtraker-0.1.0-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b4f1055ff5e29346443e32fbda1bee522a56703e17f590b664df82aa05913c5
BLAKE2b-256 checksum
How to use checksums
f7f825c1557890a6d31aaddfaee8b16b841f953cc03aa6f99acffb98e977f684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Security for signtraker 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for signtraker-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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