autocommitbot 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,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: autocommitbot
3
+ Version: 1.0.0
4
+ Summary: Automatic GitHub commit bot that logs developer activity.
5
+ Author: Rohit
6
+ Requires-Dist: typer
7
+ Requires-Dist: rich
8
+ Requires-Dist: requests
9
+ Requires-Dist: gitpython
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: autocommitbot
3
+ Version: 1.0.0
4
+ Summary: Automatic GitHub commit bot that logs developer activity.
5
+ Author: Rohit
6
+ Requires-Dist: typer
7
+ Requires-Dist: rich
8
+ Requires-Dist: requests
9
+ Requires-Dist: gitpython
@@ -0,0 +1,9 @@
1
+ cli.py
2
+ pyproject.toml
3
+ setup.py
4
+ autocommitbot.egg-info/PKG-INFO
5
+ autocommitbot.egg-info/SOURCES.txt
6
+ autocommitbot.egg-info/dependency_links.txt
7
+ autocommitbot.egg-info/entry_points.txt
8
+ autocommitbot.egg-info/requires.txt
9
+ autocommitbot.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ autocommit = cli:app
@@ -0,0 +1,4 @@
1
+ typer
2
+ rich
3
+ requests
4
+ gitpython
@@ -0,0 +1,71 @@
1
+ import typer
2
+ from rich.console import Console
3
+ import subprocess
4
+ import os
5
+ import sys
6
+
7
+ app = typer.Typer()
8
+ console = Console()
9
+
10
+ # Get project directory
11
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
12
+
13
+
14
+ @app.command()
15
+ def setup():
16
+ """Run repository setup"""
17
+ console.print("[cyan]Running setup...[/cyan]")
18
+
19
+ script = os.path.join(BASE_DIR, "setup_repos.py")
20
+
21
+ subprocess.run([sys.executable, script])
22
+
23
+
24
+ @app.command()
25
+ def run():
26
+ """Run auto commit bot"""
27
+ console.print("[green]Starting auto commit bot...[/green]")
28
+
29
+ script = os.path.join(BASE_DIR, "auto_commit.py")
30
+
31
+ subprocess.run([sys.executable, script])
32
+
33
+ @app.command()
34
+ def start():
35
+ """Run bot manually"""
36
+ subprocess.run([sys.executable, os.path.join(BASE_DIR, "auto_commit.py")])
37
+
38
+
39
+ @app.command()
40
+ def disable():
41
+ subprocess.run(["schtasks", "/delete", "/tn", "AutoCommitBot", "/f"])
42
+
43
+ @app.command()
44
+ def enable():
45
+ from scheduler import create_startup_task
46
+ create_startup_task()
47
+
48
+
49
+ @app.command()
50
+ def status():
51
+ """Show configured repositories"""
52
+
53
+ import json
54
+
55
+ config_path = os.path.join(BASE_DIR, "config.json")
56
+
57
+ try:
58
+ with open(config_path) as f:
59
+ config = json.load(f)
60
+
61
+ console.print("\nConfigured repositories:\n")
62
+
63
+ for repo in config["repositories"]:
64
+ console.print(f"• {repo}")
65
+
66
+ except:
67
+ console.print("[red]No configuration found. Run 'autocommit setup' first.[/red]")
68
+
69
+
70
+ if __name__ == "__main__":
71
+ app()
@@ -0,0 +1,17 @@
1
+ [project]
2
+ name = "autocommitbot"
3
+ version = "1.0.0"
4
+ description = "Automatic GitHub commit bot that logs developer activity."
5
+ authors = [
6
+ {name = "Rohit"}
7
+ ]
8
+
9
+ dependencies = [
10
+ "typer",
11
+ "rich",
12
+ "requests",
13
+ "gitpython"
14
+ ]
15
+
16
+ [project.scripts]
17
+ autocommit = "cli:app"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,13 @@
1
+ from setuptools import setup
2
+
3
+ setup(
4
+ name="autocommitbot",
5
+ version="1.0",
6
+ py_modules=["cli"],
7
+ install_requires=["typer", "rich"],
8
+ entry_points={
9
+ "console_scripts": [
10
+ "autocommit=cli:app",
11
+ ],
12
+ },
13
+ )