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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file borgo-0.0.7.tar.gz.
File metadata
- Download URL: borgo-0.0.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aef45e83e67e430b98e0e3c0fb76a30821d93bb88b5624d70a585ac5583f908
|
|
| MD5 |
776a9aeb83c8ddb20bdd8ea32a47cfce
|
|
| BLAKE2b-256 |
4b1b5fce56fb9ac72deb2835329441d41efe6fd686808aac3988f0bfd43634f1
|
File details
Details for the file borgo-0.0.7-py3-none-any.whl.
File metadata
- Download URL: borgo-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d31f1da3e87f747ae89b0a5a4b9c1dc9c65c5fede92230da771e910a40e786a5
|
|
| MD5 |
de3a3d4f1072ae6e49195a88026caf0b
|
|
| BLAKE2b-256 |
0584c83b70a4eb04196a55020769328e2d6259cd73f0dfb3d19da9d1d0b33b2b
|