udise_school_report_reader 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb4e7f18e92a981045b328698bf04015f68aee7f22c9bc1a19b8ceab7c416eca
4
- data.tar.gz: c0e734f6c22a5ad1ce6af4b2ee094ca140540500ebe75ba1594c6f1d6eb528bd
3
+ metadata.gz: a3a0528c7285f01601b2e348c5ea1befbc60d1a607fc55ea0ac91db0e534ccaf
4
+ data.tar.gz: dbd125e9caed2e95bf6267d01d042dfa562b117d65af88eba4dd34368739269a
5
5
  SHA512:
6
- metadata.gz: c453df46b297daef2ed774d838289e9ea41588d48f07db24964ca6fcd6cd918c8a99f789c7a89cb14bc96b8769091a1e2cb36183b90615a30cb814d7f16d586a
7
- data.tar.gz: b9b2b0690d6f0d1a65f0f36e2d8a0a707860653332066f8591b5cdce573a5d5429f3971e57b7d889665398640282abfc6b543b335394a0d0d8e3faff7c740a19
6
+ metadata.gz: 4002ca7f7fc2e3e0732e89350331f9ae9c5ed1ae29ca587150cd9ae06857e7fff348a678ced30be0a651d3fd11442643be38055e3e002d843ed33159f9ed3012
7
+ data.tar.gz: d90bb351393e2b6128b16a2fbebd874b9e9553c93ba12be916700193b9a661923c9ea6fea840cc1eba0347083601cc3b9e547a46362b70773a05091208705e8d
@@ -21,6 +21,10 @@ module UdiseSchoolReportReader
21
21
 
22
22
  private
23
23
 
24
+ def self.template_path
25
+ File.expand_path('../../../template.yml', __FILE__)
26
+ end
27
+
24
28
  def self.extract_data(pdf_path)
25
29
  reader = PDF::Reader.new(pdf_path)
26
30
 
@@ -127,7 +131,7 @@ module UdiseSchoolReportReader
127
131
  lines = compressed_content.split("\n").map { |line| line.strip.gsub(/\\/, '') } # Remove escape characters
128
132
 
129
133
  # Load template as base structure
130
- data = YAML.load_file('template.yml')
134
+ data = YAML.load_file(template_path)
131
135
 
132
136
  # Extract data using readers
133
137
  basic_info_data = BasicInfoDataReader.read(lines)
@@ -1,3 +1,3 @@
1
1
  module UdiseSchoolReportReader
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/template.yml ADDED
@@ -0,0 +1,176 @@
1
+ rooms:
2
+ classrooms:
3
+ good_condition: 0
4
+ needs_minor_repair: 0
5
+ needs_major_repair: 0
6
+ other: 0
7
+ library:
8
+ hm:
9
+
10
+ basic_info: {}
11
+
12
+ location: {}
13
+
14
+ official:
15
+ established: null
16
+ recognition:
17
+ primary: null
18
+ upper_primary: null
19
+ secondary: null
20
+ higher_secondary: null
21
+ affiliation:
22
+ secondary: null
23
+ higher_secondary: null
24
+ management: null
25
+
26
+ digital_facilities:
27
+ ict_lab: null
28
+ internet: null
29
+ computers:
30
+ desktop: 0
31
+ laptop: 0
32
+ tablet: 0
33
+ peripherals:
34
+ printer: 0
35
+ projector: 0
36
+ smart_classroom:
37
+ digiboard: 0
38
+ dth: null
39
+
40
+ anganwadi:
41
+ at_premises: null
42
+ boys: null
43
+ girls: null
44
+ worker: null
45
+
46
+ building:
47
+ status:
48
+ boundary_wall:
49
+ blocks:
50
+ pucca_blocks:
51
+ has_shifts:
52
+ accessibility:
53
+ ramps:
54
+ handrails:
55
+
56
+ infrastructure:
57
+ furniture:
58
+ count: null
59
+
60
+ sanitation:
61
+ toilets:
62
+ boys:
63
+ total: 0
64
+ functional: 0
65
+ cwsn: 0
66
+ urinals: 0
67
+ girls:
68
+ total: 0
69
+ functional: 0
70
+ cwsn: 0
71
+ urinals: 0
72
+ handwash:
73
+ near_toilet: null
74
+ for_meal: null
75
+
76
+ facilities:
77
+ residential:
78
+ details:
79
+ type: null
80
+ minority_school: null
81
+ basic:
82
+ water: {}
83
+ electricity:
84
+ available: null
85
+ solar_panel: null
86
+ safety:
87
+ playground: null
88
+ all_weather_road: null
89
+ medical:
90
+ checkups:
91
+ available: null
92
+
93
+ teachers:
94
+ count_by_level: {}
95
+ qualifications:
96
+ academic: {}
97
+ professional:
98
+ basic_training: 0
99
+ beled: 0
100
+ bed: 0
101
+ med: 0
102
+ other: 0
103
+ none: 0
104
+ special_education: 0
105
+ pursuing_course: 0
106
+ demographics: {}
107
+ training:
108
+ service:
109
+ total: null
110
+ computer_trained: null
111
+ age_distribution: {}
112
+ assignments:
113
+ teaching: {}
114
+ non_teaching: {}
115
+ classes_taught: {}
116
+ attendance: {}
117
+
118
+ students:
119
+ facilities:
120
+ general:
121
+ transport:
122
+ primary: 0
123
+ upper_primary: 0
124
+ incentives:
125
+ free_textbooks:
126
+ primary: 0
127
+ upper_primary: 0
128
+ free_uniform:
129
+ primary: 0
130
+ upper_primary: 0
131
+
132
+ activities:
133
+ inspections:
134
+ academic:
135
+ crc_coordinator:
136
+ block_level:
137
+ state_district:
138
+ instructional_days:
139
+ primary:
140
+ upper_primary:
141
+ secondary:
142
+ higher_secondary:
143
+ student_hours:
144
+ primary:
145
+ upper_primary:
146
+ secondary:
147
+ higher_secondary:
148
+ teacher_hours:
149
+ primary:
150
+ upper_primary:
151
+ secondary:
152
+ higher_secondary:
153
+
154
+ academic:
155
+ medium_of_instruction: {}
156
+ assessments:
157
+ cce:
158
+ implemented:
159
+ primary: null
160
+ upper_primary: null
161
+ secondary: null
162
+ higher_secondary: null
163
+
164
+ committees:
165
+ smc:
166
+ details:
167
+ same_as_smdc: null
168
+ smdc:
169
+ details:
170
+ constituted: null
171
+
172
+ grants:
173
+ received:
174
+ amount: null
175
+ expenditure:
176
+ amount: null
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udise_school_report_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syed Fazil Basheer
@@ -135,6 +135,7 @@ files:
135
135
  - lib/udise_school_report_reader/school_report_parser.rb
136
136
  - lib/udise_school_report_reader/teacher_data_reader.rb
137
137
  - lib/udise_school_report_reader/version.rb
138
+ - template.yml
138
139
  - test/school_report_parser_test.rb
139
140
  homepage: https://github.com/UDISE-Plus/udise-school-report-reader
140
141
  licenses: