API Wrapper for ScrathonPayments
Project description
Scrathon
Scrathon is a Python package designed to interact with the Scrathon platform to allow for purchases in your projects.
Installation
You can install Scrathon via pip: pip install scrathon-payments
Usage with Scratchattach
To use Scrathon, you need to instantiate the Scrathon
class with a valid username and scratchattach cloud requests client. These will be used to authenticate and perform transactions on the Scrathon platform.
from os import system
system("pip install scratchattach --upgrade")
system("pip install scrathon-payments --upgrade")
import scratchattach as scratch3
from ScrathonPayments import Scrathon
session = scratch3.login("username of any account (can be an alt with new scratcher)", "password of the account")
conn = session.connect_cloud("YOUR PROJECT ID")
client = scratch3.CloudRequests(conn)
ScrathonPayments = Scrathon("username of account to receive coins", client)
client.run()
#Guess what? That's it!
Check out the example project here: https://scratch.mit.edu/projects/996449477/
Methods
Scrathon()
Initiates a project connection to Scrathon services.
Parameter | Type | Description |
---|---|---|
User |
str |
Required. User to receive funds from purchases |
Client |
scratchattach.CloudRequests |
Required. Scratchattach Client |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scrathon_payments-0.2.8.tar.gz
.
File metadata
- Download URL: scrathon_payments-0.2.8.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e427b1f47f475ef3d758ade681d011f287c97b40c67579086fe80823973308 |
|
MD5 | cd4bb862c83bcc4b88cd267ccc1450ae |
|
BLAKE2b-256 | ba68078cbf72ed5966b1e975adf142ffb7b039bd1a1edbf50737f89154913fa6 |
File details
Details for the file scrathon_payments-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: scrathon_payments-0.2.8-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39fba6b3a85826425c47a798291bc88c5bf30eb8c4f786e4cce3a4b91094f22b |
|
MD5 | 21900b1a491af240ff33fb491b72ed98 |
|
BLAKE2b-256 | f56ccad5cdb7fd5376d6d95fb34c0c78146c12cf4e1f20fb8dccf3447d00aeb8 |