run-git 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.
Files changed (38) hide show
  1. run_git-1.0.0/.github/workflows/publish.yml +38 -0
  2. run_git-1.0.0/.github/workflows/quality.yml +37 -0
  3. run_git-1.0.0/.github/workflows/tests.yml +38 -0
  4. run_git-1.0.0/.gitignore +58 -0
  5. run_git-1.0.0/CHANGELOG.md +14 -0
  6. run_git-1.0.0/CONTRIBUTING.md +26 -0
  7. run_git-1.0.0/LICENSE +21 -0
  8. run_git-1.0.0/MANIFEST.in +4 -0
  9. run_git-1.0.0/PKG-INFO +260 -0
  10. run_git-1.0.0/QUICKSTART.md +23 -0
  11. run_git-1.0.0/README.md +222 -0
  12. run_git-1.0.0/gitpush/__init__.py +10 -0
  13. run_git-1.0.0/gitpush/__main__.py +7 -0
  14. run_git-1.0.0/gitpush/cli.py +502 -0
  15. run_git-1.0.0/gitpush/config/__init__.py +3 -0
  16. run_git-1.0.0/gitpush/config/templates/.gitignore +64 -0
  17. run_git-1.0.0/gitpush/core/__init__.py +3 -0
  18. run_git-1.0.0/gitpush/core/commit_generator.py +151 -0
  19. run_git-1.0.0/gitpush/core/conflict_resolver.py +185 -0
  20. run_git-1.0.0/gitpush/core/git_operations.py +277 -0
  21. run_git-1.0.0/gitpush/ui/__init__.py +3 -0
  22. run_git-1.0.0/gitpush/ui/banner.py +58 -0
  23. run_git-1.0.0/gitpush/ui/interactive.py +170 -0
  24. run_git-1.0.0/gitpush/utils/__init__.py +3 -0
  25. run_git-1.0.0/pyproject.toml +56 -0
  26. run_git-1.0.0/pytest.ini +12 -0
  27. run_git-1.0.0/requirements.txt +7 -0
  28. run_git-1.0.0/run_git.egg-info/PKG-INFO +260 -0
  29. run_git-1.0.0/run_git.egg-info/SOURCES.txt +36 -0
  30. run_git-1.0.0/run_git.egg-info/dependency_links.txt +1 -0
  31. run_git-1.0.0/run_git.egg-info/entry_points.txt +2 -0
  32. run_git-1.0.0/run_git.egg-info/requires.txt +7 -0
  33. run_git-1.0.0/run_git.egg-info/top_level.txt +2 -0
  34. run_git-1.0.0/setup.cfg +4 -0
  35. run_git-1.0.0/setup.py +53 -0
  36. run_git-1.0.0/tests/__init__.py +3 -0
  37. run_git-1.0.0/tests/test_basic.py +99 -0
  38. run_git-1.0.0/tests/test_comprehensive.py +189 -0
@@ -0,0 +1,38 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch: # Manual trigger option
7
+
8
+ jobs:
9
+ build-and-publish:
10
+ name: Build and publish to PyPI
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.10'
21
+
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install build twine
26
+
27
+ - name: Build package
28
+ run: python -m build
29
+
30
+ - name: Check package
31
+ run: twine check dist/*
32
+
33
+ - name: Publish to PyPI
34
+ env:
35
+ TWINE_USERNAME: __token__
36
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
37
+ run: |
38
+ twine upload dist/*
@@ -0,0 +1,37 @@
1
+ name: Code Quality
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, develop ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ lint:
11
+ name: Lint and Format Check
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v4
20
+ with:
21
+ python-version: '3.10'
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install black flake8 pylint
27
+
28
+ - name: Check formatting with Black
29
+ run: |
30
+ black --check gitpush/
31
+ continue-on-error: true
32
+
33
+ - name: Lint with flake8
34
+ run: |
35
+ flake8 gitpush/ --count --select=E9,F63,F7,F82 --show-source --statistics
36
+ flake8 gitpush/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
+ continue-on-error: true
@@ -0,0 +1,38 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, develop ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ name: Test on Python ${{ matrix.python-version }}
12
+ runs-on: ${{ matrix.os }}
13
+
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: [ubuntu-latest]
18
+ python-version: ['3.9', '3.10', '3.11']
19
+
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v3
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install -e .
33
+ pip install pytest pytest-cov
34
+
35
+ - name: Run tests
36
+ run: |
37
+ pytest tests/ -v --cov=gitpush --cov-report=term
38
+ continue-on-error: true
@@ -0,0 +1,58 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ env/
8
+ venv/
9
+ ENV/
10
+ build/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+ MANIFEST
26
+
27
+ # Virtual environments
28
+ venv/
29
+ ENV/
30
+ env/
31
+
32
+ # IDE
33
+ .vscode/
34
+ .idea/
35
+ *.swp
36
+ *.swo
37
+ *~
38
+ .DS_Store
39
+
40
+ # Testing
41
+ .coverage
42
+ htmlcov/
43
+ .pytest_cache/
44
+ .tox/
45
+
46
+ # Distribution
47
+ dist/
48
+ build/
49
+ *.egg-info/
50
+
51
+ # Private Documentation (for developer only - NOT for GitHub)
52
+ INSTALL.md
53
+ PUBLISHING_GUIDE.md
54
+ PROJECT_OVERVIEW.md
55
+ DEPLOYMENT_GUIDE.md
56
+ QUICK_DEPLOY.md
57
+ build_and_publish.sh
58
+ PRIVATE_DOCS_README.md
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## [1.0.0] - 2026
4
+
5
+ ### Added
6
+ - 🎉 Initial release of gitpush
7
+ - ⚡ Quick push command
8
+ - 🤖 Intelligent commit messages
9
+ - 🔀 Interactive conflict resolution
10
+ - 🌿 Branch management
11
+ - 📊 Beautiful terminal UI
12
+ - 🔐 Sensitive file detection
13
+
14
+ Created by: Himanshu Kumar (@himanshu231204)
@@ -0,0 +1,26 @@
1
+ # Contributing to GITPUSH
2
+
3
+ Thank you for considering contributing! 🎉
4
+
5
+ ## How to Contribute
6
+
7
+ 1. Fork the repository
8
+ 2. Create your feature branch (`gitpush branch feature/amazing`)
9
+ 3. Commit your changes (`gitpush push`)
10
+ 4. Open a Pull Request
11
+
12
+ ## Reporting Bugs
13
+
14
+ Open an issue on GitHub with:
15
+ - Bug description
16
+ - Steps to reproduce
17
+ - Expected vs actual behavior
18
+
19
+ ## Suggesting Features
20
+
21
+ Open an issue with:
22
+ - Feature description
23
+ - Use cases
24
+ - Examples
25
+
26
+ Created by: Himanshu Kumar (@himanshu231204)
run_git-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Himanshu Kumar
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,4 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ recursive-include gitpush/config/templates *
run_git-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.4
2
+ Name: run-git
3
+ Version: 1.0.0
4
+ Summary: Git Made Easy - One Command To Rule Them All
5
+ Home-page: https://github.com/himanshu231204/gitpush
6
+ Author: Himanshu Kumar
7
+ Author-email: Himanshu Kumar <himanshu231204@gmail.com>
8
+ License: MIT
9
+ Project-URL: Homepage, https://github.com/himanshu231204/gitpush
10
+ Project-URL: Documentation, https://github.com/himanshu231204/gitpush#readme
11
+ Project-URL: Repository, https://github.com/himanshu231204/gitpush
12
+ Project-URL: Bug Tracker, https://github.com/himanshu231204/gitpush/issues
13
+ Keywords: git,cli,automation,version-control,developer-tools
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Topic :: Software Development :: Version Control :: Git
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Operating System :: OS Independent
24
+ Requires-Python: >=3.8
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: click>=8.0.0
28
+ Requires-Dist: rich>=13.0.0
29
+ Requires-Dist: GitPython>=3.1.0
30
+ Requires-Dist: PyGithub>=1.59.0
31
+ Requires-Dist: questionary>=1.10.0
32
+ Requires-Dist: pyyaml>=6.0
33
+ Requires-Dist: requests>=2.28.0
34
+ Dynamic: author
35
+ Dynamic: home-page
36
+ Dynamic: license-file
37
+ Dynamic: requires-python
38
+
39
+ # RUN-GIT - Git Made Easy 🚀
40
+
41
+ ```
42
+ ╭━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╮
43
+ ┃ ┃
44
+ ┃ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ██╗████████╗ ┃
45
+ ┃ ██╔══██╗██║ ██║████╗ ██║ ██╔════╝ ██║╚══██╔══╝ ┃
46
+ ┃ ██████╔╝██║ ██║██╔██╗ ██║ ██║ ███╗██║ ██║ ┃
47
+ ┃ ██╔══██╗██║ ██║██║╚██╗██║ ██║ ██║██║ ██║ ┃
48
+ ┃ ██║ ██║╚██████╔╝██║ ╚████║ ╚██████╔╝██║ ██║ ┃
49
+ ┃ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ┃
50
+ ┃ ┃
51
+ ┃ ═══════════════════════════════════════════════════════════ ┃
52
+ ┃ ┃
53
+ ┃ ⚡ Git Operations Made Effortless ┃
54
+ ┃ 🎯 One Command | Zero Hassle | Full Control ┃
55
+ ┃ ┃
56
+ ┃ ┌──────────────────────────────────────────────────────────┐ ┃
57
+ ┃ │ Developer : Himanshu Kumar │ ┃
58
+ ┃ │ GitHub : @himanshu231204 │ ┃
59
+ ┃ │ Repository : github.com/himanshu231204/gitpush │ ┃
60
+ ┃ │ Version : v1.0.0 │ ┃
61
+ ┃ │ License : MIT │ ┃
62
+ ┃ └──────────────────────────────────────────────────────────┘ ┃
63
+ ┃ ┃
64
+ ┃ Type 'run-git help' to get started ┃
65
+ ┃ ┃
66
+ ╰━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╯
67
+ ```
68
+
69
+ [![PyPI version](https://badge.fury.io/py/run-git.svg)](https://badge.fury.io/py/run-git)
70
+ [![Tests](https://github.com/himanshu231204/gitpush/workflows/Tests/badge.svg)](https://github.com/himanshu231204/gitpush/actions)
71
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
72
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
73
+
74
+ **One Command To Rule Them All**
75
+
76
+ RUN-GIT is the ultimate Git automation tool designed to make Git operations effortless for developers of all skill levels. Say goodbye to complex Git commands and hello to simplicity!
77
+
78
+ Created by **Himanshu Kumar** ([@himanshu231204](https://github.com/himanshu231204))
79
+
80
+ ---
81
+
82
+ ## 🎯 Features
83
+
84
+ - ⚡ **Quick Push**: One command to add, commit, pull, and push
85
+ - 🤖 **Auto Commit Messages**: Intelligent commit message generation
86
+ - 🔀 **Interactive Conflict Resolution**: Easy-to-use conflict handling
87
+ - 🌿 **Branch Management**: Create, switch, delete, and merge branches effortlessly
88
+ - 📊 **Beautiful Status Display**: Rich terminal UI with colors and tables
89
+ - 🔐 **Sensitive File Detection**: Warns about .env, secrets, and credentials
90
+ - 🎨 **Interactive Mode**: Full TUI menu for all operations
91
+
92
+ ---
93
+
94
+ ## 📦 Installation
95
+
96
+ ```bash
97
+ pip install run-git
98
+ ```
99
+
100
+ ---
101
+
102
+ ## 🚀 Quick Start
103
+
104
+ ### 1. Initialize Repository
105
+ ```bash
106
+ # New repository
107
+ run-git init
108
+
109
+ # Clone existing repository
110
+ run-git init https://github.com/user/repo.git
111
+ ```
112
+
113
+ ### 2. Quick Push (Most Common Use Case)
114
+ ```bash
115
+ # Add, commit, pull, and push in one command!
116
+ run-git push
117
+
118
+ # With custom commit message
119
+ run-git push -m "Add new feature"
120
+ ```
121
+
122
+ ### 3. Interactive Mode
123
+ ```bash
124
+ # Just type run-git for interactive menu
125
+ run-git
126
+ ```
127
+
128
+ ---
129
+
130
+ ## 📖 Usage
131
+
132
+ ### Basic Commands
133
+
134
+ ```bash
135
+ # Push changes
136
+ run-git push
137
+
138
+ # View status
139
+ run-git status
140
+
141
+ # View commit history
142
+ run-git log
143
+
144
+ # Branch operations
145
+ run-git branch # List branches
146
+ run-git branch feature-x # Create branch
147
+ run-git switch main # Switch branch
148
+ run-git merge feature-x # Merge branch
149
+
150
+ # Remote management
151
+ run-git remote # Show remotes
152
+ run-git remote origin --add https://github.com/user/repo.git
153
+
154
+ # Advanced
155
+ run-git pull # Pull changes
156
+ run-git sync # Pull + Push
157
+ run-git stash # Stash changes
158
+ run-git undo # Undo last commit
159
+ ```
160
+
161
+ ---
162
+
163
+ ## 🤖 Auto Commit Messages
164
+
165
+ RUN-GIT generates intelligent commit messages based on your changes:
166
+
167
+ - `feat: add authentication module (3 added)`
168
+ - `fix: update user validation (2 modified)`
169
+ - `docs: update README (1 modified)`
170
+ - `refactor: remove deprecated code (2 deleted)`
171
+
172
+ ---
173
+
174
+ ## 🎯 Use Cases
175
+
176
+ ### For Beginners
177
+ - No need to remember complex Git commands
178
+ - Interactive menus guide you through operations
179
+ - Auto-generated commit messages
180
+
181
+ ### For Experienced Developers
182
+ - Fast one-command push workflow
183
+ - Customizable commit messages
184
+ - Time-saving automation
185
+
186
+ ---
187
+
188
+ ## 📚 Command Reference
189
+
190
+ | Command | Description |
191
+ |---------|-------------|
192
+ | `run-git` | Interactive mode |
193
+ | `run-git push` | Quick push (add, commit, pull, push) |
194
+ | `run-git init` | Initialize repository |
195
+ | `run-git status` | Show repository status |
196
+ | `run-git log` | Show commit history |
197
+ | `run-git branch` | List branches |
198
+ | `run-git switch <name>` | Switch branch |
199
+ | `run-git merge <name>` | Merge branch |
200
+ | `run-git remote` | Show remotes |
201
+ | `run-git pull` | Pull changes |
202
+ | `run-git sync` | Pull and push |
203
+ | `run-git stash` | Stash changes |
204
+ | `run-git undo` | Undo last commit |
205
+ | `run-git --help` | Show help |
206
+ | `run-git --version` | Show version |
207
+
208
+ ---
209
+
210
+ ## 🤝 Contributing
211
+
212
+ Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
213
+
214
+ ---
215
+
216
+ ## 📝 License
217
+
218
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
219
+
220
+ ---
221
+
222
+ ## 👨‍💻 Author
223
+
224
+ **Himanshu Kumar**
225
+ - GitHub: [@himanshu231204](https://github.com/himanshu231204)
226
+ - Created with ❤️ for the developer community
227
+
228
+ ---
229
+
230
+ ## 🌟 Show Your Support
231
+
232
+ If you find RUN-GIT helpful, please:
233
+ - ⭐ Star the repository
234
+ - 🐛 Report bugs
235
+ - 💡 Suggest new features
236
+ - 🔀 Contribute code
237
+
238
+ ---
239
+
240
+ ## 📊 Why RUN-GIT?
241
+
242
+ ### The Problem
243
+ Git is powerful but complex. Beginners struggle with:
244
+ - Remembering command sequences
245
+ - Handling merge conflicts
246
+ - Writing good commit messages
247
+ - Managing branches
248
+
249
+ ### The Solution
250
+ RUN-GIT provides:
251
+ - ✅ One command for common workflows
252
+ - ✅ Interactive conflict resolution
253
+ - ✅ Auto-generated commit messages
254
+ - ✅ Beautiful terminal UI
255
+ - ✅ Safety features
256
+ - ✅ Zero learning curve
257
+
258
+ ---
259
+
260
+ **Made with ❤️ by Himanshu Kumar | Making Git Easy for Everyone**
@@ -0,0 +1,23 @@
1
+ # GITPUSH Quick Start Guide
2
+
3
+ Welcome to GITPUSH! Get started in 2 minutes.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install gitpush
9
+ ```
10
+
11
+ ## Your First Push
12
+
13
+ ```bash
14
+ cd your-project
15
+ gitpush init
16
+ gitpush push
17
+ ```
18
+
19
+ Done! 🎉
20
+
21
+ ---
22
+
23
+ Created by Himanshu Kumar (@himanshu231204)