devpulse-tui 0.1.0__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devpulse-tui
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Developer-focused Linux observability dashboard
5
5
  Author: eyeblech
6
6
  Requires-Python: >=3.9
@@ -11,6 +11,7 @@ Requires-Dist: typer
11
11
  Requires-Dist: sqlalchemy
12
12
  Requires-Dist: GitPython
13
13
  Requires-Dist: py3nvml
14
+ Requires-Dist: readchar
14
15
  Dynamic: requires-python
15
16
 
16
17
 
@@ -1,4 +1,5 @@
1
1
  from datetime import datetime
2
+ from pathlib import Path
2
3
  from sqlalchemy import (
3
4
  create_engine,
4
5
  Column,
@@ -36,9 +37,12 @@ class SystemStat(Base):
36
37
  branch = Column(String)
37
38
 
38
39
 
39
- engine = create_engine(
40
- "sqlite:///devpulse.db"
41
- )
40
+ DB_DIR = Path.home() / ".devpulse"
41
+ DB_DIR.mkdir(exist_ok=True)
42
+
43
+ DB_PATH = DB_DIR / "devpulse.db"
44
+
45
+ engine = create_engine(f"sqlite:///{DB_PATH}")
42
46
 
43
47
  SessionLocal = sessionmaker(bind=engine)
44
48
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devpulse-tui
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Developer-focused Linux observability dashboard
5
5
  Author: eyeblech
6
6
  Requires-Python: >=3.9
@@ -11,6 +11,7 @@ Requires-Dist: typer
11
11
  Requires-Dist: sqlalchemy
12
12
  Requires-Dist: GitPython
13
13
  Requires-Dist: py3nvml
14
+ Requires-Dist: readchar
14
15
  Dynamic: requires-python
15
16
 
16
17
 
@@ -4,3 +4,4 @@ typer
4
4
  sqlalchemy
5
5
  GitPython
6
6
  py3nvml
7
+ readchar
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devpulse-tui"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Developer-focused Linux observability dashboard"
9
9
  authors = [
10
10
  { name="eyeblech" }
@@ -18,7 +18,8 @@ dependencies = [
18
18
  "typer",
19
19
  "sqlalchemy",
20
20
  "GitPython",
21
- "py3nvml"
21
+ "py3nvml",
22
+ "readchar",
22
23
  ]
23
24
 
24
25
  [project.scripts]
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="devpulse-tui",
5
- version="0.1.0",
5
+ version="0.1.2",
6
6
  author="eyeblech",
7
7
  description="Real-time terminal dashboard for developers",
8
8
  long_description=open("README.md").read(),
@@ -14,6 +14,7 @@ setup(
14
14
  "typer",
15
15
  "psutil",
16
16
  "sqlalchemy",
17
+ "readchar",
17
18
  ],
18
19
  entry_points={
19
20
  "console_scripts": [
File without changes
File without changes