10 lines
903 B
Plaintext
10 lines
903 B
Plaintext
from pathlib import Path
|
|
import json,hashlib,datetime,subprocess,concurrent.futures
|
|
R=Path.cwd();REF=R/'docs/hel-892/wanrole-reference';now=datetime.datetime.now(datetime.timezone.utc).isoformat()
|
|
s=(R/'.local-evidence/setup-anima.py').read_text();exec('def fetch(spec):'+s.split('def fetch(spec):')[1].split('with concurrent.futures')[0].replace('anima-','wanrole-'))
|
|
specs=[('core0262','Comfy-Org/ComfyUI','v0.26.2',['nodes.py','LICENSE','requirements.txt']),('feihou-toolbox-c4af9287','FX-FeiHou/ComfyUI-FeiHou-Toolbox','c4af9287207b5834076e5e650ffba62060f4c61c',['__init__.py','LICENSE','requirements.txt','pyproject.toml'])]
|
|
rows=json.loads((REF/'sources.json').read_bytes())['sources']
|
|
with concurrent.futures.ThreadPoolExecutor(max_workers=2)as pool:
|
|
for result in pool.map(fetch,specs):rows+=result
|
|
(REF/'sources.json').write_text(json.dumps({'sources':rows},ensure_ascii=False,indent=2)+'\n')
|