Python client library for Bugout API
Project description
bugout-python
Python client library for Bugout API
Setup
- Add variables from
sample.envin you development environment
export BUGOUT_TIMEOUT_SECONDS=5
- Example of usage, just fill
token,group_id,journal_idandentry_idwith 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
Release history Release notifications | RSS feed
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.4.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bugout-0.2.4-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file bugout-0.2.4.tar.gz.
File metadata
- Download URL: bugout-0.2.4.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
083878a94ab10f9bf158d106b25c4cc5ccff240f8adb3d08612212c034e4616f
|
|
| MD5 |
7568c0fa1fe93eaf301e9aea16b5c4f5
|
|
| BLAKE2b-256 |
e0df92cb6de95ff004041c99d9feee89cd37f58271eab353d05ca08f77b29e39
|
File details
Details for the file bugout-0.2.4-py3-none-any.whl.
File metadata
- Download URL: bugout-0.2.4-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.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a3195c7bd8a7264e9a1c626745119b0597367fc1a56f05c19a4919a8f5d8e58
|
|
| MD5 |
03c9960feb0d21f3e59e86a332fed3ed
|
|
| BLAKE2b-256 |
ec8f771925b65b076cc6bcc27e33ac149958a8de21061c01ef3ea5b85e781019
|