Instantly build and ship APIs on all your data.
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
The Hasura API offers a powerful way to interact with your Hasura backend using GraphQL to build, query, and mutate your data. On Pipedream, you can leverage this API to create dynamic workflows that react to events in your Hasura instance, automate CRUD operations, and integrate with other services. By using Hasura with Pipedream, you gain the ability to automate tasks, sync data across apps, and respond in real-time to changes in your database.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hasura: {
type: "app",
app: "hasura",
}
},
async run({steps, $}) {
const data = {
"query": `query GetUsers {
users {
id
email
name
}
}`,
}
return await axios($, {
method: "post",
url: `${this.hasura.$auth.url}`,
headers: {
"x-hasura-admin-secret": `${this.hasura.$auth.admin_secret}`,
},
data,
})
},
})
Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.
This includes installing PyPI packages, within your code without having to manage a requirements.txt
file or running pip
.
Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:
def handler(pd: "pipedream"):
# Reference data from previous steps
print(pd.steps["trigger"]["context"]["id"])
# Return data for use in future steps
return {"foo": {"test":True}}