mirror of https://github.com/CIRCL/lookyloo
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			318 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			318 B
		
	
	
	
		
			Python
		
	
	
#!/usr/bin/env python3
 | 
						|
# -*- coding: utf-8 -*-
 | 
						|
 | 
						|
import json
 | 
						|
from functools import lru_cache
 | 
						|
from typing import Dict
 | 
						|
 | 
						|
from lookyloo.helpers import get_homedir
 | 
						|
 | 
						|
 | 
						|
@lru_cache(64)
 | 
						|
def sri_load() -> Dict[str, Dict[str, str]]:
 | 
						|
    with (get_homedir() / 'website' / 'web' / 'sri.txt').open() as f:
 | 
						|
        return json.load(f)
 |