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)
    • Nebulance (NBL)
    • Anthelion (ANT)
  • 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, StatusEndpoint

# Create an API client
client = APIClient()

# Get overall status of all trackers
status_endpoint = StatusEndpoint(client)
all_statuses = status_endpoint.get_status()
print("Overall Status:")
for tracker, info in all_statuses.items():
    print(f"{tracker.upper()}: {info['status_message']}")
    if info['details']:
        details = info['details']
        print(f"  Description: {details.get('Description', 'N/A')}")
        print(f"  Services: {details.get('Services', {})}")
        print(f"  Last Update: {details.get('tweet', {}).get('date', 'N/A')}")

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.6.tar.gz (7.1 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.6-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trackerstatus-1.0.6.tar.gz
  • Upload date:
  • Size: 7.1 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.6.tar.gz
Algorithm Hash digest
SHA256 05ac163c886f4575c415d2ede6a13e30b7960c48c108101f6407204ea4e1b3ec
MD5 06caf0c3fbc31145b8ef0dcc415df802
BLAKE2b-256 71f9830d36dcc64eee6aa0e679e0d3a559deaf2f2145b03a5c7d6230e51b82da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trackerstatus-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7582335f646dee5f4a94cea88f7748f1f294529796acd0f8ef29b6fef453b14f
MD5 76b6cff92612ebaeb0cc64b174c34bba
BLAKE2b-256 9cdf14ae856b3d7f3a5e053f4d192776e4a9c9aff2b9a38f311994f023610afb

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