libjam 0.0.4__py3-none-any.whl → 0.0.6__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.
libjam/notebook.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Imports
|
2
|
-
import os, tomllib, configparser
|
2
|
+
import os, tomllib, configparser, json
|
3
3
|
from .drawer import Drawer
|
4
4
|
|
5
5
|
# Jam classes
|
@@ -76,3 +76,11 @@ class Notebook:
|
|
76
76
|
parser[section][var_name] = value
|
77
77
|
with open(ini_file, 'w') as file:
|
78
78
|
parser.write(file)
|
79
|
+
|
80
|
+
def read_json(self, json_file: str):
|
81
|
+
if drawer.is_file(json_file) is False:
|
82
|
+
return None
|
83
|
+
json_file = os.path.normpath(json_file)
|
84
|
+
with open(json_file) as json_data:
|
85
|
+
data = json.load(json_data)
|
86
|
+
return data
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: libjam
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: A library jam for Python.
|
5
5
|
Project-URL: Homepage, https://github.com/philippkosarev/libjam
|
6
6
|
Project-URL: Issues, https://github.com/philippkosarev/libjam/issues
|
@@ -9,7 +9,7 @@ License-Expression: GPL-2.0
|
|
9
9
|
License-File: LICENSE
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
12
|
-
Requires-Python: >=3.
|
12
|
+
Requires-Python: >=3.12.0
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
|
15
15
|
# libjam
|
@@ -3,9 +3,9 @@ libjam/captain.py,sha256=igx-ecKJBI_vBN-pW7KmSEnmYMIHQEb9tFzpy5qHmI8,5636
|
|
3
3
|
libjam/clipboard.py,sha256=5HxlO8ztLJPlnSCq4PncGvY4JGc9C4J2uHcepjC6zmg,3496
|
4
4
|
libjam/drawer.py,sha256=6LHAKzsBrBMQYoN1GkToa_zcgQFCx4PjRXsUT4vnkQ8,11069
|
5
5
|
libjam/flashcard.py,sha256=ulV4KPC3BRWLxwkQ87vsY0aM38nYpzOjUOISxTIRVDg,437
|
6
|
-
libjam/notebook.py,sha256=
|
6
|
+
libjam/notebook.py,sha256=oakyiRgX70qHX8h5hOicT1bYksZvwZH7iB9FJmqYS-I,2808
|
7
7
|
libjam/typewriter.py,sha256=waKY1sDxGzI2ZT5dSzFmLGbaNTIpEM5Zhg_OlPFUAng,3730
|
8
|
-
libjam-0.0.
|
9
|
-
libjam-0.0.
|
10
|
-
libjam-0.0.
|
11
|
-
libjam-0.0.
|
8
|
+
libjam-0.0.6.dist-info/METADATA,sha256=evrYFUxNJ3Cf4XmBd5HC1DbXNPvJmNtybJ3XCF1KS-o,2001
|
9
|
+
libjam-0.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
libjam-0.0.6.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
11
|
+
libjam-0.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|