kryptorious-devflow 1.0.0__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.
@@ -0,0 +1,201 @@
1
+ Metadata-Version: 2.4
2
+ Name: kryptorious-devflow
3
+ Version: 1.0.0
4
+ Summary: Developer workflow automation CLI — scaffold, audit, fix, and ship projects with one tool.
5
+ Author: Kryptorious Quantum Biosciences, Inc.
6
+ License: Proprietary
7
+ Project-URL: Homepage, https://devflow.sh
8
+ Project-URL: Repository, https://github.com/kryptorious/devflow
9
+ Keywords: cli,developer-tools,productivity,scaffold,code-quality,automation
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Topic :: Software Development :: Build Tools
13
+ Classifier: Topic :: Software Development :: Quality Assurance
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Requires-Python: >=3.9
21
+ Description-Content-Type: text/markdown
22
+ Requires-Dist: click>=8.0
23
+ Requires-Dist: rich>=13.0
24
+ Requires-Dist: pyyaml>=6.0
25
+ Requires-Dist: tomli>=2.0; python_version < "3.11"
26
+ Requires-Dist: gitpython>=3.1
27
+ Requires-Dist: packaging>=23.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=7.0; extra == "dev"
30
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
31
+ Requires-Dist: black>=23.0; extra == "dev"
32
+ Requires-Dist: ruff>=0.1; extra == "dev"
33
+
34
+ # DevFlow — Developer Workflow Automation CLI
35
+
36
+ **One tool to scaffold, audit, fix, and ship any project.**
37
+
38
+ [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://python.org)
39
+ [![License](https://img.shields.io/badge/license-Proprietary-red.svg)](LICENSE)
40
+ [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://devflow.sh)
41
+
42
+ ---
43
+
44
+ ## Stop Wasting Hours on Project Setup
45
+
46
+ Every developer knows the pain:
47
+
48
+ - Starting a new project means hours of boilerplate — config files, CI/CD, linting, testing, Docker
49
+ - Code reviews catch formatting and lint issues that should have been fixed automatically
50
+ - Shipping a release means bumping versions, updating changelogs, tagging, building — all manual and error-prone
51
+
52
+ **DevFlow replaces 10+ separate tools with 4 commands.**
53
+
54
+ ---
55
+
56
+ ## What DevFlow Does
57
+
58
+ ### `devflow init` — Smart Project Scaffolding
59
+
60
+ Creates production-ready projects with best practices baked in:
61
+
62
+ - Python (CLI, API, library), Node.js, and full-stack templates
63
+ - Pre-configured linting (ruff), formatting (black), type checking (mypy), and testing (pytest)
64
+ - GitHub Actions CI/CD ready to go
65
+ - Docker config included
66
+ - Automatic git init and initial commit
67
+ - Sensible defaults you can override
68
+
69
+ ```bash
70
+ $ devflow init my-api --template api --description "REST API for widget tracking"
71
+ $ devflow init my-cli --template cli
72
+ $ devflow init my-saas --template fullstack --description "My SaaS app"
73
+ ```
74
+
75
+ ### `devflow audit` — Codebase Health Check
76
+
77
+ Comprehensive project audit that checks:
78
+
79
+ - Project structure and conventions
80
+ - Linting violations (ruff)
81
+ - Code formatting (black)
82
+ - Import organization (isort/ruff)
83
+ - Test coverage and passing status
84
+ - Docstring coverage
85
+ - Security vulnerabilities (bandit)
86
+ - Hardcoded secrets
87
+ - Dependency freshness and known vulnerabilities
88
+
89
+ ```bash
90
+ $ devflow audit
91
+ # 72/100 — 8 passed, 3 warnings, 1 error
92
+
93
+ $ devflow audit --format markdown --severity error
94
+ $ devflow audit --format json # for CI integration
95
+ ```
96
+
97
+ ### `devflow fix` — Auto-Fix Everything
98
+
99
+ One command to fix all the issues audit found:
100
+
101
+ - Format code with black
102
+ - Sort imports with ruff/isort
103
+ - Fix lint violations
104
+ - Preview with `--dry-run` before applying
105
+
106
+ ```bash
107
+ $ devflow fix --dry-run # See what would change
108
+ $ devflow fix --apply # Fix everything
109
+ $ devflow fix --scope format # Just fix formatting
110
+ ```
111
+
112
+ ### `devflow ship` — Release Automation
113
+
114
+ Ship a release in one command:
115
+
116
+ - Runs audit first (quality gate — blocks release on errors)
117
+ - Bumps version (patch/minor/major)
118
+ - Updates CHANGELOG.md
119
+ - Creates git tag
120
+ - Builds distribution packages
121
+ - Optionally pushes to remote
122
+
123
+ ```bash
124
+ $ devflow ship --bump patch --message "Fix login bug"
125
+ $ devflow ship --bump minor --message "Add user dashboard" --push
126
+ $ devflow ship --bump major --dry-run # Preview before shipping
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Why Developers Buy DevFlow
132
+
133
+ - **Save 2-4 hours per project setup.** Stop copy-pasting configs between projects.
134
+ - **Catch issues before code review.** Audit and fix in your editor, not in PR comments.
135
+ - **Ship with confidence.** Automated quality gates prevent broken releases.
136
+ - **One tool, not ten.** Replace black, isort, ruff, flake8, bandit, pip-audit, bumpversion, and manual changelogs.
137
+ - **CI-ready output.** JSON and markdown formats integrate with any pipeline.
138
+
139
+ ---
140
+
141
+ ## Installation
142
+
143
+ ```bash
144
+ pip install devflow-cli
145
+ ```
146
+
147
+ Requires Python 3.9+.
148
+
149
+ ---
150
+
151
+ ## Quick Start
152
+
153
+ ```bash
154
+ # Create a new project
155
+ devflow init my-project --template cli
156
+
157
+ # Check its health
158
+ cd my-project
159
+ devflow audit
160
+
161
+ # Fix any issues
162
+ devflow fix --apply
163
+
164
+ # Ship v0.1.0
165
+ devflow ship --bump patch --message "Initial release"
166
+ ```
167
+
168
+ ---
169
+
170
+ ## What You Get
171
+
172
+ - **Full source code** — MIT-licensed, modifiable, extensible
173
+ - **6 project templates** — Python CLI, API, Library, Node.js, Full-stack, and Generic
174
+ - **Pre-configured tooling** — ruff, black, mypy, pytest, GitHub Actions CI
175
+ - **Docker support** — Dockerfile and docker-compose included for all templates
176
+ - **Lifetime updates** — All 1.x updates included
177
+
178
+ ---
179
+
180
+ ## Requirements
181
+
182
+ - Python 3.9 or later
183
+ - Git (for init and ship commands)
184
+ - Optional: black, ruff, bandit, pip-audit (devflow tells you what to install)
185
+
186
+ ---
187
+
188
+ ## License
189
+
190
+ Proprietary — single-user license. See [LICENSE](LICENSE) for terms.
191
+
192
+ ---
193
+
194
+ ## Support
195
+
196
+ Email: support@devflow.sh
197
+ Docs: https://devflow.sh/docs
198
+
199
+ ---
200
+
201
+ *Built with DevFlow itself. Ship everything.*
@@ -0,0 +1,168 @@
1
+ # DevFlow — Developer Workflow Automation CLI
2
+
3
+ **One tool to scaffold, audit, fix, and ship any project.**
4
+
5
+ [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://python.org)
6
+ [![License](https://img.shields.io/badge/license-Proprietary-red.svg)](LICENSE)
7
+ [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://devflow.sh)
8
+
9
+ ---
10
+
11
+ ## Stop Wasting Hours on Project Setup
12
+
13
+ Every developer knows the pain:
14
+
15
+ - Starting a new project means hours of boilerplate — config files, CI/CD, linting, testing, Docker
16
+ - Code reviews catch formatting and lint issues that should have been fixed automatically
17
+ - Shipping a release means bumping versions, updating changelogs, tagging, building — all manual and error-prone
18
+
19
+ **DevFlow replaces 10+ separate tools with 4 commands.**
20
+
21
+ ---
22
+
23
+ ## What DevFlow Does
24
+
25
+ ### `devflow init` — Smart Project Scaffolding
26
+
27
+ Creates production-ready projects with best practices baked in:
28
+
29
+ - Python (CLI, API, library), Node.js, and full-stack templates
30
+ - Pre-configured linting (ruff), formatting (black), type checking (mypy), and testing (pytest)
31
+ - GitHub Actions CI/CD ready to go
32
+ - Docker config included
33
+ - Automatic git init and initial commit
34
+ - Sensible defaults you can override
35
+
36
+ ```bash
37
+ $ devflow init my-api --template api --description "REST API for widget tracking"
38
+ $ devflow init my-cli --template cli
39
+ $ devflow init my-saas --template fullstack --description "My SaaS app"
40
+ ```
41
+
42
+ ### `devflow audit` — Codebase Health Check
43
+
44
+ Comprehensive project audit that checks:
45
+
46
+ - Project structure and conventions
47
+ - Linting violations (ruff)
48
+ - Code formatting (black)
49
+ - Import organization (isort/ruff)
50
+ - Test coverage and passing status
51
+ - Docstring coverage
52
+ - Security vulnerabilities (bandit)
53
+ - Hardcoded secrets
54
+ - Dependency freshness and known vulnerabilities
55
+
56
+ ```bash
57
+ $ devflow audit
58
+ # 72/100 — 8 passed, 3 warnings, 1 error
59
+
60
+ $ devflow audit --format markdown --severity error
61
+ $ devflow audit --format json # for CI integration
62
+ ```
63
+
64
+ ### `devflow fix` — Auto-Fix Everything
65
+
66
+ One command to fix all the issues audit found:
67
+
68
+ - Format code with black
69
+ - Sort imports with ruff/isort
70
+ - Fix lint violations
71
+ - Preview with `--dry-run` before applying
72
+
73
+ ```bash
74
+ $ devflow fix --dry-run # See what would change
75
+ $ devflow fix --apply # Fix everything
76
+ $ devflow fix --scope format # Just fix formatting
77
+ ```
78
+
79
+ ### `devflow ship` — Release Automation
80
+
81
+ Ship a release in one command:
82
+
83
+ - Runs audit first (quality gate — blocks release on errors)
84
+ - Bumps version (patch/minor/major)
85
+ - Updates CHANGELOG.md
86
+ - Creates git tag
87
+ - Builds distribution packages
88
+ - Optionally pushes to remote
89
+
90
+ ```bash
91
+ $ devflow ship --bump patch --message "Fix login bug"
92
+ $ devflow ship --bump minor --message "Add user dashboard" --push
93
+ $ devflow ship --bump major --dry-run # Preview before shipping
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Why Developers Buy DevFlow
99
+
100
+ - **Save 2-4 hours per project setup.** Stop copy-pasting configs between projects.
101
+ - **Catch issues before code review.** Audit and fix in your editor, not in PR comments.
102
+ - **Ship with confidence.** Automated quality gates prevent broken releases.
103
+ - **One tool, not ten.** Replace black, isort, ruff, flake8, bandit, pip-audit, bumpversion, and manual changelogs.
104
+ - **CI-ready output.** JSON and markdown formats integrate with any pipeline.
105
+
106
+ ---
107
+
108
+ ## Installation
109
+
110
+ ```bash
111
+ pip install devflow-cli
112
+ ```
113
+
114
+ Requires Python 3.9+.
115
+
116
+ ---
117
+
118
+ ## Quick Start
119
+
120
+ ```bash
121
+ # Create a new project
122
+ devflow init my-project --template cli
123
+
124
+ # Check its health
125
+ cd my-project
126
+ devflow audit
127
+
128
+ # Fix any issues
129
+ devflow fix --apply
130
+
131
+ # Ship v0.1.0
132
+ devflow ship --bump patch --message "Initial release"
133
+ ```
134
+
135
+ ---
136
+
137
+ ## What You Get
138
+
139
+ - **Full source code** — MIT-licensed, modifiable, extensible
140
+ - **6 project templates** — Python CLI, API, Library, Node.js, Full-stack, and Generic
141
+ - **Pre-configured tooling** — ruff, black, mypy, pytest, GitHub Actions CI
142
+ - **Docker support** — Dockerfile and docker-compose included for all templates
143
+ - **Lifetime updates** — All 1.x updates included
144
+
145
+ ---
146
+
147
+ ## Requirements
148
+
149
+ - Python 3.9 or later
150
+ - Git (for init and ship commands)
151
+ - Optional: black, ruff, bandit, pip-audit (devflow tells you what to install)
152
+
153
+ ---
154
+
155
+ ## License
156
+
157
+ Proprietary — single-user license. See [LICENSE](LICENSE) for terms.
158
+
159
+ ---
160
+
161
+ ## Support
162
+
163
+ Email: support@devflow.sh
164
+ Docs: https://devflow.sh/docs
165
+
166
+ ---
167
+
168
+ *Built with DevFlow itself. Ship everything.*
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "kryptorious-devflow"
7
+ version = "1.0.0"
8
+ description = "Developer workflow automation CLI — scaffold, audit, fix, and ship projects with one tool."
9
+ readme = "README.md"
10
+ license = {text = "Proprietary"}
11
+ requires-python = ">=3.9"
12
+ authors = [{name = "Kryptorious Quantum Biosciences, Inc."}]
13
+ keywords = ["cli", "developer-tools", "productivity", "scaffold", "code-quality", "automation"]
14
+ classifiers = [
15
+ "Development Status :: 5 - Production/Stable",
16
+ "Intended Audience :: Developers",
17
+ "Topic :: Software Development :: Build Tools",
18
+ "Topic :: Software Development :: Quality Assurance",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ ]
26
+
27
+ dependencies = [
28
+ "click>=8.0",
29
+ "rich>=13.0",
30
+ "pyyaml>=6.0",
31
+ "tomli>=2.0; python_version < '3.11'",
32
+ "gitpython>=3.1",
33
+ "packaging>=23.0",
34
+ ]
35
+
36
+ [project.optional-dependencies]
37
+ dev = ["pytest>=7.0", "pytest-cov>=4.0", "black>=23.0", "ruff>=0.1"]
38
+
39
+ [project.scripts]
40
+ devflow = "devflow.cli:main"
41
+
42
+ [project.urls]
43
+ Homepage = "https://devflow.sh"
44
+ Repository = "https://github.com/kryptorious/devflow"
45
+
46
+ [tool.setuptools.packages.find]
47
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ """DevFlow — Developer Workflow Automation CLI.
2
+
3
+ Scaffold, audit, fix, and ship projects with a single tool.
4
+ """
5
+
6
+ __version__ = "1.0.0"
@@ -0,0 +1,140 @@
1
+ """DevFlow CLI — main entry point."""
2
+
3
+ import click
4
+ from rich.console import Console
5
+ from rich import print as rprint
6
+
7
+ console = Console()
8
+
9
+
10
+ @click.group()
11
+ @click.version_option(version="1.0.0", prog_name="devflow")
12
+ def main():
13
+ """DevFlow — Developer Workflow Automation CLI.
14
+
15
+ The unified tool for project scaffolding, codebase auditing,
16
+ auto-fixing, and release shipping. One tool, four commands.
17
+ """
18
+ pass
19
+
20
+
21
+ @main.command()
22
+ @click.argument("name")
23
+ @click.option(
24
+ "--template", "-t",
25
+ type=click.Choice(["python", "node", "fullstack", "cli", "api", "lib"]),
26
+ default="python",
27
+ help="Project template type"
28
+ )
29
+ @click.option(
30
+ "--path", "-p",
31
+ default=".",
32
+ help="Parent directory for the new project"
33
+ )
34
+ @click.option("--docker/--no-docker", default=True, help="Include Docker config")
35
+ @click.option("--ci/--no-ci", default=True, help="Include CI/CD (GitHub Actions)")
36
+ @click.option("--git/--no-git", default=True, help="Initialize git repository")
37
+ @click.option("--license", "-l", default="MIT", help="License type")
38
+ @click.option("--description", "-d", default="", help="Project description")
39
+ def init(name, template, path, docker, ci, git, license, description):
40
+ """Scaffold a new project with best practices.
41
+
42
+ Creates a production-ready project structure with linting, formatting,
43
+ testing, CI/CD, Docker, and git — all configured out of the box.
44
+
45
+ \b
46
+ Examples:
47
+ devflow init my-api --template api
48
+ devflow init my-lib --template lib --no-docker
49
+ devflow init my-app --template fullstack --description "My SaaS app"
50
+ """
51
+ from .commands.init import run
52
+ run(name=name, template=template, path=path, docker=docker,
53
+ ci=ci, git_init=git, license_type=license, description=description)
54
+
55
+
56
+ @main.command()
57
+ @click.option(
58
+ "--path", "-p",
59
+ default=".",
60
+ help="Path to the project to audit"
61
+ )
62
+ @click.option(
63
+ "--format", "-f", "output_format",
64
+ type=click.Choice(["terminal", "markdown", "json"]),
65
+ default="terminal",
66
+ help="Output format"
67
+ )
68
+ @click.option(
69
+ "--severity", "-s",
70
+ type=click.Choice(["error", "warning", "info", "all"]),
71
+ default="all",
72
+ help="Minimum severity to show"
73
+ )
74
+ @click.option("--security/--no-security", default=True, help="Run security audit")
75
+ @click.option("--deps/--no-deps", default=True, help="Check dependencies")
76
+ def audit(path, output_format, severity, security, deps):
77
+ """Run a comprehensive codebase health check.
78
+
79
+ Checks linting, formatting, type checking, security vulnerabilities,
80
+ dependency freshness, documentation coverage, and test coverage.
81
+ Produces a detailed report with actionable recommendations.
82
+
83
+ \b
84
+ Examples:
85
+ devflow audit
86
+ devflow audit --format markdown --severity warning
87
+ devflow audit --no-security
88
+ """
89
+ from .commands.audit import run
90
+ run(path=path, output_format=output_format, severity=severity,
91
+ security=security, deps=deps)
92
+
93
+
94
+ @main.command()
95
+ @click.option("--path", "-p", default=".", help="Path to the project")
96
+ @click.option("--dry-run/--apply", default=False, help="Preview fixes without applying")
97
+ @click.option("--scope", "-s", type=click.Choice(["all", "format", "lint", "imports", "security"]), default="all", help="Fix scope")
98
+ def fix(path, dry_run, scope):
99
+ """Automatically fix common code issues.
100
+
101
+ Applies formatting, sorts imports, fixes lint violations,
102
+ and addresses common security issues. Use --dry-run to preview.
103
+
104
+ \b
105
+ Examples:
106
+ devflow fix --dry-run
107
+ devflow fix --scope format
108
+ devflow fix --apply
109
+ """
110
+ from .commands.fix import run
111
+ run(path=path, dry_run=dry_run, scope=scope)
112
+
113
+
114
+ @main.command()
115
+ @click.option("--path", "-p", default=".", help="Path to the project")
116
+ @click.option("--bump", "-b", type=click.Choice(["patch", "minor", "major"]), required=True, help="Version bump type")
117
+ @click.option("--message", "-m", default="", help="Release message for changelog")
118
+ @click.option("--dry-run/--execute", default=False, help="Preview release without executing")
119
+ @click.option("--tag/--no-tag", default=True, help="Create git tag")
120
+ @click.option("--push/--no-push", default=False, help="Push to remote")
121
+ def ship(path, bump, message, dry_run, tag, push):
122
+ """Prepare and execute a release.
123
+
124
+ Bumps version, updates changelog, creates git tag,
125
+ builds distribution packages, and optionally pushes.
126
+ Runs audit first to ensure quality gates pass.
127
+
128
+ \b
129
+ Examples:
130
+ devflow ship --bump patch --message "Bug fixes"
131
+ devflow ship --bump minor --dry-run
132
+ devflow ship --bump major --push --message "Breaking changes v2.0"
133
+ """
134
+ from .commands.ship import run
135
+ run(path=path, bump=bump, message=message, dry_run=dry_run,
136
+ tag=tag, push=push)
137
+
138
+
139
+ if __name__ == "__main__":
140
+ main()
@@ -0,0 +1 @@
1
+ """DevFlow commands package."""