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.3.tar.gz (12.9 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.3-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bugout-0.2.3.tar.gz
Algorithm Hash digest
SHA256 85c6143f2c9933cdfeb06c9341f15f4a8035766950d2e8e0b603552812b8728b
MD5 530fb5526cc68b69d250c23772a06f22
BLAKE2b-256 ba9c4bac5fd3a8ef93d056a404e2b03e3921e84d991a9e2553b15ea0797f5740

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bugout-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73e791b8cfab098315663678b67c3d39979c4f795507c91f251e3b59ef338d46
MD5 68e7f1826899ecbbdcb679598b362010
BLAKE2b-256 b3d25e7657dcd8a5c0c56a6e1a5f8c3ccd74c54d748b81e12b3288dea76b2428

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