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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0b4fdf4bb6e30c809e21c8a735426fc3c7dd0c3a04acdea31305cd9c150587 |
|
MD5 | 221de1333db1060a826b85985225ec05 |
|
BLAKE2b-256 | 29a2a736c3e5e0c8896d6095e001146c351d7ce8e88631184bb3e2f9b0f7515b |