Skip to main content

PerfectMoney API

Perfect Money is a financial service allowing the users to make instant payments. This package is inspired by official API documentations and contains all functions for interacting with PerfectMoney's API as mentioned in documentations.

Installation

Use the package manager pip to install package:

# Latest version
pip install perfectmoney

# Latest changes 
pip install git+https://github.com/quitegreensky/perfectmoney.git

Usage Examples

Here are some examples:

from perfectmoney import PerfectMoney
p= PerfectMoney('login_id', 'password') 
#============
# get balance
#============
balance= p.balance()
if not balance:
    print(p.error)
else:
    print(balance)
#returns a dictionary of addresses
#{
#    'USD': [{'U12345': '100.00'}], 
#    'EUR': [{'E12345': '50.00'}], 
#    'GOLD': [{'G12345': '35.00'}, {'G123456785': '0.00'}], 
#    'BTC': [{'B123456785': '0.00'}]
#}

#============
# send money
#============
send= p.spend(payer_account='U123456', Payee_Account='U654321', amount=100)
if not send:
    print(p.error)
else:
    print(send)
# returns 
#{
#    'Payee_Account_Name': 'someaccount', 
#    'Payee_Account': 'U654321', 
#    'Payer_Account': 'U123456', 
#    'PAYMENT_AMOUNT': '1.4', 
#    'PAYMENT_BATCH_NUM': '1234567', 
#    'PAYMENT_ID': ''
#}

#============
# rates
#============
rate = p.rates(currency='EUR')
if not rate :
    print(p.error)
else :
    print(rate)
# returns
#{
#    'time': '8/12/20 4:23:34 AM', 
#    'USD': ' 1.17 ', 
#    'GOLD': ' 0.0006227 ', 
#    'BTC': ' 0.0001045 '
#}

Contributing

License

MIT

Metadata

Release files for perfectmoney 2.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for perfectmoney 2.1.4
File Size Uploaded Provenance Actions
perfectmoney-2.1.4.tar.gz 8.6 kB Without provenance Details for perfectmoney-2.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for perfectmoney 2.1.4
File Interpreter ABI Platform Actions
perfectmoney-2.1.4-py3-none-any.whl Python 3 none any Details for perfectmoney-2.1.4-py3-none-any.whl

Total release size: 18.4 kB

Release files / perfectmoney-2.1.4.tar.gz

Download URL perfectmoney-2.1.4.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e8a94677e1c19ac6feede926d286ba35918efd6a37d0e5379ab819b6b320b8c3
BLAKE2b-256 checksum
How to use checksums
cf4af32b98bad3d8a068b8c8e2132a863907a7845a17c7904bf4c57a3660ba31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Release files / perfectmoney-2.1.4-py3-none-any.whl

Download URL perfectmoney-2.1.4-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b40986789f75a76948ab6d03274bc3efbee9cdea7626d84115c0a604027b385f
BLAKE2b-256 checksum
How to use checksums
7b102ee9b09431d6b42f709e38f892798bb8e67c0845beeb0aae9151c60c4ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Security for perfectmoney 2.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page