Hasura GDC agent based on pandas.
Reason this release was yanked:
schema.json in broken
Project description
pandas_gdc_agent
This project explores the Hasura Graphql Data Connectors (GDC) using pandas Dataframe as backend.
To quickly get started, please go through a sample app in app.py
.
GDCAgent
The GDCAgent
constructor takes a list of tuples, where the first element
is the table name and the second element is the DataFrame
which corresponds
to the table name. To setup a GDCAgent
, run the following:
# setting up GDC Agent
agent = GDCAgent([("table1",df1),("table2", df2)])
Please note that the dataframe must have the primary key as index.
After setting up the GDCAgent
, start the GDCAgent server by running the
following:
# starting the GDC Agent
agent.run_agent()
When you run the GDCAgent
, it starts a flask server and exposes the required
endpoints explained here.
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
Built Distribution
Hashes for pandas_gdc_agent-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 253d79d00e7c83101d6c57df0cf442032ae7631585bfeccc3c00f2b19b824465 |
|
MD5 | 272484c482b760211c7fd85806adad1b |
|
BLAKE2b-256 | 74670f291a463af25df771ffa08e5972d45b5b5f3c658534999d488e213573ca |