Skip to content

πŸ› οΈ Python-powered automation for Software πŸ’», Cloud ☁️, DevOps πŸ”§, and workflow optimization ⚑ β€” solving real-life problems by making complex tasks simple, scalable, and efficient.

Notifications You must be signed in to change notification settings

vineetson/Python-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Python Automation Hub

Welcome to the Python Automation Hub ! This repository is your go-to source for a growing collection of Python scripts designed to simplify, optimize, and automate tasks across various domainsβ€”from cloud infrastructure and DevOps to everyday workflows.


✨ Features

Our scripts are crafted to be simple, scalable, and efficient, helping you solve real-life problems one line of code at a time. Key features include:

  • πŸ”Ή Automate Repetitive Workflows : Say goodbye to manual, tedious tasks.
  • ☁️ Cloud Automation : Simplify infrastructure management on platforms like GCP , AWS , and more.
  • πŸ”§ DevOps Utilities : Streamline your CI/CD pipelines, scripting, and infrastructure setup.
  • ⚑ Real-World Problem-Solving : Practical solutions for real-world challenges.

πŸš€ Getting Started

πŸ“‚ Repository Structure

The repository is organized by GCP service, with each folder containing a specific automation script and its corresponding readme.md file.

.
β”œβ”€β”€ README.md                  # The main README file you are currently reading.
β”‚
└── Google Cloud Platform/
    β”œβ”€β”€ Cloud Storage/
    β”‚   β”œβ”€β”€ list_objects.py    # Lists all objects in a GCS bucket.
    β”‚   └── readme.md
    β”‚
    β”œβ”€β”€ GCP Firestore Document Finder by Prefix/
    β”‚   β”œβ”€β”€ GCP_firestore_doc_finder.py # Efficiently queries Firestore documents by ID prefix.
    β”‚   └── readme.md
    β”‚
    β”œβ”€β”€ GCS Move by date range/
    β”‚   β”œβ”€β”€ gcs_move_by_date.py # Moves GCS objects based on a specific date range.
    β”‚   └── readme.md
    β”‚
    └── GCS Move file within a bucket/
        β”œβ”€β”€ gcs_folder_move.py # Moves a single GCS object from one folder to another.
        └── readme.md

πŸ“ Scripts and Documentation

  • Cloud Storage
    • list_objects.py : A simple, yet robust script to list all files in a specified GCS bucket.
  • GCP Firestore Document Finder by Prefix
    • GCP_firestore_doc_finder.py : An optimized script that efficiently queries Firestore documents by ID prefix using a server-side range query, which is crucial for cost-effective operations on large datasets.
  • GCS Move by date range
    • gcs_move_by_date.py : A script designed for data lifecycle management, allowing you to move objects to a different location based on their creation date.
  • GCS Move file within a bucket
    • gcs_folder_move.py : An atomic and reliable script to move a single file from a source folder to a destination folder within the same bucket.

Getting up and running with any script in this repository is a breeze.

  1. Clone the Repository :
   git clone https://github.com/vineetson/Python-Automation.git
   cd Python-Automation
  1. Set Up Your Environment : Create a virtual environment to manage dependencies for each script.
   python3 -m venv venv
   # Activate on Linux / macOS
   source venv/bin/activate
   # Activate on Windows
   venv\Scripts\activate
  1. Install Dependencies : Navigate to the specific script's directory and install its dependencies from the requirements.txt file (if one exists).
   pip install -r requirements.txt
  1. Run an Automation Script : Execute the script with Python. Each script's local README.md will provide specific usage details.
   python script_name.py

🀝 Contributing

We welcome contributions! Your ideas and code can help grow this hub and make life easier for others. Here's how you can contribute:

  1. Fork the repository .
  2. Create a new branch : git checkout -b feature-name.
  3. Commit your changes : git commit -m 'feat: Add new automation script for X'.
  4. Push to your branch : git push origin feature-name.
  5. Open a Pull Request and describe your changes. We'll review it and merge it once it's ready. πŸŽ‰

πŸ“Œ Planned Automations

We have an exciting roadmap of automations planned. Feel free to open an Issue and suggest new ideas!

  • ☁️ Cloud Cleanup : Scripts to automatically identify and remove unused cloud resources to cut costs.
  • πŸ“Š Cloud Cost Optimization : Tools to track and provide insights into cloud spending.
  • πŸ”„ Log Rotation & Archival : Automate the handling and archival of system/application logs.
  • ⚑ CI/CD Pipeline Triggers : Scripts to automate deployments and pipeline triggers.
  • πŸ” Security Checks : Basic infrastructure security scans and compliance checks.
  • 🧹 Resource Health Monitoring : Simple monitoring and alerting scripts for cloud resources.

🌍 About

Built with ❀️ and Python to simplify complex tasks and make life easierβ€”one automation at a time.

About

πŸ› οΈ Python-powered automation for Software πŸ’», Cloud ☁️, DevOps πŸ”§, and workflow optimization ⚑ β€” solving real-life problems by making complex tasks simple, scalable, and efficient.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages