Skip to main content

Automatic Git commit & push tool for Django projects

Project description

push-py 🚀

Python Git License

push-py is a simple and practical Python tool designed to automate Git push workflows.
This project aims to simplify repetitive Git-related tasks for developers.
push-py helps users stage changes, commit updates, and push code with minimal effort.
The tool is written entirely in Python and focuses on clarity and usability.
It is suitable for both beginners and experienced developers who work with Git daily.
Automatic Git commit & push tool for Django projects. auto push to github tool for django projects.


🎯 Features

  • Automates git add, git commit, and git push
  • Reduces repetitive Git commands
  • Simple and readable Python code
  • Customizable commit messages
  • Beginner-friendly structure
  • Easy to extend for advanced workflows
  • Auto commit & push
  • Semantic versioning
  • Internet connection detection
  • Log rotation
  • Safe git verification
  • maybe need to run before

📦 Requirements

Before using push-py, make sure you have:

  • Python 3.x
  • Git installed and configured
  • An initialized Git repository
  • Valid GitHub authentication (SSH or HTTPS)

Check versions:

python --version
git --version

⚙️ Installation

Clone the repository:

git clone https://github.com/sinalalebakhsh/push-py.git

Navigate to the project directory:

cd push-py

No external dependencies are required.
▶️ Usage

Basic usage example:

python push.py

Example Python logic used inside the script:

import os

commit_message = "Update project files"
os.system("git add .")
os.system(f'git commit -m "{commit_message}"')
os.system("git push")

You can modify the commit message or add more Git commands as needed.
This allows full control over your Git workflow.
📁 Project Structure

push-py/
│
├── push.py          # Main automation script
├── README.md        # Project documentation
└── LICENSE          # License information

🧠 Learning Purpose

push-py is also designed as an educational project.
It demonstrates how Python can interact with system commands.
Users can learn how to automate developer workflows using Python.
The code is intentionally kept simple and readable.
🤝 Contributing

Contributions are welcome!
You can:

    Report bugs via Issues

    Suggest improvements

    Submit Pull Requests

Please keep the code clean and well-documented.
📜 License

This project is licensed under the MIT License.
You are free to use, modify, and distribute this project.
⭐ Support

If you find this project useful, consider giving it a  on GitHub.
Thank you for using push-py and supporting open-source development!


#### Structure

git-auto-django/ ├── git_auto/ │ ├── init.py │ ├── main.py
│ └── version.py ← مدیریت نسخه ├── pyproject.toml ├── README.md ├── LICENSE └── .gitignore

---

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_auto_django-1.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_auto_django-1.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file git_auto_django-1.1.3.tar.gz.

File metadata

  • Download URL: git_auto_django-1.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for git_auto_django-1.1.3.tar.gz
Algorithm Hash digest
SHA256 735f37bd0b1d977cd88f6dc9937c269a9c06e490b9f7c4b7628e4000753bef85
MD5 6d954a4b054007815073b8e66150179d
BLAKE2b-256 3d52fc31fc2f862d633c128bbbeb6aa1cdcc55cbd8bb6a8ab9ebe1f9e459b9b4

See more details on using hashes here.

File details

Details for the file git_auto_django-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for git_auto_django-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73b07095d9590efc1c5235e3df958f428855d85a736a750b70d10274afb256a5
MD5 ec06a17c5f91e4b7b0ddd00144a6ab5b
BLAKE2b-256 4a0054d54b7316e473aebfbbbd6837a8c492ebccd3c83876e6c49686c2e9f157

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page