Skip to main content

Un wrapper simple para la API de TRW

Project description

TRW API Wrapper

A simple and efficient wrapper for the TRW API (iwoozie.baby). This wrapper provides an easy-to-use interface for all API endpoints, including both free and authenticated endpoints.

Installation

pip install trw-wrapper

Quick Usage

Free Bypass

from trw_wrapper import TRWClient

# For free endpoints, no API key needed
client = TRWClient()
result = client.free_bypass(url="https://example.com")
print(result)

Authenticated Bypass

from trw_wrapper import TRWClient

# Initialize with your API key
client = TRWClient(api_key="your_api_key")

# Simple bypass
result = client.bypass(url="https://example.com")
print(result)

# Long-lived bypass
thread = client.bypass_v2(url="https://example.com")
thread_id = thread["ThreadID"]

# Check bypass status
status = client.check_thread(thread_id)
print(status)

Available Functions

  • free_bypass(url): Free bypass without API key
  • bypass(url): General bypass (requires API key)
  • bypass_v2(url): Long-lived bypass (requires API key)
  • check_thread(thread_id): Check the status of a long-lived bypass
  • get_status(): Check API status

Response Examples

Simple Bypass

{
  "result": "Bypass Result",
  "success": true
}

V2 Bypass (Long-lived)

{
  "status": "started",
  "ThreadID": "task_id_123",
  "next": "/api/v2/threadcheck?id=task_id_123"
}

Thread Status

{
  "status": "Done",
  "result": "Result",
  "success": true
}

Requirements

  • Python 3.6+
  • requests>=2.25.1

API Documentation

For more information about the API, visit iwoozie.baby/docs

License

MIT License

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

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

trw_wrapper-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

trw_wrapper-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file trw_wrapper-0.1.0.tar.gz.

File metadata

  • Download URL: trw_wrapper-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for trw_wrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f1c3a45252535d2c81374fcff7a850027b9a7d42b2a851d99f9fb45b81d641a
MD5 46bf611a9d574e9d8201daed3e778e54
BLAKE2b-256 1b01239a4fb59726a4e326e0df4a59948e82086698a4f796e7d19cbafb01bd93

See more details on using hashes here.

File details

Details for the file trw_wrapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trw_wrapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for trw_wrapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 973198d2c9520ed1ab0eb8641120855f7d23fd2b34ebdea356b94ab83c1c5097
MD5 8b1ef652843d65074596fb3dab6571a4
BLAKE2b-256 bcd4178f4db836506240a4cbde213d898842c34a941888ae109049512fba686c

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