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()
Release files for bugout 0.2.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bugout-0.2.17.tar.gz | 19.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bugout-0.2.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:42.2 kB
Release files / bugout-0.2.17.tar.gz
| Download URL | bugout-0.2.17.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
834a381f033502603f9a56a9d297eafc0f3f8de3b8c1e9e96d24c44d4efab7ee
|
|
BLAKE2b-256 checksum How to use checksums |
19a8702ca18521b391e1f7fa4832a74c839dec7d3a03c7800d11a1458facdcee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / bugout-0.2.17-py3-none-any.whl
| Download URL | bugout-0.2.17-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c79c9916628cdba45a41540562560f999638872327b8db2a23296007c8b0e8cb
|
|
BLAKE2b-256 checksum How to use checksums |
c9749f60701429b6fa98ff06eadf81af7338bfba9e474db89899f5b8920aed66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|