Official PayPI Partner Library
This project is not ready for public consumption yet.
PayPI Python Client
Sell your API, today.
Explore the docs »
Homepage · Report Bug · Request Feature
Table of Contents
- About the Project
- Getting Started
About The Project
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.
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("/") async def hello(): user = await paypi.authenticate("<Users Subscription Secret>") # do some work... await user.make_charge("<Charge ID>") # charge is now made...
In a synchronous environment you can also use the synchronous API calls. This cannot be done from an asyncio thread:
paypi = PayPI("<Your API Secret>") user = paypi.authenticate_sync("Users Subscription Secret") user.make_charge_sync("<Charge ID>")
See the open issues for a list of proposed features (and known issues).
All contributions are welcome. Please follow this workflow:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
All rights reserved.
Alex - email@example.com
Tom - firstname.lastname@example.org
Project Link: https://github.com/paypi/paypi-python
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.