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

Uploaded Source

Built Distribution

bugout-0.2.17-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bugout-0.2.17.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bugout-0.2.17.tar.gz
Algorithm Hash digest
SHA256 834a381f033502603f9a56a9d297eafc0f3f8de3b8c1e9e96d24c44d4efab7ee
MD5 9e7d97b28070fbe61927d31a1e55a464
BLAKE2b-256 19a8702ca18521b391e1f7fa4832a74c839dec7d3a03c7800d11a1458facdcee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bugout-0.2.17-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bugout-0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c79c9916628cdba45a41540562560f999638872327b8db2a23296007c8b0e8cb
MD5 cd8834139c323a7f98380533f934d3de
BLAKE2b-256 c9749f60701429b6fa98ff06eadf81af7338bfba9e474db89899f5b8920aed66

See more details on using hashes here.

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