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.8.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.8-py3-none-any.whl
(21.7 kB
view details)
File details
Details for the file bugout-0.2.8.tar.gz.
File metadata
- Download URL: bugout-0.2.8.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3584018ea06a2b51b537588221ab5d1cb6c196899159e358b0db656c67351cc0
|
|
| MD5 |
3c434799f77d558572bfecd7704beadc
|
|
| BLAKE2b-256 |
5ceffbe271674b752145f16ca48787d7b125306ab5e23ce95d156dcd9bec424e
|
File details
Details for the file bugout-0.2.8-py3-none-any.whl.
File metadata
- Download URL: bugout-0.2.8-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.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1498258fb8e0559d9b1633874bd35d435efd1d9524861bc994047a7823619a04
|
|
| MD5 |
63c70f2cdc2116c8ef46abb01f10b6c3
|
|
| BLAKE2b-256 |
df2fa23829aabb9d093d77f5953e7180e8ef1b75816648cb4f2e6c8e811dffc7
|