Skip to main content

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


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.4.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

bugout-0.1.4-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page