-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv_playground.py
More file actions
25 lines (20 loc) · 786 Bytes
/
Copy pathenv_playground.py
File metadata and controls
25 lines (20 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import requests
import lifecycle,os,json,pickle
from post_processing.stat_accumu import StatFlowDataset
from enumerate_configuration import _DEFAULT_CONFIGURATION
def print_url():
params = {
"limit": _DEFAULT_CONFIGURATION.limitN,
}
payload = requests.get(_DEFAULT_CONFIGURATION.shit_articles_api_endpoint, params=params,headers=_DEFAULT_CONFIGURATION.headers)
print(payload.url)
def initialize_refmap():
with (open("stats/meta-id-refmap", 'w')) as f:
json.dump({}, f)
def initialize_flow_dataset():
with open("stats/dataset.bin", 'wb') as f:
pickle.dump(StatFlowDataset({}), f)
if __name__ == "__main__":
print("deprecated supabase publishable key:", os.getenv("SHIT_API_KEY")) #deprecated
print_url()
lifecycle.update()