Python client library for Bugout API
Project description
bugout-python
Python client library for Bugout API
Setup
- Add variables from
sample.env
in you development environment
export BUGOUT_TIMEOUT_SECONDS=5
from bugout.app import Bugout
def main():
bugout = Bugout(brood_api_url="http://localhost:9001", spire_api_url="http://localhost:9002")
user = bugout.get_user(<user token ID>)
print(f"User name is {user.username}")
group = bugout.get_group(<user token ID>, <group ID>)
journal = bugout.get_journal(<user token ID>, <journal ID>)
entry = bugout.get_entry(<user token ID>, <journal ID>, <entry ID>)
search_res = bugout.search(<user token ID>, <journal ID>, query="your query", content=False)
if __name__ == "__main__":
main()
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.
Source Distribution
bugout-0.1.7.tar.gz
(9.1 kB
view hashes)
Built Distribution
bugout-0.1.7-py3-none-any.whl
(12.3 kB
view hashes)