libjam 0.0.4__tar.gz → 0.0.6__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: libjam
3
- Version: 0.0.4
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.13.0
12
+ Requires-Python: >=3.12.0
13
13
  Description-Content-Type: text/markdown
14
14
 
15
15
  # libjam
@@ -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
@@ -14,13 +14,13 @@ include = [
14
14
 
15
15
  [project]
16
16
  name = "libjam"
17
- version = "0.0.4"
17
+ version = "0.0.6"
18
18
  authors = [
19
19
  { name="Philipp Kosarev", email="philipp.kosarev@gmail.com" },
20
20
  ]
21
21
  description = "A library jam for Python."
22
22
  readme = "README.md"
23
- requires-python = ">=3.13.0"
23
+ requires-python = ">=3.12.0"
24
24
  classifiers = [
25
25
  "Programming Language :: Python :: 3",
26
26
  "Operating System :: OS Independent",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes