semvec/pypi-packages huggingface dataset:
kubebuild 1.1.0
Kubebuild - Kubernetes YAML Generator and Deployment Tool
Requires Python: >=3.6

# KubeBuild - Kubernetes YAML Generator and Deployment Tool

KubeBuild is a command-line tool designed to simplify the process of creating Kubernetes YAML files for various Kubernetes resources and deploying them into your Kubernetes clusters. It's a valuable tool for both developers and Site Reliability Engineers (SREs).

## Installation  🛠️

You can install KubeBuild via pip:

```bash
pip install kubebuild
```

### Usage 📋

### KubeBuild init  🚀

The init command helps you create Kubernetes YAML files for different resources interactively. It supports the following resources:

- Namespace
- Deployment
- Service
- Ingress
- ConfigMap
- Secret

Example:

```bash
kubebuild init
```
### Screenshot 📷:

![Kubebuild init](images/kubebuild_init.png)

-----
### KubeBuild deploy  🚢

The deploy command allows you to deploy previously generated Kubernetes YAML files into your Kubernetes cluster. It lists available YAML files in the current directory and lets you choose which one to deploy.

Example:

```bash
kubebuild deploy
```

### Screenshot 📷:

![Kubebuild deploy](images/kubebuild_deploy.png)

-----

### KubeBuild version 📌
The version command displays the current version of KubeBuild.

Example:

```bash
kubebuild version
```
### Screenshot 📷:

![Kubebuild version](images/kubebuild_version.png)

### Feedback and Contributions 🤝
KubeBuild is an open-source project, and we welcome contributions and feedback from the community. Feel free to report issues, suggest improvements, or contribute to the project on GitHub: KubeBuild GitHub Repository.

Happy Kubernetes resource management with KubeBuild! 🎉
gitlogs-mohanchinnappan 0.0.11
Packgage to provide git logs in csv
Requires Python: >=3.7

## Python package for reading git logs

### Example usage:

```py
import argparse
import webbrowser
from datetime import datetime

import get_git_logs as gl

# Example
# python example_gl.py --git_folder  <git_folder>  --from_date 2023-08-01 --output_csv ~/git-functions/commit_logs.csv
def main():
    parser = argparse.ArgumentParser(description='List Git commit logs for a given folder')
    parser.add_argument('--git_folder', type=str, help='Path to the Git repository folder')
    parser.add_argument('--from_date', type=str, help='Filter commits from the specified date (YYYY-MM-DD)')
    parser.add_argument('--output_csv', type=str, help='Specify the output CSV file')
    args = parser.parse_args()

    git_folder = args.git_folder
    from_date_str = args.from_date
    from_date = datetime.strptime(from_date_str, '%Y-%m-%d') if from_date_str else None
    commit_logs = gl.get_git_commit_logs(git_folder, from_date)

    if args.output_csv:
        output_csv = args.output_csv
        gl.save_to_csv(commit_logs, output_csv)
        print(f'Commit logs saved to {output_csv}')
        
        # Copy CSV content to clipboard
        with open(output_csv, 'r') as csv_file:
            csv_content = csv_file.read()
            gl.copy_to_clipboard(csv_content)
            print('CSV content copied to clipboard')

        # Open the specified URL with the CSV data
        web_url = f'https://mohan-chinnappan-n5.github.io/viz/datatable/dt.html?c=csv'
        webbrowser.open(web_url)

    else:
        print('Commit Logs:')
        for commit in commit_logs:
            print(commit)

main()
```