Docmosis

Fast, Reliable, Scalable Document Generation. A smart template-based approach to generating custom PDF and Word documents.

Integrate the Docmosis API with the Python API

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

Generate Document with the Docmosis API

Generates a document by merging data with a Docmosis template. See the documentation

 
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 Docmosis

The Docmosis API lets you generate custom documents based on templates. You can populate these templates with dynamic content and convert them into various formats such as PDF, Word, and HTML. On Pipedream, leveraging the Docmosis API in your workflows allows automated document generation, making it ideal for reports, contracts, invoices, and more. You can trigger workflows with various events and use data from other apps to fill templates.

Connect Docmosis

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    docmosis: {
      type: "app",
      app: "docmosis",
    }
  },
  async run({steps, $}) {
    const data = {
      "accessKey": `${this.docmosis.$auth.access_key}`,
    }
    return await axios($, {
      method: "post",
      url: `${this.docmosis.$auth.location_base_url}/environment/ready`,
      data,
    })
  },
})

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}}