drifTech-lib 0.4.0__tar.gz → 0.4.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.

Potentially problematic release.


This version of drifTech-lib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drifTech-lib
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Common files/functions across most drifTech software
5
5
  Author: driftbluestone
6
6
  Author-email: driftbluestone <driftbluestone@gmail.com>
@@ -8,7 +8,7 @@ build-backend = "uv_build"
8
8
 
9
9
  [project]
10
10
  name = "drifTech-lib"
11
- version = "0.4.0"
11
+ version = "0.4.2"
12
12
  description = "Common files/functions across most drifTech software"
13
13
  readme = "README.md"
14
14
  requires-python = ">=3.14"
@@ -8,7 +8,7 @@ build-backend = "uv_build"
8
8
 
9
9
  [project]
10
10
  name = "drifTech-lib"
11
- version = "0.4.0"
11
+ version = "0.4.2"
12
12
  authors = [{name = "driftbluestone", email = "driftbluestone@gmail.com"}]
13
13
  description = "Common files/functions across most drifTech software"
14
14
  readme = "README.md"
@@ -0,0 +1,2 @@
1
+ from . import db, jsonIO, ipc, logging
2
+ __all__ = ["db", "jsonIO", "ipc", "logging"]
@@ -1,12 +1,13 @@
1
1
  """
2
2
  Module for interacting with PostgreSQL
3
3
  """
4
- import psycopg, logging
4
+ import psycopg
5
5
  from typing import Any
6
6
  from psycopg import sql
7
- logger = logging.getLogger("db")
7
+ from . import logging
8
+ logger = logging.Logger("db")
8
9
 
9
- __all__ = ["SCHEMA", "start", "run", "single", "multiple", "insert", "delete", "get", "table"]
10
+ __all__ = ["SCHEMA", "start", "run", "single", "multiple", "insert", "delete", "get", "table", "logger"]
10
11
 
11
12
  SCHEMA: sql.Identifier = None
12
13
  cursor: psycopg.Cursor = None
@@ -1,6 +1,7 @@
1
- import asyncio, logging
2
- logger = logging.getLogger("ipc:client")
3
- __all__ = ["Connector"]
1
+ import asyncio
2
+ from .. import logging
3
+ logger = logging.Logger("ipc/client")
4
+ __all__ = ["Connector", "logger"]
4
5
 
5
6
  class Connector:
6
7
  """
@@ -1,7 +1,7 @@
1
- import asyncio, logging, sys
2
- logger = logging.getLogger("ipc:server")
3
- logging.basicConfig(stream=sys.stdout, level=logging.INFO)
4
- __all__ = ["Server", "connections"]
1
+ import asyncio
2
+ from .. import logging
3
+ logger = logging.Logger("ipc/server")
4
+ __all__ = ["Server", "connections", "logger"]
5
5
  Port = int
6
6
 
7
7
  conn_count = 1
@@ -69,7 +69,7 @@ class Server:
69
69
  except Exception as e:
70
70
  logger.error(f"[ERROR] Reading error: {e}")
71
71
 
72
- async def on_message(self):
72
+ async def on_message(self, message: bytes):
73
73
  """Override this function."""
74
74
  pass
75
75
 
@@ -96,5 +96,3 @@ class Server:
96
96
 
97
97
  except Exception as e:
98
98
  logger.error(f"Writing error: {e}")
99
-
100
- asyncio.run(Server().start())
@@ -1,2 +0,0 @@
1
- from . import db, jsonIO, ipc
2
- __all__ = ["db", "jsonIO", "ipc"]
File without changes
File without changes