Skip to main content

Brodcast

what is this

Do you know the scrach brodcast block, its that but in python

documentation

function action example
@brodcast.on(name) Put this above the function you want to activate with brodcast replace the name variable with the name you want the variable to call said function
@brodcast.on("test") 
    def check(): 
        print("this works")

brodcast.cont("test") 
brodcast.cont(name) This command will activate all fuctions assigned to the name variable and continue withount waiting
import time

@brodcast.on("test") 
    def check(): 
        time.sleep(1)
        print("This is second")

brodcast.cont("test") 
print("This is first")
brodcast.wait(name) This command is like brodcast.con but will wait for all of the functions to finish before continueing
import time

@brodcast.on("test") 
def check(): 
    time.sleep(1)
    print("This is first")

brodcast.cont("test") 
print("This is second")
brodcast.debug() This command is used for
@brodcast.on("a")
def my_func():
    print("this function exists")

if "a" in brodcast.debug():
    print("you should see this")
    # this tag is on my_func

if "b" in brodcast.debug():
    print("and not this")
    # this tag is on nothing

brodcast also supports threding aplications

change = False

@brodcast.on("test")
def my_func():
    global change
    print("a")
    change = True
    while change:
        time.sleep(.1)
    print("c")

@brodcast.on("test")
def my_func2():
    global change
    while not change:
        time.sleep(.1)
    print("b")
    change = False
    

brodcast.wait("test")  
print()
print("done")
# outputs a, b, c, then done

Release files for ezbroadcast 0.0.1

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

Source distribution (sdist)

Source distribution for ezbroadcast 0.0.1
File Size Uploaded
ezbroadcast-0.0.1.tar.gz 14.5 kB Details

Built distribution (wheel)

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

Total release size: 29.4 kB

Release files / ezbroadcast-0.0.1.tar.gz

Download URL ezbroadcast-0.0.1.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da1ef17b874a1ed01d8e65e300311334f7d7cef01b38caa9abb471ea8f6822fa
BLAKE2b-256 checksum
How to use checksums
71d64c6bcc4f4bc194dc9337dc71897de83627f69f77a0a0c9241a0262100147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / ezbroadcast-0.0.1-py3-none-any.whl

Download URL ezbroadcast-0.0.1-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e424f85cf2ab06d25ec644214f8415e16681dd248d091195ece533390fb54a8
BLAKE2b-256 checksum
How to use checksums
2d8f3c6bcda56b0be69b17cd6ffc9c18be15f27ed3a641035e071c2d76347a3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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