Skip to content

jmosbacher/eve-panel

Repository files navigation

Eve-Panel

Documentation Status

Dynamically create an httpx based client for any Eve api. Uses Param + Cerberus for type enforcement and Panel for GUIs. This is just a prototype package,features will slowly be added as i need them for my own purposes. The api is expected to change without warning based on my needs but feel free to fork or copy parts and adapt to your own needs.

To view the widgets in a notebook you will need to install the pyviz plugin. For details, see panel docs.

Usage

import eve
from eve_panel import EveClient


app = eve.Eve()

api = eve_panel.EveClient.from_app(app)

# optional
api.set_token("my-secret-token")

# show a resources gui
api.resource_name

# get a specific item
api.resource_name["item_id"]

# get current page
api.resource_name.current_page()

# get next page
api.resource_name.next_page()

# get previous page
api.resource_name.previous_page()

# insert new documents
docs = [{"name": "new document"}]
api.resource_name.insert_documents(docs)

Features

  • TODO

Credits

This package was created with Cookiecutter and the briggySmalls/cookiecutter-pypackage project template.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages