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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288a81704f496ea58f4f3ffbff56d8b539afac88c91b1f5c144833e66af4a2e7 |
|
MD5 | f65517b853e1ddaa7be9d030750d2949 |
|
BLAKE2b-256 | 9d9ba945c16cc751ec369773eb49c4a09cc07ed65f85262b601c4930e42cd85f |