Skip to content

The starter kit for your custom integrations and templates in Tracecat.

Notifications You must be signed in to change notification settings

TracecatHQ/custom-integrations-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tracecat Starter Kit

Click on Use this template to copy Tracecat's custom integrations starter kit.

This starter kit contains:

  • pyproject.toml config file
  • Example Python UDFs (user defined functions) in mapping.py and greetings.py
  • An example Action Template in custom_actions/templates/power_of_three.yml.

Development

Tip

Check out the tutorial on building and syncing custom integrations in our docs here.

We also recommend following Tracecat's open source integrations for inspiration and guidance.

Note:

  • You can safely delete example Python integrations files and templates under custom_actions/
  • Do not remove pyproject.toml. This is required for your Tracecat instance to install and run your custom integrations.
  • You can add 3rd party pip packages (e.g. psycopg==3.2.4) in the pyproject.toml file under project.dependencies here.
  • The dev dependencies line in pyproject.toml installs the tracecat_registry package. This allows you to test your Python functions locally and also enables linting.

Renaming the package

If you want to rename custom_actions to <your_registry_name>, you must:

  • Pick a package name that is in snakecase
  • Rename the custom_actions directory to <your_registry_name>
  • Change every custom_actions directory name in pyproject.toml to <your_registry_name>

For example:

cd custom-integrations-starter-kit
mv custom_actions my_custom_integrations
sed -i 's/custom_actions/my_custom_integrations/g' pyproject.toml