Skip to main content

Official PayPI Partner Library

Project description

Contributors Forks Stargazers Issues MIT License


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>")

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>")


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


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


All rights reserved.


Alex -
Tom -

Project Link:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paypi-1.0.4.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

paypi-1.0.4-py3-none-any.whl (4.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page