workflowforge 1.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of workflowforge might be problematic. Click here for more details.

Files changed (48) hide show
  1. workflowforge-1.0b1/.flake8 +16 -0
  2. workflowforge-1.0b1/.github/workflows/publish.yml +117 -0
  3. workflowforge-1.0b1/.gitignore +202 -0
  4. workflowforge-1.0b1/.pre-commit-config.yaml +56 -0
  5. workflowforge-1.0b1/AUTHORS.md +18 -0
  6. workflowforge-1.0b1/LICENSE +21 -0
  7. workflowforge-1.0b1/MANIFEST.in +6 -0
  8. workflowforge-1.0b1/PKG-INFO +336 -0
  9. workflowforge-1.0b1/README.md +299 -0
  10. workflowforge-1.0b1/README_PRECOMMIT.md +88 -0
  11. workflowforge-1.0b1/examples/ai_documentation_example.py +126 -0
  12. workflowforge-1.0b1/examples/basic_workflow.py +75 -0
  13. workflowforge-1.0b1/examples/codebuild_example.py +95 -0
  14. workflowforge-1.0b1/examples/jenkins_advanced.py +113 -0
  15. workflowforge-1.0b1/examples/jenkins_example.py +54 -0
  16. workflowforge-1.0b1/examples/visualization_example.py +169 -0
  17. workflowforge-1.0b1/pyproject.toml +66 -0
  18. workflowforge-1.0b1/setup.cfg +4 -0
  19. workflowforge-1.0b1/setup.py +7 -0
  20. workflowforge-1.0b1/src/workflowforge/__init__.py +195 -0
  21. workflowforge-1.0b1/src/workflowforge/ai_documentation.py +137 -0
  22. workflowforge-1.0b1/src/workflowforge/codebuild.py +337 -0
  23. workflowforge-1.0b1/src/workflowforge/environment.py +25 -0
  24. workflowforge-1.0b1/src/workflowforge/jenkins.py +321 -0
  25. workflowforge-1.0b1/src/workflowforge/jenkins_plugins.py +171 -0
  26. workflowforge-1.0b1/src/workflowforge/job.py +102 -0
  27. workflowforge-1.0b1/src/workflowforge/schema_validation.py +137 -0
  28. workflowforge-1.0b1/src/workflowforge/secrets.py +153 -0
  29. workflowforge-1.0b1/src/workflowforge/step.py +106 -0
  30. workflowforge-1.0b1/src/workflowforge/strategy.py +59 -0
  31. workflowforge-1.0b1/src/workflowforge/templates.py +177 -0
  32. workflowforge-1.0b1/src/workflowforge/triggers.py +142 -0
  33. workflowforge-1.0b1/src/workflowforge/validation.py +73 -0
  34. workflowforge-1.0b1/src/workflowforge/visualization.py +200 -0
  35. workflowforge-1.0b1/src/workflowforge/workflow.py +152 -0
  36. workflowforge-1.0b1/src/workflowforge.egg-info/PKG-INFO +336 -0
  37. workflowforge-1.0b1/src/workflowforge.egg-info/SOURCES.txt +46 -0
  38. workflowforge-1.0b1/src/workflowforge.egg-info/dependency_links.txt +1 -0
  39. workflowforge-1.0b1/src/workflowforge.egg-info/requires.txt +13 -0
  40. workflowforge-1.0b1/src/workflowforge.egg-info/top_level.txt +1 -0
  41. workflowforge-1.0b1/tests/__init__.py +1 -0
  42. workflowforge-1.0b1/tests/test_ai_documentation.py +145 -0
  43. workflowforge-1.0b1/tests/test_codebuild.py +63 -0
  44. workflowforge-1.0b1/tests/test_jenkins.py +52 -0
  45. workflowforge-1.0b1/tests/test_secrets.py +25 -0
  46. workflowforge-1.0b1/tests/test_templates.py +37 -0
  47. workflowforge-1.0b1/tests/test_validation.py +38 -0
  48. workflowforge-1.0b1/tests/test_workflow.py +108 -0
@@ -0,0 +1,16 @@
1
+ [flake8]
2
+ max-line-length = 88
3
+ extend-ignore = E203, W503, E501, E722, F401, F541, F811, F841, E712
4
+ exclude =
5
+ .git,
6
+ __pycache__,
7
+ build,
8
+ dist,
9
+ *.egg-info,
10
+ venv,
11
+ .venv,
12
+ examples,
13
+ setup.py
14
+ per-file-ignores =
15
+ __init__.py:F401,F811
16
+ tests/*:S101,F401
@@ -0,0 +1,117 @@
1
+ # Do not modify - Generated with WorkflowForge
2
+ name: "Publish WorkflowForge to PyPI"
3
+ "on":
4
+ push:
5
+ branches:
6
+ - "main"
7
+ pull_request:
8
+ branches:
9
+ - "main"
10
+ release:
11
+ types:
12
+ - "published"
13
+ jobs:
14
+ test:
15
+ runs-on: "ubuntu-latest"
16
+ strategy:
17
+ matrix:
18
+ python-version:
19
+ - "3.11"
20
+ - "3.12"
21
+ - "3.13"
22
+ steps:
23
+ - uses: "actions/checkout@v4"
24
+ name: "Checkout code"
25
+ - uses: "actions/setup-python@v5"
26
+ name: "Set up Python ${{ matrix.python-version }}"
27
+ with:
28
+ python-version: "${{ matrix.python-version }}"
29
+ - run: "python -m pip install --upgrade pip"
30
+ name: "Install pip"
31
+ - run: "pip install -e .[dev]"
32
+ name: "Install dependencies"
33
+ - run: "black --check src/ tests/"
34
+ name: "Check code formatting"
35
+ - run: "isort --check-only src/ tests/"
36
+ name: "Check import sorting"
37
+ # - run: "mypy src/"
38
+ # name: "Type checking"
39
+ - run: "pytest tests/ --cov=workflowforge --cov-report=xml"
40
+ name: "Run tests with coverage"
41
+ security:
42
+ runs-on: "ubuntu-latest"
43
+ steps:
44
+ - uses: "actions/checkout@v4"
45
+ name: "Checkout code"
46
+ - uses: "actions/setup-python@v5"
47
+ name: "Set up Python"
48
+ with:
49
+ python-version: "3.11"
50
+ - run: "pip install bandit safety"
51
+ name: "Install security tools"
52
+ - run: "bandit -r src/"
53
+ name: "Security scan with Bandit"
54
+ - run: "safety check --json || safety check --short-report"
55
+ name: "Check dependencies for vulnerabilities"
56
+ build:
57
+ runs-on: "ubuntu-latest"
58
+ needs:
59
+ - "test"
60
+ - "security"
61
+ steps:
62
+ - uses: "actions/checkout@v4"
63
+ name: "Checkout code"
64
+ - uses: "actions/setup-python@v5"
65
+ name: "Set up Python"
66
+ with:
67
+ python-version: "3.11"
68
+ - run: "python -m pip install --upgrade pip build twine"
69
+ name: "Install build tools"
70
+ - run: "python -m build"
71
+ name: "Build package"
72
+ - run: "twine check dist/*"
73
+ name: "Verify package metadata"
74
+ - uses: "actions/upload-artifact@v4"
75
+ name: "Upload build artifacts"
76
+ with:
77
+ name: "dist"
78
+ path: "dist/"
79
+ test-publish:
80
+ runs-on: "ubuntu-latest"
81
+ needs: "build"
82
+ "if": "github.ref == 'refs/heads/main'"
83
+ environment:
84
+ name: "testpypi"
85
+ url: "https://test.pypi.org/p/workflowforge"
86
+ permissions:
87
+ id-token: "write"
88
+ steps:
89
+ - uses: "actions/download-artifact@v4"
90
+ name: "Download build artifacts"
91
+ with:
92
+ name: "dist"
93
+ path: "dist/"
94
+ - uses: "pypa/gh-action-pypi-publish@release/v1"
95
+ name: "Publish to TestPyPI"
96
+ with:
97
+ repository-url: "https://test.pypi.org/legacy/"
98
+ print-hash: "true"
99
+ publish:
100
+ runs-on: "ubuntu-latest"
101
+ needs: "build"
102
+ "if": "github.event_name == 'release'"
103
+ environment:
104
+ name: "pypi"
105
+ url: "https://pypi.org/p/workflowforge"
106
+ permissions:
107
+ id-token: "write"
108
+ steps:
109
+ - uses: "actions/download-artifact@v4"
110
+ name: "Download build artifacts"
111
+ with:
112
+ name: "dist"
113
+ path: "dist/"
114
+ - uses: "pypa/gh-action-pypi-publish@release/v1"
115
+ name: "Publish to PyPI"
116
+ with:
117
+ print-hash: "true"
@@ -0,0 +1,202 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be added to the global gitignore or merged into this project gitignore. For a PyCharm
158
+ # project, it is recommended to ignore the entire .idea directory.
159
+ .idea/
160
+
161
+ # VS Code
162
+ .vscode/
163
+
164
+ # macOS
165
+ .DS_Store
166
+ .AppleDouble
167
+ .LSOverride
168
+
169
+ # Windows
170
+ Thumbs.db
171
+ ehthumbs.db
172
+ Desktop.ini
173
+
174
+ # Linux
175
+ *~
176
+
177
+ # Temporary files
178
+ *.tmp
179
+ *.temp
180
+ *.swp
181
+ *.swo
182
+
183
+ # Logs
184
+ *.log
185
+
186
+ # Test files
187
+ test_output/
188
+ .coverage
189
+ htmlcov/
190
+
191
+ # Build artifacts
192
+ *.whl
193
+ *.tar.gz
194
+
195
+ # WorkflowForge generated files (ignore workflow generation scripts and outputs)
196
+ create_*workflow*.py
197
+ create_*pipeline*.py
198
+ *.dot
199
+ *_README.md
200
+ *workflow*.png
201
+ *pipeline*.png
202
+ *buildspec*.png
@@ -0,0 +1,56 @@
1
+ repos:
2
+ # Basic file checks
3
+ - repo: https://github.com/pre-commit/pre-commit-hooks
4
+ rev: v4.6.0
5
+ hooks:
6
+ - id: trailing-whitespace
7
+ - id: end-of-file-fixer
8
+ - id: check-yaml
9
+ - id: check-added-large-files
10
+ - id: check-merge-conflict
11
+ - id: check-toml
12
+ - id: debug-statements
13
+ - id: mixed-line-ending
14
+
15
+ # Python code formatting
16
+ - repo: https://github.com/psf/black
17
+ rev: 25.1.0
18
+ hooks:
19
+ - id: black
20
+ language_version: python3
21
+
22
+ # Import sorting
23
+ - repo: https://github.com/pycqa/isort
24
+ rev: 5.13.2
25
+ hooks:
26
+ - id: isort
27
+ args: ["--profile", "black"]
28
+
29
+ # Security scanning
30
+ - repo: https://github.com/PyCQA/bandit
31
+ rev: 1.8.6
32
+ hooks:
33
+ - id: bandit
34
+ args: ["-r", "src/"]
35
+ exclude: tests/
36
+
37
+ # Conventional commits validation
38
+ - repo: https://github.com/compilerla/conventional-pre-commit
39
+ rev: v3.4.0
40
+ hooks:
41
+ - id: conventional-pre-commit
42
+ stages: [commit-msg]
43
+
44
+ # Python syntax and style (temporarily disabled)
45
+ # - repo: https://github.com/pycqa/flake8
46
+ # rev: 7.1.1
47
+ # hooks:
48
+ # - id: flake8
49
+ # args: ["--max-line-length=88", "--extend-ignore=E203,W503"]
50
+
51
+ # Upgrade Python syntax
52
+ - repo: https://github.com/asottile/pyupgrade
53
+ rev: v3.19.0
54
+ hooks:
55
+ - id: pyupgrade
56
+ args: [--py311-plus]
@@ -0,0 +1,18 @@
1
+ # Authors
2
+
3
+ ## Creator & Maintainer
4
+
5
+ **Brainy Nimbus, LLC**
6
+ Website: [brainynimbus.io](https://brainynimbus.io)
7
+ Email: <info@brainynimbus.io>
8
+ GitHub: [@brainynimbus](https://github.com/brainynimbus)
9
+
10
+ ## Contributions
11
+
12
+ WorkflowForge was created and developed by Brainy Nimbus, LLC as a robust and flexible solution for generating GitHub Actions workflows and Jenkins pipelines programmatically in Python.
13
+
14
+ ### Acknowledgments
15
+
16
+ - Inspired by the need to simplify complex workflow creation
17
+ - Based on GitHub Actions and Jenkins best practices
18
+ - Designed with developer experience in mind
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2025 Brainy Nimbus, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ include README.md
2
+ include LICENSE
3
+ include AUTHORS.md
4
+ recursive-include src *.py
5
+ recursive-exclude * __pycache__
6
+ recursive-exclude * *.py[co]