Use a part of your program remotely without making an api (in beta)
Project description
NoApi (in beta)
For when you want to have part of your program be executed on a different machine, and it would seem dumb to make a whole-ass API for literally every internal action.
With NoApi you can simply use objects and variables that exist on a remote machine as if they were working locally.
See what I mean
On one device:
import noapi
noapi.Node(1234, namespace=__import__(__file__))
some_object = SomeClass()
On another:
import noapi
noapi.Node(port=1234, namespace=__import__(__file__))
backend = noapi.Remote(1234, 'whatever ip').control_portal
print(backend.some_object.foo)
backend.some_object.bar.some_method('args', 'work', 'too')
So you can use your remotely running backend just the same as if it was an imported package (here called 'backend')
Don't use this yet tho
This library is still in active development and not polished, documented, or secure in the slightest. I'm testing how well it works by using it in another project I'm working on, and it's public in this phase only so that It's on PyPi and can easily be used with the other project.
So, use at your own risk!
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.