Python client library for Bugout API
Project description
bugout-python
Python client library for Bugout API
from bugout.app import Bugout
def main():
bugout = Bugout(brood_api_url="http://localhost:9001", spire_api_url="http://localhost:9002")
user = bugout.get_user(<user token ID>)
print(f"User name is {user.username}")
group = bugout.get_group(<user token ID>, <group ID>)
journal = bugout.get_journal(<user token ID>, <journal ID>)
entry = bugout.get_entry(<user token ID>, <journal ID>, <entry ID>)
search_res = bugout.search(<user token ID>, <journal ID>, query="your query", content=False)
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.0.9.tar.gz
(8.8 kB
view hashes)
Built Distribution
bugout-0.0.9-py3-none-any.whl
(11.7 kB
view hashes)