articlib 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl
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 articlib might be problematic. Click here for more details.
- articlib/articFileUtils.py +4 -0
- articlib/articLogger.py +1 -1
- articlib/sqliteEngine.py +3 -3
- articlib/testEngine.py +2 -2
- {articlib-0.2.1.dist-info → articlib-0.2.3.dist-info}/METADATA +1 -1
- articlib-0.2.3.dist-info/RECORD +12 -0
- articlib-0.2.1.dist-info/RECORD +0 -12
- {articlib-0.2.1.dist-info → articlib-0.2.3.dist-info}/LICENSE +0 -0
- {articlib-0.2.1.dist-info → articlib-0.2.3.dist-info}/WHEEL +0 -0
articlib/articFileUtils.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import shutil
|
|
2
3
|
|
|
3
4
|
def deleteFile(path):
|
|
4
5
|
os.remove(path)
|
|
@@ -6,6 +7,9 @@ def deleteFile(path):
|
|
|
6
7
|
def createFile(path):
|
|
7
8
|
file = open (path, "r")
|
|
8
9
|
file.close()
|
|
10
|
+
|
|
11
|
+
def copyFile(source, destination):
|
|
12
|
+
shutil.copy(source, destination)
|
|
9
13
|
|
|
10
14
|
def fileExists(path):
|
|
11
15
|
return os.path.isfile(path)
|
articlib/articLogger.py
CHANGED
articlib/sqliteEngine.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import sqlite3
|
|
2
|
-
import articLogger as Logger
|
|
3
|
-
from articLogger import log
|
|
2
|
+
import articlib.articLogger as Logger
|
|
3
|
+
from articlib.articLogger import log
|
|
4
4
|
|
|
5
5
|
class sqliteEngine:
|
|
6
6
|
def __init__(self, dbPath):
|
|
@@ -24,7 +24,7 @@ class sqliteEngine:
|
|
|
24
24
|
self.executeCommand (f"INSERT INTO {table} ({columns}) VALUES ({values});")
|
|
25
25
|
|
|
26
26
|
def updateEntry (self, table, columns, values, condition):
|
|
27
|
-
self.executeCommand (f"UPDATE {table} SET {columns} = {values} WHERE {condition};")
|
|
27
|
+
self.executeCommand (f"UPDATE {table} SET {columns} = \"{values}\" WHERE {condition};")
|
|
28
28
|
|
|
29
29
|
def deleteEntry (self, table, condition):
|
|
30
30
|
self.executeCommand (f"DELETE FROM {table} WHERE {condition};")
|
articlib/testEngine.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import articLogger as logger
|
|
2
|
-
from consoleUtils import printRed, printGreen, printYellow, printMagenta, printGreenBold, printRedBold
|
|
1
|
+
import articlib.articLogger as logger
|
|
2
|
+
from articlib.consoleUtils import printRed, printGreen, printYellow, printMagenta, printGreenBold, printRedBold
|
|
3
3
|
|
|
4
4
|
class testEngine:
|
|
5
5
|
def __init__(self):
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
articlib/articFileUtils.py,sha256=slaNatD4wO_T5uecfOv7qcMDWegZ2t-V3go5hcv9z38,1396
|
|
2
|
+
articlib/articLogger.py,sha256=GqtO1_Mz1-Vu7aIO9CjJCzHflWNkRDtIy4uZsfneKvc,3072
|
|
3
|
+
articlib/consoleUtils.py,sha256=cXf9omWUAg66a_uCz5Yoi20nWB9Cmd6FaiE6ZgPcchw,980
|
|
4
|
+
articlib/dateTime.py,sha256=IGFuD9dluD2vhurfPVBz0FlOmKpiWTqqUFWWKN55uAw,4020
|
|
5
|
+
articlib/dice.py,sha256=TQI1PKyvXekwUPB2n3fMuvnW8lVlV7TmtWjBSLYlw0s,772
|
|
6
|
+
articlib/sqliteEngine.py,sha256=MYVMzippQ6rEwj3_WPlOaP3uTA1Pk-c0Fp8vrcwUKGk,2509
|
|
7
|
+
articlib/systemUtils.py,sha256=-XKMGSxi8UCDEdYrZCUnLwpO1SVKWzP0jmvbYbH9QW8,838
|
|
8
|
+
articlib/testEngine.py,sha256=uoRr4FkAvRrvtB9g-mKc1KSspoka0eEBy_X0vSJ3eUA,4502
|
|
9
|
+
articlib-0.2.3.dist-info/LICENSE,sha256=NiJJ2y6nD9BVS9EdxmP4lbFxjoNE3CIvx4PaquX5Dvs,1094
|
|
10
|
+
articlib-0.2.3.dist-info/METADATA,sha256=7DL2BWxEE9WPvTrbqMkhQAtdOgAgwSiXg5SaQJ56yvQ,1958
|
|
11
|
+
articlib-0.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
+
articlib-0.2.3.dist-info/RECORD,,
|
articlib-0.2.1.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
articlib/articFileUtils.py,sha256=eA82MND8mTh_mrTVb4rYdZiTk6lG-a-n3zHeOAgkjHg,1301
|
|
2
|
-
articlib/articLogger.py,sha256=bQF64vNMEBG3rDLzo2-rXRraLQ-0brbGzBDDUWtlmUk,3051
|
|
3
|
-
articlib/consoleUtils.py,sha256=cXf9omWUAg66a_uCz5Yoi20nWB9Cmd6FaiE6ZgPcchw,980
|
|
4
|
-
articlib/dateTime.py,sha256=IGFuD9dluD2vhurfPVBz0FlOmKpiWTqqUFWWKN55uAw,4020
|
|
5
|
-
articlib/dice.py,sha256=TQI1PKyvXekwUPB2n3fMuvnW8lVlV7TmtWjBSLYlw0s,772
|
|
6
|
-
articlib/sqliteEngine.py,sha256=-hNiQ3GusA6T4ukhKFgRMc5YedVn89s6kg5LkAwOOhg,2487
|
|
7
|
-
articlib/systemUtils.py,sha256=-XKMGSxi8UCDEdYrZCUnLwpO1SVKWzP0jmvbYbH9QW8,838
|
|
8
|
-
articlib/testEngine.py,sha256=u7MKAyXliPH8v8WAMKvS1Okt2xPOl2o7SUx8BbJ3oiE,4484
|
|
9
|
-
articlib-0.2.1.dist-info/LICENSE,sha256=NiJJ2y6nD9BVS9EdxmP4lbFxjoNE3CIvx4PaquX5Dvs,1094
|
|
10
|
-
articlib-0.2.1.dist-info/METADATA,sha256=Ju1Q08gwAPW4DtgMXXKUFoIBFy-XGzXhJCN8nf3Jjk4,1958
|
|
11
|
-
articlib-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
-
articlib-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|