Skip to main content

Simple Python Whop API Wrapper

Project description

A simple python API wrapper of Whop's API, documentation can be found at: https://dev.whop.com/reference/home

## Installation

To install the package, use the following command:

```shell
pip install whop-api-wrapper
```

## Usage
Initialize the Client class with your token, use any api call as a method of the client.

```shell
client = Client("input_token_here")

client.list_all_products()
client.retrieve_membership("membership_id_here")
client.create_promo_code(amount_off=25, base_currency="usd", code="25off", promo_type="flat_amount")
```

Feel free open any issues or report them to me on discord, `jacobfinn`.
License-File: LICENSE

Makes use of the Whop API easy in python.

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

whop-api-wrapper-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

whop_api_wrapper-1.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file whop-api-wrapper-1.0.1.tar.gz.

File metadata

  • Download URL: whop-api-wrapper-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for whop-api-wrapper-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1db29a831dbbb622aa11d2128db42258f17e59a065fa77b874ebcdd641997de8
MD5 d01d4e1fd2092a3ac52b8055fcc842a5
BLAKE2b-256 209f2c127b6333e7068a9a61fa1d5d49bfd683dacc54f78309182920f2a807d8

See more details on using hashes here.

File details

Details for the file whop_api_wrapper-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for whop_api_wrapper-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ddd54a2a0f3bdf785099ff5bac596545b7c1a25100c332d298bb3eda1b8e2b0
MD5 c0f8ac85e80f47b868b8bcfc4dba3a0f
BLAKE2b-256 c3d78a2b327186cc7b9bb286f6bbabdea93810fd99cd4321470b77d3d98cd761

See more details on using hashes here.

Supported by

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