Skip to main content

Scratch_Syntax

This is a custom Python library designed make python syntax more like scratch.

Installation

pip install scratch_syntax

you can do anything with this library, mod it, break it, anything, but don't sue me

Update 0.2.0 notes

I removed the forever and repeat functions because they didnt work and added the stop_all() function. You can use for _ in range(): for repeat and while True: for forever

Updating

pip install --upgrade scratch_syntax

Update 0.3.0 notes

  • I added the list functions

Update 0.4.0 notes

Added new say_for_seconds() function

  • I also added Github Respitory

Update 0.5.0

  • Added new wait_until() function

Update 0.6.0. ReRun's UPDATE!!!

  • The return of classic repeats... in a different way!!!
  • Added new repeat_until() function!!!
  • Now needs the lambda function. etc:
repeat(lambda: say("hello!"), 5)
forever(lambda: say("hiya!"))
repeat_until(lambda: say("do you like this?"), lambda: condition())

Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is

Update 0.7.0 notes. Keyboard update!!!

  • Added keyboard function (when_key_pressed())!!!

Update 0.7.2 note:

  • I changed the wait_until function a bit so now it goes wait_until(condition) instead of wait_until(action, condition)

All Functions

say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds(), wait_until(), repeat(), forever(), repeat_until(), when_key_pressed()

Metadata

Release files for scratch_syntax 0.7.2

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_syntax 0.7.2
File Size Uploaded Provenance Actions
scratch_syntax-0.7.2.tar.gz 3.5 kB Without provenance Details for scratch_syntax-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scratch_syntax 0.7.2
File Interpreter ABI Platform Actions
scratch_syntax-0.7.2-py3-none-any.whl Python 3 none any Details for scratch_syntax-0.7.2-py3-none-any.whl

Total release size: 7.5 kB

Release files / scratch_syntax-0.7.2.tar.gz

Download URL scratch_syntax-0.7.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5094313a54b0e4d483c8781d0e6c15801b5fb1b9722fe9fb31cc35dab5344783
BLAKE2b-256 checksum
How to use checksums
4c43526d1d1f15e4a2cde810a473ce75d45c484afb5eca87d88908cbf54c148f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / scratch_syntax-0.7.2-py3-none-any.whl

Download URL scratch_syntax-0.7.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d48d3389d366ead1d08ee63b148970e530971b58825fdad5cd8d0d54213bb365
BLAKE2b-256 checksum
How to use checksums
9f834fe492f214b96cc1d35cb98caa8abfe88b0315deedc3f4315a059e8a9a08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for scratch_syntax 0.7.2

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.

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