Skip to main content

monetize

A python library to make some money

Install

pip install monetize

See example.py for how to use

Creating a subscription

1. Create a Stripe account
2. Configure your business to accept payments
3. Go to the Developers section
4. Click API Keys
5. Select "Create Secret Key"
6. Configure this key to your liking
7. Save this key to authenticate in your code later
8. Create a customer (you'll need to do this for each billable user)
9. Go to Product Catalog
10. Create a new product with the following settings
    1. Recurring
    2. Usage-based per-unit pricing model
    3. Pick your price
    4. Pick sum of usage values during period for usage (if desired)
    5. Billing period monthly (if desired)
    6. Select Create
11. Create a subscription
12. Assign a user
13. Assign the product from step 5
14. Go to the newly made subscription page
15. Copy the **Subscription Item ID** (note: this is not the Subscription ID)
16. Use this ID in your code to accrue to that account
17. Profit

Metadata

Release files for monetize 1.0.0

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

Source distribution (sdist)

Source distribution for monetize 1.0.0
File Size Uploaded
monetize-1.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / monetize-1.0.0.tar.gz

Download URL monetize-1.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8580774725ca381b6928c7f5bb6785d0e2bab2c7c49e79f36ee46a300fb9e84
BLAKE2b-256 checksum
How to use checksums
a94a6457ec0c1270122677d97ea7a51d1742125513e361b7cec3d9d642916ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / monetize-1.0.0-py3-none-any.whl

Download URL monetize-1.0.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c37793005fa5bd5b2d78cedfe1b41ade23484c0b625d8bb9bf7318125aa7fb1f
BLAKE2b-256 checksum
How to use checksums
3c863a6427b3745cb401a6e08e6764bc306a99b6bde8d0a9474eb91cdfdb9b81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

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