Skip to content

pdxjohnny/sillystream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sillystream

sillystream sends anything passed to sillystream.server.write to all clients connected to the sillystream.server. It is especially useful for daemon processes.

Docker building and pushing using sillystream to see output of remote daemon blog post

sillystream-docker

Using sillystream in python, more in examples folder

import sys
import time
import sillystream

# Number to print to
GO_TO = 50

# Create sillystream server
output = sillystream.server()
# Start the server
output.start_thread()
# Set stdout and stderr to sillystream server
sys.stdout = output
sys.stderr = output

# Print numbers
for num in range(0, GO_TO):
    print(num)
    time.sleep(0.5)

Then in another shell to see the output

python -m sillystream client

About

stream to connected clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages