Skip to main content

A Python client for managing Lightning Proxies API

Project description

LightningProxiesAPI

PyPI version

LightningProxiesAPI is a Python package for interacting with Lightning Proxies' API, providing access to residential, datacenter, IPv6, mobile, and ISP proxy services. This library simplifies the integration of proxy management, offering functionalities such as adding/removing proxies, retrieving plan details, managing whitelists, and more.

Features

  • Manage proxies: Access residential, datacenter, mobile, ISP, and IPv6 proxies.
  • Plan management: View and manage proxy plans.
  • Whitelisting: Easily manage IP whitelists for your proxies.
  • Bandwidth: Monitor and adjust proxy bandwidth usage.
  • Flexible API: Interact with a wide range of API endpoints for proxy management.

Installation

You can install the lightning-proxies package directly from PyPI using pip:

pip install lightning-proxies

Example usage

from lightning_proxies import LightningProxies

# Initialize the client with your API key
client = LightningProxies(api_key="your_api_key")

# Get residential proxy information using plan ID
plan_id = "648248c31fac1bd9475b61ba"
response = client.get_residential_proxy_info(plan_id)

print(response)

Example: Add an IP to the Whitelist

from lightning_proxies import LightningProxies

# Initialize the client with your API key
client = LightningProxies(api_key="your_api_key")

# Add an IP address to the whitelist for IPv6 proxies
plan_id = "648248c31fac1bd9475b61ba"
ip_address = "1.1.1.1"
response = client.add_ip_to_whitelist(plan_id, ip_address)

print(response)

Documentation

-- soon --

Contributing

We welcome contributions! Please fork the repository, create a branch, and submit a pull request. Ensure that all tests pass and that your code adheres to the project's coding standards.

Steps for Contributing:

  1. Fork the repository.
  2. Create a new feature branch.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Open a pull request to the main branch.

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

lightning_proxies-0.1.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

lightning_proxies-0.1.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file lightning_proxies-0.1.1.tar.gz.

File metadata

  • Download URL: lightning_proxies-0.1.1.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for lightning_proxies-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e0e3db13165bf65bd04d55e7602f2cbdc19c8dad7e16dc48c18e73bc6278f24
MD5 3c55d6500b083039eb96c72faaae5b6b
BLAKE2b-256 ff5f16b1365f7e7fbbdba63eb94dc41e0f574148fc6de8449cb48c679369c754

See more details on using hashes here.

File details

Details for the file lightning_proxies-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_proxies-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed72d6528db07929309c86d529ccb6f4983236f0621d1159d5eddfcf63daaccb
MD5 29c4bffa60ff91655427394e3c7ebefb
BLAKE2b-256 255ea01152addb82ac83af5e6e7bd04a92b837f7d41ba0e5a109bdecf9e8d779

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