Skip to main content

Official Python SDK for the BypassTools API

Project description

bypasstools

Official Python SDK for the BypassTools API — the fastest way to bypass link shorteners programmatically.

Links: bypass.tools · API Dashboard · eas.lol

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 — built by EAS · bypass.tools

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.3.tar.gz (5.0 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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bypasstools-1.0.3.tar.gz
  • Upload date:
  • Size: 5.0 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.3.tar.gz
Algorithm Hash digest
SHA256 525288694f56468f7bacfb656544d9709c1089d75da6389cf9d394665d2748b0
MD5 b27a794d7d51e5f390cdb3a788bee6e3
BLAKE2b-256 2df83d7e3282b0ee5a47b1b02b7332c13f5d3f0743985ca1e986c36a7dab2e46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bypasstools-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a38ee5ac9408e8486f4d4c4ac86a5eabf17d2b6d7c42497fbfada59d641b09e
MD5 cd11a7d2e91b34f9edec55e08f780c50
BLAKE2b-256 df3128d4ac12706a927f977c8eddc8ce9293fda40c0386d8dcf0f4c86af2b9c6

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