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
Close
Hashes for scrathon_payments-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e43f7cdd3423704df8fa0eb90f45b161ee7b5accae125e4b329180376fac57d |
|
MD5 | b608a0df11903ef458c50c841efffcac |
|
BLAKE2b-256 | 9234af42e68135b84006df595b5fe6e23ff8384205da64e737e2e6c6cffd4c1d |