Metadata-Version: 2.4
Name: mobileproxy
Version: 1.0.5
Summary: Unofficial python library for working with mobileproxy.space
Home-page: https://github.com/makarworld/mobileproxy.git
Download-URL: https://github.com/makarworld/mobileproxy/archive/refs/tags/v1.0.5.zip
Author: abuztrade
Author-email: abuztrade.work@gmail.com
License: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Communications :: Email
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Customer Service
Classifier: Intended Audience :: Financial and Insurance Industry
Requires-Python: >=3.10.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: curl_cffi
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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/)
