eplaut / python-butler Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
add_to_ping_hook(assertion) # e.g. assertion=some_thread.is_alive
An existing use case with current (or future) Butler code:
1.myButlerClient.post_update_func(json.dumps(myObject))
2. myObject = json.loads(flask.request.data)
@ myButlerServer.post_update_func
If butler was meant to spare usages of flask, json, etc. perhaps it would be wise to integrate this use case as well.
Hey,
Given the following function (path) definition:
def get_myPath(self):
pass
I get a 404 when trying to access '/myPath'
def post_api(self, module, *args):
print args # will always be ()
The idea is that if I call site/api/machine/my_machine/delete
then module
is 'machine'
, and args
should be ('my_machine', 'delete')
.
On another note, perhaps *kwargs
could be integrated as well, using params
.
(e.g. for site/api/action?key1=val1&key2=val2
then kwargs
will be {'key1': 'val1', 'key2': 'val2'}
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.