- clone this repo: https://github.com/periscope-ps/UNISrt
pip install virtualenv
or pip3 if you have itvirtualenv -p /your/python/version venv
wherevenv
can be any name for examplevirtualenv -p /usr/local/bin/python3 venv
source venv/bin/activate
python -V
to confirm that you're using the same python as specified in step 3.python setup.py build install test
should do a bunch of things
from unis import Runtime
rt = Runtime("http://unis.crest.iu.edu:8888")
rt.metadata # you can `dir(rt)` this to see more
# example: print metadata
for md in rt.metadata:
print(md.name) # rt has "reference-like" behavior, so be careful...
# md.name = random() # ...because it's easy to clobber someone else's work (don't do this!)
# example: print each port within each node
for n in rt.nodes:
print(n.name)
for p in n.ports:
print("\t",p.name)
print("\n")