-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake_pkg_call.py
More file actions
73 lines (62 loc) · 1.75 KB
/
make_pkg_call.py
File metadata and controls
73 lines (62 loc) · 1.75 KB
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
#!/usr/bin/env python
import urllib
import json
import pprint
import ckan_api
import upload_pkgs
#ind2_1_dict = {
# 'name': 'median-owner-costs',
# 'title': 'Median Owner Costs',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Median owner costs as percent of income past 12 months',
#}
#ind2_2_dict = {
# 'name': 'homeless',
# 'title': 'Homeless',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Number of homeless persons (in shelter and out of shelter)',
#}
ind2_3_dict = {
'name': 'affordable-housing-availability',
'title': 'Affordable Housing Availability',
'group': 'Meeting Basic Needs',
'notes': 'Number of housing units available for households earning below 50% or 60% of median income',
}
#ind2_4_dict = {
# 'name': 'median-rent',
# 'title': 'Median Rent',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Median gross rent',
#}
#ind2_5_dict = {
# 'name': 'foreclosure',
# 'title': 'Foreclosure',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Number of foreclosures by type of Real Estate',
#}
#ind2_6_dict = {
# 'name': 'food-stamps',
# 'title': 'Food Stamps',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Number of SNAP (formerly Food Stamp) participants',
#}
#ind2_7_dict = {
# 'name': 'school-lunch',
# 'title': 'School Lunch',
# 'group': 'Meeting Basic Needs',
# 'notes': 'Number of students eligible for free and reduced-price school lunch',
#}
ind_test_dict = {
'name': 'test-pkg',
'title': 'test this!',
'group': 'Built Environment',
'notes': 'hope this works!!!',
}
upload_pkgs.make_pkg(ind_test_dict)
#make_pkg(ind2_1_dict)
#make_pkg(ind2_2_dict)
#make_pkg(ind2_3_dict)
#make_pkg(ind2_4_dict)
#make_pkg(ind2_5_dict)
#make_pkg(ind2_6_dict)
#make_pkg(ind2_7_dict)