Skip to main content

Official Python SDK for the BypassTools API

Project description

bypasstools

Official Python SDK for the BypassTools API.

Installation

pip install bypasstools

Quick Start

from bypasstools import BypassTools

client = BypassTools(api_key="bt_your_key_here")

# Direct (synchronous) bypass
result = client.bypass("https://linkvertise.com/example")
print(result.result_url)

# Async task — create and poll until done
result = client.bypass_async("https://loot.link/example")
print(result.result_url)

Authentication

Get your API key from your dashboard.

Methods

bypass(url, *, refresh=False) -> BypassResult

Calls the direct bypass endpoint and blocks until a result is returned.

create_task(url) -> str

Creates an async task and returns the taskId.

get_task_result(task_id) -> TaskResult

Polls a single task for its current status.

bypass_async(url, *, poll_interval=1.5, timeout=90) -> BypassResult

Creates a task and polls until it completes or times out.

Async Usage

Requires aiohttp:

pip install bypasstools aiohttp
import asyncio
from bypasstools import AsyncBypassTools

async def main():
    client = AsyncBypassTools(api_key="bt_your_key_here")
    result = await client.bypass("https://linkvertise.com/example")
    print(result.result_url)

asyncio.run(main())

Error Handling

from bypasstools import BypassTools, BypassToolsError

client = BypassTools(api_key="bt_your_key_here")

try:
    result = client.bypass("https://linkvertise.com/example")
except BypassToolsError as e:
    print(e.code)    # e.g. "QUOTA_EXCEEDED"
    print(e.status)  # HTTP status code
    print(str(e))    # error message

License

MIT

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

bypasstools-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

bypasstools-1.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file bypasstools-1.0.1.tar.gz.

File metadata

  • Download URL: bypasstools-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bypasstools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f28eafd0d8bfcb03d63335b3a2bbcb7e22e38e72e37d1ce0d19f8ce3c28c1b51
MD5 b9f0f7fead42cff79817485dbe0d4433
BLAKE2b-256 57ec40548cd9551a676f2bf2f4c0973799b9c496208e6914151545eb553e098f

See more details on using hashes here.

File details

Details for the file bypasstools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: bypasstools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bypasstools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c504761b1d5d1d10c00c1ac98991aadf42ff113e04aa209e41c9516de4c7522c
MD5 ec43b164d2b22895407999503abee374
BLAKE2b-256 9907f26bf3be60b8e4e38131263ccd680566c1960bd40221adcff312c78ece51

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