pyformatjson 0.0.2__tar.gz → 0.0.3__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: pyformatjson
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: pyformatjson
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,json
@@ -8,14 +8,9 @@ Author: NextAI
8
8
  Author-email: nextartifintell@gmail.com
9
9
  Maintainer: NextAI
10
10
  Maintainer-email: nextartifintell@gmail.com
11
- Requires-Python: >=3.8
11
+ Requires-Python: >=3.13
12
12
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
14
  Classifier: Programming Language :: Python :: 3.13
20
15
  Classifier: Programming Language :: Python :: 3.14
21
16
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -183,7 +183,9 @@ class WriteDataToMd(object):
183
183
 
184
184
  # Write to file
185
185
  category_postfix = f"_{keywords_category_name.title()}" if keywords_category_name else ""
186
- with open(os.path.join(self.path_output, f"Categories_{self.cj.title()}{category_postfix}.md"), "w", encoding="utf-8") as f:
186
+ with open(
187
+ os.path.join(self.path_output, f"Categories_{self.cj.title()}{category_postfix}.md"), "w", encoding="utf-8"
188
+ ) as f:
187
189
  f.writelines(data_list)
188
190
 
189
191
  return None
@@ -210,7 +212,7 @@ class WriteDataToMd(object):
210
212
  # Write keyword-specific file
211
213
  path_key = standardize_path(os.path.join(self.path_output, f"Categories_{self.cj.title()}"))
212
214
  # Create safe filename by replacing invalid characters
213
- safe_keyword = "".join(c if c.isalnum() or c in '-_' else '_' for c in keyword)
215
+ safe_keyword = "".join(c if c.isalnum() or c in "-_" else "_" for c in keyword)
214
216
  with open(os.path.join(path_key, f"{safe_keyword}.md"), "w", encoding="utf-8") as f:
215
217
  f.writelines(data_list)
216
218
 
@@ -325,7 +327,7 @@ class WriteDataToMd(object):
325
327
  # Add publications for each category
326
328
  for keyword in self._default_or_customized_keywords(keywords_category_name, keywords_list):
327
329
  # Create safe filename for URL
328
- safe_keyword = "".join(c if c.isalnum() or c in '-_' else '_' for c in keyword)
330
+ safe_keyword = "".join(c if c.isalnum() or c in "-_" else "_" for c in keyword)
329
331
  local_url = f"[Link](data/{self.cj.title()}/Statistics_{self.cj.title()}/{safe_keyword}.md)"
330
332
 
331
333
  # Create table row
@@ -335,7 +337,9 @@ class WriteDataToMd(object):
335
337
 
336
338
  # Write to file
337
339
  category_postfix = f"_{keywords_category_name.title()}" if keywords_category_name else ""
338
- with open(os.path.join(self.path_output, f"Statistics_{self.cj.title()}{category_postfix}.md"), "w", encoding="utf-8") as f:
340
+ with open(
341
+ os.path.join(self.path_output, f"Statistics_{self.cj.title()}{category_postfix}.md"), "w", encoding="utf-8"
342
+ ) as f:
339
343
  f.writelines(data_list)
340
344
  return None
341
345
 
@@ -367,7 +371,7 @@ class WriteDataToMd(object):
367
371
  # Write publisher-specific file
368
372
  path_pub = standardize_path(os.path.join(self.path_output, f"Statistics_{self.cj.title()}"))
369
373
  # Create safe filename by replacing invalid characters
370
- safe_keyword = "".join(c if c.isalnum() or c in '-_' else '_' for c in keyword)
374
+ safe_keyword = "".join(c if c.isalnum() or c in "-_" else "_" for c in keyword)
371
375
  with open(os.path.join(path_pub, f"{safe_keyword}.md"), "w", encoding="utf-8") as f:
372
376
  f.writelines(data_list)
373
377
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyformatjson"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "pyformatjson"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
@@ -13,7 +13,7 @@ keywords = ["Python", "json"]
13
13
  classifiers = ["Topic :: Software Development :: Libraries :: Python Modules"]
14
14
 
15
15
  [tool.poetry.dependencies]
16
- python = ">=3.8"
16
+ python = ">=3.13"
17
17
 
18
18
  [tool.poetry.group.dev.dependencies]
19
19
  mypy = "^1.18.2"
File without changes