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
  • Example of usage, just fill token, group_id, journal_id and entry_id with proper values from your account. Or remove unnecessary variables and API calls.
from bugout.app import Bugout


def main():
    bugout = Bugout()

    token = ""
    group_id = ""
    journal_id = ""
    entry_id = ""

    user = bugout.get_user(token=token)
    print(f"User name is {user.username}")

    group = bugout.get_group(token=token, group_id=group_id)

    journal = bugout.get_journal(token=token, journal_id=journal_id)
    entry = bugout.get_entry(token=token, journal_id=journal.id, entry_id=entry_id)

    search_res = bugout.search(
        token=token, journal_id=journal.id, query="your query", content=False
    )
    print(f"Search results: {search_res}")


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.2.9.tar.gz (17.6 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.2.9-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bugout-0.2.9.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for bugout-0.2.9.tar.gz
Algorithm Hash digest
SHA256 6f87b33aae218ca9c4f5242835376fe674cacd6bbc44cf2990a51dc1a247fdca
MD5 7245ad660dfa4416b743e1063811c97d
BLAKE2b-256 316698f11fdbfd1344bc3e864cca1cd3be5dfb84c8eb3b611fa56b1f05cc3edb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bugout-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for bugout-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2376f8386e8986001e8565e3753b07db9fd5fa4ab31843f8e341b831b3d5dc39
MD5 9005f7b7d3c605868d06b1ad918190eb
BLAKE2b-256 e307309d0126fe22197f42133f300b2e05736b854bd954228d8e45222aac9447

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