lukhed-basic-utils 1.4.4__tar.gz → 1.4.5__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.
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/PKG-INFO +1 -1
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/githubCommon.py +10 -1
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/PKG-INFO +1 -1
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/setup.py +1 -1
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/LICENSE +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/README.md +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/__init__.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/chartJsCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/classCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/fileCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/listWorkCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/mathCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/osCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/requestsCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/stringCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils/timeCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/SOURCES.txt +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/dependency_links.txt +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/requires.txt +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/top_level.txt +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/setup.cfg +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/tests/test_osCommon.py +0 -0
- {lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/tests/test_timeCommon.py +0 -0
|
@@ -345,7 +345,16 @@ class GithubHelper:
|
|
|
345
345
|
return None
|
|
346
346
|
|
|
347
347
|
if decode:
|
|
348
|
-
|
|
348
|
+
if contents.encoding == "base64":
|
|
349
|
+
decoded = contents.decoded_content
|
|
350
|
+
elif contents.download_url:
|
|
351
|
+
# For large files, use the download URL to fetch the file content
|
|
352
|
+
response = rC.make_request(contents.download_url)
|
|
353
|
+
response.raise_for_status() # Ensure we notice bad responses
|
|
354
|
+
decoded = response.content
|
|
355
|
+
else:
|
|
356
|
+
raise ValueError(f"Unexpected file encoding: {contents.encoding}")
|
|
357
|
+
|
|
349
358
|
if '.json' in repo_path:
|
|
350
359
|
return json.loads(decoded)
|
|
351
360
|
else:
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="lukhed_basic_utils",
|
|
5
|
-
version="1.4.
|
|
5
|
+
version="1.4.5",
|
|
6
6
|
description="A collection of basic utility functions",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
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
|
|
File without changes
|
{lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/requires.txt
RENAMED
|
File without changes
|
{lukhed_basic_utils-1.4.4 → lukhed_basic_utils-1.4.5}/lukhed_basic_utils.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|