devpulse-tui 0.1.2__tar.gz → 0.1.3__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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 0xRoy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devpulse-tui
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Developer-focused Linux observability dashboard
5
5
  Author: eyeblech
6
6
  Requires-Python: >=3.9
7
7
  Description-Content-Type: text/markdown
8
+ License-File: LICENSE
8
9
  Requires-Dist: rich
9
10
  Requires-Dist: psutil
10
11
  Requires-Dist: typer
@@ -12,6 +13,7 @@ Requires-Dist: sqlalchemy
12
13
  Requires-Dist: GitPython
13
14
  Requires-Dist: py3nvml
14
15
  Requires-Dist: readchar
16
+ Dynamic: license-file
15
17
  Dynamic: requires-python
16
18
 
17
19
 
@@ -1,5 +1,6 @@
1
1
  from datetime import datetime
2
2
  from pathlib import Path
3
+
3
4
  from sqlalchemy import (
4
5
  create_engine,
5
6
  Column,
@@ -20,10 +21,12 @@ class SystemStat(Base):
20
21
  __tablename__ = "system_stats"
21
22
 
22
23
  id = Column(Integer, primary_key=True)
24
+
23
25
  timestamp = Column(
24
26
  String,
25
27
  default=lambda: datetime.now().isoformat()
26
28
  )
29
+
27
30
  cpu = Column(Float)
28
31
  ram = Column(Float)
29
32
  disk = Column(Float)
@@ -37,18 +40,29 @@ class SystemStat(Base):
37
40
  branch = Column(String)
38
41
 
39
42
 
43
+ # ---------------------------------------------------
44
+ # Stable database location
45
+ # ~/.devpulse/devpulse.db
46
+ # ---------------------------------------------------
47
+
40
48
  DB_DIR = Path.home() / ".devpulse"
41
49
  DB_DIR.mkdir(exist_ok=True)
42
50
 
43
51
  DB_PATH = DB_DIR / "devpulse.db"
44
52
 
45
- engine = create_engine(f"sqlite:///{DB_PATH}")
53
+ engine = create_engine(
54
+ f"sqlite:///{DB_PATH}"
55
+ )
46
56
 
47
57
  SessionLocal = sessionmaker(bind=engine)
48
58
 
49
59
 
50
- def init_db():
51
- Base.metadata.create_all(engine)
60
+ # ---------------------------------------------------
61
+ # Auto-create tables
62
+ # ---------------------------------------------------
63
+
64
+ Base.metadata.create_all(bind=engine)
65
+
52
66
 
53
67
  def log_system_stats(
54
68
  cpu,
@@ -1,7 +1,6 @@
1
1
  import typer
2
2
 
3
3
  from devpulse.live import run_live_dashboard
4
- from devpulse.database import init_db
5
4
  from devpulse.stats import show_stats
6
5
  from devpulse.doctor import run_doctor
7
6
  app = typer.Typer(no_args_is_help=True)
@@ -28,5 +27,4 @@ def doctor():
28
27
  run_doctor()
29
28
 
30
29
  if __name__ == "__main__":
31
- init_db()
32
30
  app()
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devpulse-tui
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Developer-focused Linux observability dashboard
5
5
  Author: eyeblech
6
6
  Requires-Python: >=3.9
7
7
  Description-Content-Type: text/markdown
8
+ License-File: LICENSE
8
9
  Requires-Dist: rich
9
10
  Requires-Dist: psutil
10
11
  Requires-Dist: typer
@@ -12,6 +13,7 @@ Requires-Dist: sqlalchemy
12
13
  Requires-Dist: GitPython
13
14
  Requires-Dist: py3nvml
14
15
  Requires-Dist: readchar
16
+ Dynamic: license-file
15
17
  Dynamic: requires-python
16
18
 
17
19
 
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  setup.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devpulse-tui"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Developer-focused Linux observability dashboard"
9
9
  authors = [
10
10
  { name="eyeblech" }
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="devpulse-tui",
5
- version="0.1.2",
5
+ version="0.1.3",
6
6
  author="eyeblech",
7
7
  description="Real-time terminal dashboard for developers",
8
8
  long_description=open("README.md").read(),
File without changes
File without changes