Library for sending requests to the Borgo app.
Project description
Borgo
Borgo is an API + App for easily interfacing with your python scripts.
If your script needs human input, create a borgo request, and it will be sent to your mobile app. Your script will wait until you act on the request, and then continue with the results.
For example:
from borgo import *
borgo_key = '''
eyJhbGciOiJSUzI1NiIsIOTYwYjA1Yzk3ZmE0MDljNDdhNDQ0ZTciLCZXRva2VuLmdvb2dsZSyZ28...
'''
with BorgoClient(borgo_key) as borgo_client:
request = BorgoRequest('Should I tweet "hello world"?', 'Tweet', "Don't tweet")
response = borgo_client.wait_for(request)
if (response.is_accepted):
# Send "hello world" to Twitter API.
Getting a Key
To get a key to pass into the BorgoClient(...)
constructor, sign in to borgo.app, click on the "key" icon, hit the button to copy the key to your clipboard and then paste it as a string into your script.
Community
For questions and discussion about Borgo, visit reddit.com/r/borgo
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
borgo-0.0.6.tar.gz
(4.1 kB
view hashes)
Built Distribution
borgo-0.0.6-py3-none-any.whl
(4.1 kB
view hashes)