aetherfield 0.2.4__tar.gz → 0.2.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.
- {aetherfield-0.2.4/src/aetherfield.egg-info → aetherfield-0.2.6}/PKG-INFO +3 -3
- {aetherfield-0.2.4 → aetherfield-0.2.6}/pyproject.toml +3 -3
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/core.py +3 -15
- {aetherfield-0.2.4 → aetherfield-0.2.6/src/aetherfield.egg-info}/PKG-INFO +3 -3
- {aetherfield-0.2.4 → aetherfield-0.2.6}/LICENSE +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/README.md +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/setup.cfg +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/__init__.py +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/cli/benchmark.py +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/cli/calibrate_all.py +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/cli/compare.py +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield/iplocal.py +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield.egg-info/SOURCES.txt +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield.egg-info/dependency_links.txt +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield.egg-info/entry_points.txt +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield.egg-info/requires.txt +0 -0
- {aetherfield-0.2.4 → aetherfield-0.2.6}/src/aetherfield.egg-info/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aetherfield
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: AetherField runtime ephemeris
|
|
5
5
|
Author: WitchMithras
|
|
6
|
-
License:
|
|
6
|
+
License: Other/Proprietary License
|
|
7
7
|
Project-URL: Homepage, https://github.com/WitchMithras/aetherfield
|
|
8
|
-
Keywords: zodiac,alignment,
|
|
8
|
+
Keywords: zodiac,alignment,celestial,astronomy,mirror
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: License :: Other/Proprietary License
|
|
@@ -4,18 +4,18 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aetherfield"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.6"
|
|
8
8
|
description = "AetherField runtime ephemeris"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
11
11
|
authors = [{ name = "WitchMithras" }]
|
|
12
|
-
license = { text = "
|
|
12
|
+
license = { text = "Other/Proprietary License" }
|
|
13
13
|
|
|
14
14
|
dependencies = [
|
|
15
15
|
"pytz>=2023.3",
|
|
16
16
|
]
|
|
17
17
|
|
|
18
|
-
keywords = ["zodiac", "alignment", "
|
|
18
|
+
keywords = ["zodiac", "alignment", "celestial", "astronomy", "mirror"]
|
|
19
19
|
classifiers = [
|
|
20
20
|
"Programming Language :: Python :: 3",
|
|
21
21
|
"Programming Language :: Python :: 3.11",
|
|
@@ -963,30 +963,18 @@ class AetherField:
|
|
|
963
963
|
CACHE_PATH = os.path.join(os.path.expanduser("~"), ".cache", "aetherfield", "aetherfield_calibration.json")
|
|
964
964
|
REMOTE_URL = "https://pythoness.duckdns.org/v1/aether/calibration/file"
|
|
965
965
|
data = None
|
|
966
|
-
# 1. Local cache
|
|
967
|
-
if os.path.exists(CACHE_PATH):
|
|
968
|
-
try:
|
|
969
|
-
with open(CACHE_PATH, "r", encoding="utf-8") as f:
|
|
970
|
-
data = json.load(f)
|
|
971
|
-
except Exception:
|
|
972
|
-
pass
|
|
973
966
|
if not data:
|
|
974
967
|
# 2. Remote fetch
|
|
975
968
|
try:
|
|
976
969
|
import urllib.request
|
|
977
970
|
|
|
978
|
-
with urllib.request.urlopen(REMOTE_URL, timeout=
|
|
971
|
+
with urllib.request.urlopen(REMOTE_URL, timeout=10) as response:
|
|
979
972
|
data = json.load(response)
|
|
980
973
|
|
|
981
|
-
# 4. Save to cache
|
|
982
|
-
os.makedirs(os.path.dirname(CACHE_PATH), exist_ok=True)
|
|
983
|
-
with open(CACHE_PATH, "w", encoding="utf-8") as f:
|
|
984
|
-
json.dump(data, f)
|
|
985
|
-
|
|
986
974
|
#return data
|
|
987
975
|
except Exception:
|
|
988
|
-
|
|
989
|
-
|
|
976
|
+
return fallback
|
|
977
|
+
|
|
990
978
|
else:
|
|
991
979
|
|
|
992
980
|
with open(path, 'r', encoding='utf-8') as f:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aetherfield
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: AetherField runtime ephemeris
|
|
5
5
|
Author: WitchMithras
|
|
6
|
-
License:
|
|
6
|
+
License: Other/Proprietary License
|
|
7
7
|
Project-URL: Homepage, https://github.com/WitchMithras/aetherfield
|
|
8
|
-
Keywords: zodiac,alignment,
|
|
8
|
+
Keywords: zodiac,alignment,celestial,astronomy,mirror
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: License :: Other/Proprietary License
|
|
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
|
|
File without changes
|