Skip to main content

Python client library for Bugout API

Project description

bugout-python

Python client library for Bugout API

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.0.7.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bugout-0.0.7-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file bugout-0.0.7.tar.gz.

File metadata

  • Download URL: bugout-0.0.7.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for bugout-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e498bb0202b1fcbb6a4b7f91906931392b57c7aadfef418b6800ef81c594ba86
MD5 e4bb4ca797ac00494f1efb3224db3ae7
BLAKE2b-256 69e6d97ca26381bba888b5bff4141a492c6534f12a24d4358fb9837470bf47f4

See more details on using hashes here.

File details

Details for the file bugout-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: bugout-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for bugout-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3e65dbe4052968b54e398351d5dc20d4919e294bf156dca00af7386231cb446d
MD5 bf04f43bc3a41cb5ab20ca3e2657fbf3
BLAKE2b-256 9b38d2ffd0d3cac48a491ce560f9727cbd5e88fa55ecb491413fce69da0bafa9

See more details on using hashes here.

Supported by

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