Skip to main content

Contributors Forks Stargazers Issues MIT License


Logo

PayPI Python Client

Sell your API, today.
Explore the docs »

Homepage · Report Bug · Request Feature

Table of Contents

About The Project

PayPI Screenshot

PayPI makes API creators' lives easier by handling API keys, user accounts, payments and more. API users have one account to access all APIs using PayPI.

We worry about API authentication and payments so you can focus on making awesome APIs! This library enables you to interact with PayPI from a Python project.

Getting Started

See full documentation here

Install paypi from PyPI:

pip install paypi
# or
python -m pip install paypi

Then import it, create an instance with your private key and use it to authenticate and make charges against users:

from paypi import PayPI

paypi = PayPI("<Your API Secret>")


@app.route("/")
def hello():
    user = paypi.authenticate("<Users Subscription Secret>")

    # do some work...

    user.make_charge("<Charge ID>")
    # charge is now made...

In an asynchronous environment you can also use the asynchronous API calls:

paypi = PayPI("<Your API Secret>")
user = await paypi.authenticate_async("Users Subscription Secret")
await user.make_charge_async("<Charge ID>")

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

All contributions are welcome. Please follow this workflow:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

All rights reserved.

Contact

Alex - alex@paypi.dev
Tom - tom@paypi.dev

Project Link: https://github.com/paypi/paypi-python

Acknowledgements

Release files for paypi 1.0.8

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

Source distribution (sdist)

Source distribution for paypi 1.0.8
File Size Uploaded
paypi-1.0.8.tar.gz 4.9 kB Details

Built distribution (wheel)

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

Total release size: 10.6 kB

Release files / paypi-1.0.8.tar.gz

Download URL paypi-1.0.8.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e9aa01832ade2b70a6a6943f1bc787015ee63eebeb8b61ec8ab51b30b87e91ba
BLAKE2b-256 checksum
How to use checksums
155621140e8b5fa80695a416954e295aa03857a85ef1d34a4de4aa8b2e161efe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.7.6 Darwin/20.6.0

Release files / paypi-1.0.8-py3-none-any.whl

Download URL paypi-1.0.8-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
348ebe26f3b59601c786d5d1c157c7992019121baa80bb75c5b66a1cdf27f3cc
BLAKE2b-256 checksum
How to use checksums
358d6b497845f7297f865f41dea42fc654423ae66b71ff0fb2e01e4d3138ae16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.7.6 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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