No project description provided
Project description
Bravo! You have received a Medical Diploma from
the Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.
You are now officially certified to include this mixer in your practice.
ventures
summary
This is for flipping processes on and off.
As well it is for checking if processes are on or off.
obtain
pip install ventures
tutorial
import os
import pathlib
from os.path import dirname, join, normpath
import sys
import time
this_folder = pathlib.Path (__file__).parent.resolve ()
the_map = str (
normpath (join (
os.getcwd (),
"ventures_map.JSON"
))
)
def turn_on_sanique ():
return;
def turn_off_sanique ():
return;
def check_sanique_is_on ():
return;
from ventures import ventures_map
ventures = ventures_map ({
"map": the_map,
"ventures": [
{
"name": "adventure_1",
"turn on": {
"adventure": [
"python3",
"-m",
"http.server",
"8080"
],
"Popen": {},
"kind": "process_identity"
}
},
{
"name": "adventure_1_sanique",
"kind": "task",
"turn on": {
"adventure": turn_on_sanique,
},
"turn off": turn_off_sanique,
"is on": check_sanique_is_on
}
]
})
ventures ["turn on"] ()
time.sleep (10)
ventures ["is on"] ()
time.sleep (5)
ventures ["turn off"] ()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ventures-1.1.4.tar.gz
(49.9 kB
view hashes)