Spaces:
Sleeping
Sleeping
Create codexbyte_db.py
Browse files- codexbyte_db.py +12 -0
codexbyte_db.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
|
| 3 |
+
DB_FILE = "codexbyte_db.json"
|
| 4 |
+
|
| 5 |
+
def fetch_latest_data(runtime_config):
|
| 6 |
+
"""
|
| 7 |
+
Loads and validates the CodexByte commodity universe.
|
| 8 |
+
"""
|
| 9 |
+
with open(DB_FILE, "r") as f:
|
| 10 |
+
db = json.load(f)
|
| 11 |
+
|
| 12 |
+
return db
|