libjam 0.0.5__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.5
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
@@ -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,7 +14,7 @@ include = [
14
14
 
15
15
  [project]
16
16
  name = "libjam"
17
- version = "0.0.5"
17
+ version = "0.0.6"
18
18
  authors = [
19
19
  { name="Philipp Kosarev", email="philipp.kosarev@gmail.com" },
20
20
  ]
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