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.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aetherfield
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: AetherField runtime ephemeris
5
5
  Author: WitchMithras
6
- License: MIT
6
+ License: Other/Proprietary License
7
7
  Project-URL: Homepage, https://github.com/WitchMithras/aetherfield
8
- Keywords: zodiac,alignment,solar,astronomy
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.4"
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 = "MIT" }
12
+ license = { text = "Other/Proprietary License" }
13
13
 
14
14
  dependencies = [
15
15
  "pytz>=2023.3",
16
16
  ]
17
17
 
18
- keywords = ["zodiac", "alignment", "solar", "astronomy"]
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=5) as response:
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
- with open(path, 'r', encoding='utf-8') as f:
989
- data = json.load(f)
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.4
3
+ Version: 0.2.6
4
4
  Summary: AetherField runtime ephemeris
5
5
  Author: WitchMithras
6
- License: MIT
6
+ License: Other/Proprietary License
7
7
  Project-URL: Homepage, https://github.com/WitchMithras/aetherfield
8
- Keywords: zodiac,alignment,solar,astronomy
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