Skip to main content

A Python client for the TrackerStatus.info API

Project description

trackerstatus

PyPI Python Version License

CodeQL CI Release

A Python wrapper for the trackerstatus.info API and its tracker-specific endpoints. This library provides a simple interface to monitor the status of various trackers and their services.

  • Rate-limited API client (1 request per minute as per API requirements)
  • Support for all tracker-specific endpoints:
    • AlphaRatio (AR)
    • BroadcastTheNet (BTN)
    • GazelleGames (GGN)
    • PassThePopcorn (PTP)
    • Redacted (RED)
    • Orpheus (OPS)
  • Comprehensive status information including:
    • Current status
    • Latency metrics
    • Uptime statistics
    • Record uptimes
    • Downtime tracking
  • Type hints and detailed documentation
  • Extensive test coverage

Documentation

The project includes comprehensive documentation:

Features

  • Check tracker status and response times
  • Support for multiple tracker protocols (HTTP, HTTPS, UDP)
  • Detailed status information including:
    • Response time
    • Status code
    • Error messages
    • Protocol information
  • Easy-to-use API
  • Comprehensive documentation

Installation

pip install trackerstatus

Quick Start

from trackerstatus import APIClient

# Create an API client
client = APIClient()

# Check a specific tracker's status
status = client.get_status("ar")  # AlphaRatio
print(f"Status: {status.status}")
print(f"Latency: {status.latency}ms")
print(f"Uptime: {status.uptime}%")

# Or check all trackers
for tracker in ["ar", "btn", "ggn", "ptp", "red", "ops"]:
    status = client.get_status(tracker)
    print(f"{tracker.upper()}: {status.status}")

For more detailed examples, see the examples documentation.

Documentation

Development

This project uses Poetry for dependency management and development tools:

# Install dependencies
poetry install

# Run tests
poetry run pytest

# Format code
poetry run black .
poetry run isort .

# Type checking
poetry run mypy .

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

trackerstatus-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

trackerstatus-1.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file trackerstatus-1.0.0.tar.gz.

File metadata

  • Download URL: trackerstatus-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for trackerstatus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2f43a854d601ae1a2d8cf9d2df08146756064c06ee51c5f2955bd84b72d23642
MD5 791d3ebdfecb7b7d4e353c9bb2064d21
BLAKE2b-256 19b91d69d7275ed5afdae463c56d38537c61fadc60d7907c002e44abfad8b826

See more details on using hashes here.

File details

Details for the file trackerstatus-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: trackerstatus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for trackerstatus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b098c85e775ee7cc9d976d8d9dc0cdcebdb61a61c8d694379554f2de618fe06
MD5 012013bf392b5fc3ee5b786228b2b127
BLAKE2b-256 8dae0ef9da12b58c20f1578df964ec704739b0341e34a5aefb915967b5a1e8a3

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