Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Use scratch-verify instead.

scratch-verify

Verify the ownership of a Scratch account.

PyPI Badge

Install

pip install scratch-verify

Usage

from scratch_verify import create_code, verify_code

# The user should go to https://scratch.mit.edu/projects/440710593 and provide `code`
code = create_code()

# Verify if the user provided it
is_verified = verify_code(username, code)

API

scratch_verify.create_code()

Generate a verification code for the user to provide at https://scratch.mit.edu/projects/440710593. This is just a convenience method - you can use any numerical code. Returns a 6-digit number.

from scratch_verify import create_code

print(create_code())
#=> "435543"

scratch_verify.verify_code(username, code, completion_timeout?)

Verify whether the user is authenticated.

username

Type: string

The username to authenticate.

code

Type: string

The code to check for.

completion_timeout

Type: number
Default: Infinity

The maximum amount of seconds that can pass since the user provided the code before it is no longer accepted.

from scratch_verify import verify_code

# If the user has authenticated
print(verify_code("RichieNB", "435543"))
#=> True

Metadata

Release files for scratch-verify-python 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scratch-verify-python 1.0.0
File Size Uploaded Provenance Actions
scratch-verify-python-1.0.0.tar.gz 2.2 kB Without provenance Details for scratch-verify-python-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scratch-verify-python 1.0.0
File Interpreter ABI Platform Actions
scratch_verify_python-1.0.0-py3-none-any.whl Python 3 none any Details for scratch_verify_python-1.0.0-py3-none-any.whl

Total release size: 5.8 kB

Release files / scratch-verify-python-1.0.0.tar.gz

Download URL scratch-verify-python-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
871ad155441bb65ef987d16a0c1695814f60c882a35dec9ec681e4e503dbc6a0
BLAKE2b-256 checksum
How to use checksums
8ad2bfcccc34e0c32ff5a1984b84955f75a5595510aa24daff741c4f9db61402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.4

Release files / scratch_verify_python-1.0.0-py3-none-any.whl

Download URL scratch_verify_python-1.0.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a937d5ce3b62ff579a39f6ebb54bc0e88fbf02a00c641af3475bec434896b6e5
BLAKE2b-256 checksum
How to use checksums
0ddb13dfecef0b9e76842ddce8ce40095317c61e4079c734d18af0b5d39429b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.4

Security for scratch-verify-python 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page