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.9.tar.gz
(17.6 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.9-py3-none-any.whl
(21.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f87b33aae218ca9c4f5242835376fe674cacd6bbc44cf2990a51dc1a247fdca
|
|
| MD5 |
7245ad660dfa4416b743e1063811c97d
|
|
| BLAKE2b-256 |
316698f11fdbfd1344bc3e864cca1cd3be5dfb84c8eb3b611fa56b1f05cc3edb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2376f8386e8986001e8565e3753b07db9fd5fa4ab31843f8e341b831b3d5dc39
|
|
| MD5 |
9005f7b7d3c605868d06b1ad918190eb
|
|
| BLAKE2b-256 |
e307309d0126fe22197f42133f300b2e05736b854bd954228d8e45222aac9447
|