A Python client for managing Lightning Proxies API
Project description
LightningProxiesAPI
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:
- Fork the repository.
- Create a new feature branch.
- Make your changes and commit them.
- Push your changes to your fork.
- Open a pull request to the main branch.
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e0e3db13165bf65bd04d55e7602f2cbdc19c8dad7e16dc48c18e73bc6278f24
|
|
| MD5 |
3c55d6500b083039eb96c72faaae5b6b
|
|
| BLAKE2b-256 |
ff5f16b1365f7e7fbbdba63eb94dc41e0f574148fc6de8449cb48c679369c754
|
File details
Details for the file lightning_proxies-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lightning_proxies-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed72d6528db07929309c86d529ccb6f4983236f0621d1159d5eddfcf63daaccb
|
|
| MD5 |
29c4bffa60ff91655427394e3c7ebefb
|
|
| BLAKE2b-256 |
255ea01152addb82ac83af5e6e7bd04a92b837f7d41ba0e5a109bdecf9e8d779
|