StackStorm / StackStorm/st2

Sharing python code between packs

Open
#4,355 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

SUMMARY

There are some cases where it would be nice to share python code between packs.

For example: I'm writing a pack for the PRTG monitoring tool. I'm coding up a bunch of generic actions using the python-script runner. I then have some "custom" stuff i need to do that is specific to the way we have our PRTG instance setup and doesn't make any sense to include that in the public PRTG pack. I would love to be able to reuse all of the code i just wrote in the public PRTG pack within my custom specific pack.

ISSUE TYPE

Pick one below and delete the rest:

  • Feature Idea

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names StackStorm packs and the python-script runner but no files or tests. Start by tracing how pack actions and the runner load Python code, then review existing mechanisms for sharing pack content. Done requires an agreed and documented way to reuse Python code between public and custom packs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.