IPRoyal Pawns API
UNOFFICIAL Python bindings for IPRoyal Pawns Dashboard API
Installation
pip install pyIPRoyalPawns
Usage
Login with username and password:
from pyIPRoyalPawns import IPRoyalPawns
# Your IPRoyalPawns (IPR) login username/email and password
USERNAME = ""
PASSWORD = ""
# Initialise the IPRoyalPawns object
user = IPRoyalPawns()
# Optionally, when instantiating you can pass in the following attributes to the IPRoyalPawns class:
| Attribute | Description | Default Value |
|---|---|---|
| API_BASE_URL | The API BASE URL | https://api.pawns.app |
| API_PREFIX | The API PREFIX | /api |
| API_VERSION | The API VERSION | /v1 |
# Call the complete_login_flow method to login and set the JWT in self.jwt
user.complete_login_flow(USERNAME, PASSWORD)
Add proxies for future requests:
from pyIPRoyalPawns import IPRoyalPawns
# With authentication & protocol
user.set_proxy("ip:port:username:password", "socks5")
# Without authentication & protocol
user.set_proxy("ip:port", "socks5")
# Alternative way
user.set_socks5_proxy("ip:port")
user.set_socks5_proxy("ip:port:username:password")
user.set_https_proxy("ip:port")
user.set_https_proxy("ip:port:username:password")
Functions
-
Get user balance
# Get balance and traffic sold as shown on the dashboard. user.balance()
-
Remove a proxy
# Removes a proxy for future requests. user.remove_proxy()
-
Get all the devices
# Get all the devices user.devices()
-
Payout history
# Get payout history user.payout_history()
-
Is Logged In
# Check if you're logged in user.is_logged_in()
-
Logout
# Logged out user.logout()
-
Set JWT Token
# Set JWT Token if you have one (otherwise use the login()) user.set_jwt_token(TOKEN)
Exceptions
- The following exceptions are defined.
Exception Reason NotLoggedInErrorRaised when you try to access protected routes (dashboard, payout history, etc). AlreadyLoggedInErrorRaised when you try to login when you're already logged in.
Liked my work?
Consider donating:
-
BTC: bc1q5y8z0cpgvafedvmwcfjn682skpr67e2du00acy
-
LTC: LcquWHprnVRHY86u5rNDW6U8VD3WVbZV4h
Metadata
Release files for pyIPRoyalPawns 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyIPRoyalPawns-1.1.5.tar.gz | 5.3 kB | Without provenance | Details for pyIPRoyalPawns-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyIPRoyalPawns-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for pyIPRoyalPawns-1.1.5-py3-none-any.whl |
Total release size: 11.3 kB
Release files / pyIPRoyalPawns-1.1.5.tar.gz
| Download URL | pyIPRoyalPawns-1.1.5.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79c14e0f1f7d2ef461975170427b0d51d38cf4469bd615ca86e9e548f550d9f1
|
|
BLAKE2b-256 checksum How to use checksums |
46e1c6aeb9f8c8d21e97c097885cb2221bbe22e417e22d21854c2bd95304c1f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9
|
Release files / pyIPRoyalPawns-1.1.5-py3-none-any.whl
| Download URL | pyIPRoyalPawns-1.1.5-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a76d1a984b6229004b01a1139b74c91ec78b7f56e24607fd42835f34796338cb
|
|
BLAKE2b-256 checksum How to use checksums |
874bacbe5548a4b2d7cd661df6c52b2527b5f2b0eb1812eabf08becc6ac52ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9
|
Security for pyIPRoyalPawns 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.