-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
61 lines (53 loc) · 2.35 KB
/
config.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import os
from dotenv import load_dotenv
load_dotenv()
class Local:
MULTIPROCESS_ON = True
MULTIPROCESS_CPUS = None # None defaults to mp.cpu_count()
class Aws:
ACCESS_KEY = os.environ.get('ACCESS_KEY')
SECRET_KEY = os.environ.get('SECRET_KEY')
OUPUT_BUCKET = 'edgaraws'
class Edgar:
EDGAR_ROOT = 'https://www.sec.gov/Archives'
# tags to extract
FILING_HEADER_TARGET_TAGS = {
'acceptancedatetime': {'tag': '<ACCEPTANCE-DATETIME>',
'from': '%Y%m%d%H%M%S',
'to': '%Y-%m-%d %H:%M:%S'},
'accessionnumber': {'tag': 'ACCESSION NUMBER:',
'from': 'string',
'to': 'string'},
'conformedsubmissiontype': {'tag': 'CONFORMED SUBMISSION TYPE:',
'from': 'string',
'to': 'string'},
'publicdocumentcount': {'tag': 'PUBLIC DOCUMENT COUNT:',
'from': 'int',
'to': 'int'},
'conformedperiodofreport': {'tag': 'CONFORMED PERIOD OF REPORT:',
'from': '%Y%m%d',
'to': '%Y-%m-%d'},
'filedasofdate': {'tag': 'FILED AS OF DATE:',
'from': '%Y%m%d',
'to': '%Y-%m-%d'},
'dateasofchange': {'tag': 'DATE AS OF CHANGE:',
'from': '%Y%m%d',
'to': '%Y-%m-%d'},
'effectivenessdate': {'tag': 'EFFECTIVENESS DATE:',
'from': '%Y%m%d',
'to': '%Y-%m-%d'},
'sicsdesc': {'tag': 'STANDARD INDUSTRIAL CLASSIFICATION:',
'from': 'string',
'to': 'this [not this]'},
'sicscode': {'tag': 'STANDARD INDUSTRIAL CLASSIFICATION:',
'from': 'string',
'to': 'not this [this]'},
'irsnum': {'tag': 'IRS NUMBER:',
'from': 'string',
'to': 'string'},
'fiscalyearend': {'tag': 'FISCAL YEAR END:',
'from': 'int',
'to': 'int'},
'stateofincorp': {'tag': 'STATE OF INCORPORATION:',
'from': 'string',
'to': 'string'}}