Siteleaf

A friendly CMS for static sites. Powered by Jekyll, with GitHub sync, and a complete API.

Integrate the Siteleaf API with the Python API

Setup the Siteleaf API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Siteleaf and Python remarkably fast. Free for developers.

Run Python Code with Python API on New Collection from Siteleaf API
Siteleaf + Python
 
Try it
Run Python Code with Python API on New Document from Siteleaf API
Siteleaf + Python
 
Try it
Run Python Code with Python API on New Page from Siteleaf API
Siteleaf + Python
 
Try it
Run Python Code with Python API on New Site from Siteleaf API
Siteleaf + Python
 
Try it
New Collection from the Siteleaf API

Emit new event when a new collection is created. See the docs here

 
Try it
New Document from the Siteleaf API

Emit new event when a new document is created. See the docs here

 
Try it
New Page from the Siteleaf API

Emit new event when a new page is created. See the docs here

 
Try it
New Site from the Siteleaf API

Emit new event when a new site is created. See the docs here

 
Try it
Create Document with the Siteleaf API

Create a new document. See the docs here

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it

Overview of Siteleaf

The Siteleaf API facilitates content management by enabling programmatic interactions with your Siteleaf site. Via the API, you can automate content creation, updates, and retrieval, making it possible to keep your website current without manual intervention. It's designed for developers who need to streamline their content operations or integrate their Siteleaf content with other tools and services.

Connect Siteleaf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    siteleaf: {
      type: "app",
      app: "siteleaf",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.siteleaf.com/v2/sites`,
      auth: {
        username: `${this.siteleaf.$auth.api_key}`,
        password: `${this.siteleaf.$auth.api_secret}`,
      },
    })
  },
})

Overview of Python

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:

Connect Python

1
2
3
4
5
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}}