pyOxaPayAPI
Python implementation of OxaPay pubilc API
This library is based on oxapay_api implementation. Was forked here due to slow PR acceptance.
This library is ACTUAL and is supported. If you need some not implemented methods - just open an issue.
Installation
Installation using pip (a Python package manager):
$ pip install pyOxaPayAPI
Usage
Everything is as simple as the API itself.
- Create pyOxaPayAPI instance
- Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
- Most methods return result as correspondent class, so you can access data as fields
from pyOxaPayAPI import pyOxaPayAPI
client = pyOxaPayAPI(
"xxxxxxx", # Merchand API key
general_api_key="xxxxxxx", # General API key (for account methods like "balance")
payout_api_key="xxxxxxx") # Payout API key (for payout methods)
balances = client.account_balance(currency=currency.name)
for currency, balance in balances["data"].items():
print("Merchant balance: {} {}".format(balance, currency))
You can also check tests.py.
Exceptions
Exceptions are rised using pyOxaPayAPIException class.
Metadata
Release files for pyOxaPayAPI 0.2.1
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 | |
|---|---|---|---|---|
| pyoxapayapi-0.2.1.tar.gz | 9.7 kB | Without provenance | Details |
Release files / pyoxapayapi-0.2.1.tar.gz
| Download URL | pyoxapayapi-0.2.1.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9adc08579b0fe6bebf043648b2104916f57defc949cc8b8bcc407d50eb92f2d
|
|
BLAKE2b-256 checksum How to use checksums |
a2b88ae4ab8c43958f212c94a361d94cecf90755573ed1acda0d4e12ed638ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for pyOxaPayAPI 0.2.1
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.