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.1.13.tar.gz
(11.7 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.1.13-py3-none-any.whl
(15.3 kB
view details)
File details
Details for the file bugout-0.1.13.tar.gz.
File metadata
- Download URL: bugout-0.1.13.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd948d00c2d7d45b88441a67539c7436059b3cdb5c4cd088aa74ba58cfa9e8f
|
|
| MD5 |
2fcb3678ed8765c6471f289240eec474
|
|
| BLAKE2b-256 |
89842148cd4cf70fbf210d630c985a847bb728b70077e57ba3eb003d109a6d32
|
File details
Details for the file bugout-0.1.13-py3-none-any.whl.
File metadata
- Download URL: bugout-0.1.13-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
675281cc60a55119dc8739c8f2a0e5696fd7526610c6bc3aabae49a1e3aa9168
|
|
| MD5 |
b30d24a22c1bba0f76db56cf1484a079
|
|
| BLAKE2b-256 |
8dd20cb466558e2ae75171d09490747f5d3ef1eb1287e249b2fb18d418134622
|