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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bypasstools-1.0.2.tar.gz.
File metadata
- Download URL: bypasstools-1.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c940bf84f88cb9857d777c2289e5d07b27cab35ad314d812b7f77e6aaed26cd2
|
|
| MD5 |
c4e4457d6dbd4aba3a4e78e8228321eb
|
|
| BLAKE2b-256 |
43b1ce0c1890ba3253686e615fca0ee01ba87a8c59e647a4aad6d6bd1f18dff4
|
File details
Details for the file bypasstools-1.0.2-py3-none-any.whl.
File metadata
- Download URL: bypasstools-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2edaffcaa4ac58752df12588fa44ee5576558859dbfed6395bd113d4b7015b15
|
|
| MD5 |
1b08ca335be6d302083e719ff3ba2ba5
|
|
| BLAKE2b-256 |
beca873a4469e62219d3230ccfe4ddf31ea048173ae5414e5958401cdbb89c86
|