Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scrathon-payments

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrathon-payments

API Wrapper for ScrathonPayments

  • 0.2.8
  • PyPI
  • Socket score

Maintainers
1

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.

ParameterTypeDescription
UserstrRequired. User to receive funds from purchases
Clientscratchattach.CloudRequestsRequired. Scratchattach Client

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc