-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
87 lines (58 loc) · 2.22 KB
/
settings.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
ELECTRONIC_ZIPFILE_MANIFEST = 'metadata/electronic_zipfiles.txt'
# requires lotsa space, you may want to customize
ELECTRONIC_ZIPDIR = 'zip/electronic/'
RAW_ELECTRONIC_DIR = 'fecfilings/electronic/'
PAPER_ZIPFILE_MANIFEST = 'metadata/paper_zipfiles.txt'
# requires lotsa space, you may want to customize
PAPER_ZIPDIR = 'zip/paper/'
RAW_PAPER_DIR = 'fecfilings/paper/'
# does this refresh ? May want a different region?
FEC_BUCKET = 'cg-519a459a-0ea3-42c2-b7bc-fa1143481f74.s3-us-gov-west-1.amazonaws.com'
DOWNLOAD_BASE = "https://%s/bulk-downloads/electronic/" % FEC_BUCKET
PAPER_DOWNLOAD_BASE = "https://%s/bulk-downloads/paper/" % FEC_BUCKET
# FIRST LINE OF HEADERs processed to this
HEADER_DUMP_FILE = 'headers/headers_raw.csv'
HEADER_PAPER_DUMP_FILE = 'headers/paper_headers_raw.csv'
# amendments are marked in this file, created by the amend_headers script.
AMENDED_HEADER_FILE = 'headers/headers_amended.csv'
AMENDED_PAPER_HEADER_FILE = 'headers/paperheaders_amended.csv'
SCHEDULE_A_OUTFILE = "schedules/ScheduleA-%s.csv"
SCHEDULE_A_PAPER_OUTFILE = "schedules/ScheduleA-%s-paper.csv"
SCHEDULE_B_OUTFILE = "schedules/ScheduleB-%s.csv"
SCHEDULE_B_PAPER_OUTFILE = "schedules/ScheduleB-%s-paper.csv"
SCHEDULE_F132_OUTFILE = "schedules/F132-%s.csv"
SCHEDULE_F132_PAPER_OUTFILE = "schedules/F132-paper-%s.csv"
# from https://github.com/esonderegger/fecfile/blob/master/fecfile/mappings.json#L2
# Not every version completes these all
# this is for electronic only really
MASTER_HEADER_ROW = [
"form_type",
"filer_committee_id_number",
"committee_name",
"date_signed",
"filing_number", #
"amends",
"record_type",
"ef_type",
"fec_version",
"soft_name",
"soft_ver",
"batch_number",
"received_date",
"report_id",
"report_number",
"comment",
"name_delim",
"coverage_from_date",
"coverage_through_date"
]
MASTER_PAPER_HEADER_ROW = ['file_size', 'file_linecount'] + MASTER_HEADER_ROW
## paper filings generally leave out filer_committee_id_number, committee_name, filing_number,
## amends,
## P1 omits report_number
FEC_API_KEY = ''
API_DUMP = 'headers/apidump.csv'
try:
from local_settings import *
except ImportError:
print("Error importing local_settings.py")