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.1.tar.gz (11.9 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.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solvium-1.0.1.tar.gz
  • Upload date:
  • Size: 11.9 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.1.tar.gz
Algorithm Hash digest
SHA256 ef7061677564193060b3a6f922e1c30dd62c853ed9492526521d686014dacdb4
MD5 db2b710728144a699dcf7d3a2081cf26
BLAKE2b-256 d115457a8f54de037389a021f2896d50aa11aa8f280ca832eeb0c5f28eec9ecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solvium-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 798c54c10efd0c5dc53b523953b22cb7b8a11907bef670d7381612dec879d8c4
MD5 f9344b990f23e692735cb007e6730f21
BLAKE2b-256 4ab9eaffe463349be13ab558928961bc46ac794cc13c34aa0dd08889d0ff777e

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