Skip to main content

Python SDK for Solvium

Project description

Solvium Python SDK

A Python library for getting rid of various types of tasks using the Solvium API.

Features

  • Async/Sync Support: Choose between asynchronous and synchronous methods
  • Multiple Captcha Types: Support for Turnstile, reCAPTCHA v3, Cloudflare, Vercel, and more...
  • Proxy Support: Built-in proxy support for API calls
  • Comprehensive Logging: Detailed logging with loguru
  • Type Safety: Full type hints for better development experience
  • Timeout Control: Configurable timeout settings
  • Error Handling: Robust error handling with meaningful error messages

Installation

pip install solvium

Quick Start

Basic Usage (Synchronous)

from solvium import Solvium

# Initialize the client and paste your API key from https://t.me/solvium_crypto_bot
client = Solvium(api_key="your_api_key_here")

# Solve a Turnstile captcha
solution = client.turnstile_sync(
    sitekey="0x4AAAAAAAGm-M_XhkhrEEFd",
    pageurl="https://example.com"
)

if solution:
    print(f"Captcha solved: {solution}")
else:
    print("Failed to solve captcha")

Asynchronous Usage

import asyncio
from solvium import Solvium

async def solve_captcha():
    # Initialize the client and paste your API key from https://t.me/solvium_crypto_bot
    client = Solvium(api_key="your_api_key_here")

    # Solve a Turnstile captcha
    solution = await client.turnstile(
        sitekey="0x4AAAAAAAGm-M_XhkhrEEFd",
        pageurl="https://example.com"
    )

    if solution:
        print(f"Captcha solved: {solution}")
    else:
        print("Failed to solve captcha")

# Run the async function
asyncio.run(solve_captcha())

Configuration

Initialization Parameters

client = Solvium(
    api_key="your_api_key_here",           # Required: Your Solvium API key
    api_proxy="http://user:password@proxy:port",       # Optional: Proxy for API calls
    api_base_url="https://captcha.solvium.io/api/v1",  # Optional: Custom API URL
    timeout=120,                           # Optional: Timeout in seconds (default: 120)
    verbose=True                           # Optional: Enable detailed logging (default: False)
)

API Methods

For more details on available methods, refer to the Solvium Documentation.

Requirements

  • Python 3.8+
  • httpx
  • loguru

Getting Your API Key

  1. Open Solvium | Cracker
  2. Press the Start button
  3. Copy your API key
  4. Use it in your Solvium client initialization

License

This project is licensed under the Apache License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to 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

solvium-1.0.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

solvium-1.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file solvium-1.0.0.tar.gz.

File metadata

  • Download URL: solvium-1.0.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for solvium-1.0.0.tar.gz
Algorithm Hash digest
SHA256 039deed47dac81e70bbd72245a50c8ae3ea532e10d50682f68a97ad64f17d3e8
MD5 535b89b05ecf7ee61d70a4cf56a4ee47
BLAKE2b-256 fe597a70e17358e1939d413adf1e6fd2658787735b4e5d22551248ec30825444

See more details on using hashes here.

File details

Details for the file solvium-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: solvium-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for solvium-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37fbad1f3c39f4346155a545cde72c0b4698aa41b4cdf1f0a4cf369bb36e2e67
MD5 fde35f111a2d582467d12c8210ec9773
BLAKE2b-256 f00db394c905ad508460e9a5d60832ff1fb38d8363830532678075026a53416a

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