Python SDK for the bypass-vuotlink API
Project description
bypass-vuotlink-sdk
Python SDK for the bypass-vuotlink API — a service that resolves shortlink/safelink URLs (e.g. vuotnhanh.com) to their final destination by running a real browser workflow.
Install
pip install bypass-vuotlink-sdk
Quick start
from bypass_vuotlink_sdk import BypassVuotLink
with BypassVuotLink(base_url="http://localhost:8000") as client:
result = client.resolve("https://vuotnhanh.com/abc123")
print(result.final_url)
Async
from bypass_vuotlink_sdk import AsyncBypassVuotLink
async with AsyncBypassVuotLink(base_url="http://localhost:8000") as client:
result = await client.resolve("https://vuotnhanh.com/abc123")
print(result.final_url)
Configuration
from bypass_vuotlink_sdk import BypassVuotLink, ClientConfig
# Pass parameters directly
client = BypassVuotLink(
base_url="http://localhost:8000",
timeout=90.0,
api_key="secret",
)
# Or via a config object
config = ClientConfig(base_url="http://localhost:8000", api_key="secret")
client = BypassVuotLink.from_config(config)
# Or from environment variables
# BYPASS_BASE_URL, BYPASS_TIMEOUT, BYPASS_API_KEY
client = BypassVuotLink.from_env()
Result
result.requested_url # the URL you passed in
result.final_url # resolved destination
result.status_code # HTTP status at final_url
result.title # page title
result.workflow # workflow used (e.g. "vuotnhanh")
Supported workflows
workflows = client.list_workflows()
for workflow in workflows.workflows:
print(workflow.name)
print(workflow.link_formats)
Example item:
workflow.name # "funlink"
workflow.link_formats # ["https://funlink.io/..."]
Error handling
from bypass_vuotlink_sdk import (
UnsupportedUrlError,
UnsafeUrlError,
BrowserExecutionError,
BypassVuotlinkError,
)
try:
result = client.resolve(url)
except UnsupportedUrlError:
... # no workflow supports this URL type (HTTP 422)
except UnsafeUrlError:
... # URL is private or unsafe (HTTP 400)
except BrowserExecutionError:
... # browser workflow failed (HTTP 502)
except BypassVuotlinkError:
... # catch-all
Project details
Release history Release notifications | RSS feed
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 bypass_vuotlink_sdk-0.1.7.tar.gz.
File metadata
- Download URL: bypass_vuotlink_sdk-0.1.7.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9164689d9e12a202801aa059584c3a0e2e4aee18d8875675f47ebbdc682bdb4a
|
|
| MD5 |
9ac9a039d8dcaaf1f66532ad68425a7b
|
|
| BLAKE2b-256 |
bb5820fb001e8f25a40658d5ef0399e92d2f438a10f9507ffc17b1c4d6cdd650
|
Provenance
The following attestation bundles were made for bypass_vuotlink_sdk-0.1.7.tar.gz:
Publisher:
sdk-publish.yml on htilssu/bypass_vuotlink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bypass_vuotlink_sdk-0.1.7.tar.gz -
Subject digest:
9164689d9e12a202801aa059584c3a0e2e4aee18d8875675f47ebbdc682bdb4a - Sigstore transparency entry: 2117002371
- Sigstore integration time:
-
Permalink:
htilssu/bypass_vuotlink@77ed28db1e7e3cd0c627a5a140e2c405dafdf858 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/htilssu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@77ed28db1e7e3cd0c627a5a140e2c405dafdf858 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bypass_vuotlink_sdk-0.1.7-py3-none-any.whl.
File metadata
- Download URL: bypass_vuotlink_sdk-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
586d5986f97b9c86886c1df77283b046578f7492cbab6b025807fffd67a300dd
|
|
| MD5 |
84b843f917cdde9b7203caeb9c50aaca
|
|
| BLAKE2b-256 |
fbc97d6786d000780de87b363a6a92770ab11838c7d590529661da54bb479af4
|
Provenance
The following attestation bundles were made for bypass_vuotlink_sdk-0.1.7-py3-none-any.whl:
Publisher:
sdk-publish.yml on htilssu/bypass_vuotlink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bypass_vuotlink_sdk-0.1.7-py3-none-any.whl -
Subject digest:
586d5986f97b9c86886c1df77283b046578f7492cbab6b025807fffd67a300dd - Sigstore transparency entry: 2117002615
- Sigstore integration time:
-
Permalink:
htilssu/bypass_vuotlink@77ed28db1e7e3cd0c627a5a140e2c405dafdf858 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/htilssu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@77ed28db1e7e3cd0c627a5a140e2c405dafdf858 -
Trigger Event:
push
-
Statement type: