semvec/pypi-packages huggingface dataset:
mobileproxy 1.0.5
Unofficial python library for working with mobileproxy.space
License: MIT License
Requires Python: >=3.10.0

# mobileproxy - Unofficial python library for working with mobileproxy.space

Site: https://mobileproxy.space

Docs: https://mobileproxy.space/user.html?api

> pip install mobileproxy

Example (sync):
```python
from mobileproxy import MobileProxy

api_key = "YOUR_API_KEY"
mobileproxy = MobileProxy(api_key)

print(mobileproxy.get_balance())
```

Example (async):
```python
import asyncio

from mobileproxy._async import MobileProxy as AsyncMobileProxy


async def main() -> None:
    api_key = "YOUR_API_KEY"
    mobileproxy = AsyncMobileProxy(api_key)
    print(await mobileproxy.get_balance())


if __name__ == "__main__":
    asyncio.run(main())
```

Methods (sync):
```python
# No Authorization needed (User-Agent is optional)
mobileproxy.change_ip(proxy_key, format="json")

# Common methods
mobileproxy.get_balance()
mobileproxy.get_ipstat()
mobileproxy.get_geo_operator_list(
    equipments_back_list=None,
    operators_back_list=None,
    show_count_null=None,
    proxy_id=None,
)
mobileproxy.get_operators_list(geoid=None)
mobileproxy.get_id_country(only_avaliable=None, accept_language=None)
mobileproxy.get_id_city(accept_language=None)
mobileproxy.get_geo_list(proxy_id=None, geoid=None)
mobileproxy.get_price(id_country, currency=None, accept_language=None)
mobileproxy.see_the_url_from_different_IPs(url, id_country=None)
mobileproxy.get_task_result(tasks_id=None)
mobileproxy.eid_available(eid)
mobileproxy.get_history(start=0, length=50)

# Examples
mobileproxy.get_ip(proxy_id=1, check_spam=True)
mobileproxy.see_the_url_from_different_IPs(
    url="https://mobileproxy.space",
    id_country="1,2,3",
)
task_result = mobileproxy.get_task_result(tasks_id=123)

# Proxy methods
mobileproxy.buy_proxy(
    period=30,
    num=1,
    proxy_id=None,
    geoid=None,
    operator=None,
    coupons_code=None,
    id_country=None,
    id_city=None,
    amount_only=False,
    auto_renewal=1,
)
mobileproxy.edit_proxy(
    proxy_id,
    proxy_reboot_time=None,
    proxy_ipauth=None,
    proxy_auto_renewal=None,
    proxy_auto_change_equipment=None,
    proxy_comment=None,
)
mobileproxy.get_ip(proxy_id, check_spam=None)
mobileproxy.get_black_list(proxy_id)
mobileproxy.add_operator_to_black_list(proxy_id, operator_id)
mobileproxy.remove_operator_from_black_list(proxy_id, operator_id)
mobileproxy.remove_black_list(proxy_id, black_list_id=None, eid=None)
mobileproxy.get_my_proxy(proxy_id)
mobileproxy.change_proxy_login_password(proxy_id, proxy_login, proxy_pass)
mobileproxy.reboot_proxy(proxy_id)
mobileproxy.change_equipment(
    proxy_id,
    operator=None,
    geoid=None,
    add_to_black_list=None,
    id_country=None,
    id_city=None,
    eid=None,
    check_after_change=None,
    check_spam=None,
)
```

Tests:
```bash
pytest -s
```

# Main part of code was generated with [DuckDuckGo AI](https://duckduckgo.com/?q=DuckDuckGo+AI+Chat&ia=chat&duckai=1) & [Cursor](https://cursor.com/)