imdb-sqlite 1.2.0__tar.gz → 2.0.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: imdb-sqlite
3
- Version: 1.2.0
3
+ Version: 2.0.0
4
4
  Summary: Imports IMDB TSV files into a SQLite database
5
5
  Home-page: https://github.com/jojje/imdb-sqlite
6
6
  Author: Jonas Tingeborn
@@ -46,7 +46,7 @@ The program relies on the following IMDB tab separated files:
46
46
 
47
47
  usage: imdb-sqlite [OPTIONS]
48
48
 
49
- Imports imdb tsv interface files into a new sqlit database. Fetches them from imdb
49
+ Imports imdb tsv interface files into a new sqlite database. Fetches them from imdb
50
50
  if not present on the machine.
51
51
 
52
52
  optional arguments:
@@ -160,7 +160,7 @@ the following:
160
160
  ```sql
161
161
  -- // table aliases: st = show-title, et = episode-title
162
162
  SELECT st.primary_title, st.premiered, st.genres, e.season_number,
163
- e.eposide_number, et.primary_title, r.rating, r.votes
163
+ e.episode_number, et.primary_title, r.rating, r.votes
164
164
  FROM titles AS st
165
165
  INNER JOIN episodes e ON ( e.show_title_id = st.title_id )
166
166
  INNER JOIN titles et ON ( e.episode_title_id = et.title_id )
@@ -170,7 +170,7 @@ AND st.type = 'tvSeries'
170
170
  ORDER BY r.rating DESC
171
171
  ```
172
172
 
173
- **Find which productions both Robert Deniro and Al Pacino acted together on**
173
+ **Find which productions both Robert De Niro and Al Pacino acted together on**
174
174
  ```sql
175
175
  SELECT t.title_id, t.type, t.primary_title, t.premiered, t.genres,
176
176
  c1.characters AS 'Pacino played', c2.characters AS 'Deniro played'
@@ -252,7 +252,7 @@ you don't need all the aliases for all the titles, like the portuguese title of
252
252
  some bollywood flick, then the akas can also be skipped. Getting rid of those
253
253
  two tables shaves off 3/4 of the required space. That's significant.
254
254
 
255
- If you don't care about characters, and just want to query moves or shows, their
255
+ If you don't care about characters, and just want to query movies or shows, their
256
256
  ratings and perhaps per-episode ratings as well, then 2 GiB of storage suffices
257
257
  as you only need tables titles, episodes and ratings. However if you actually
258
258
  want to query those tables as well, then you'd want to create indices, either
@@ -20,7 +20,7 @@ The program relies on the following IMDB tab separated files:
20
20
 
21
21
  usage: imdb-sqlite [OPTIONS]
22
22
 
23
- Imports imdb tsv interface files into a new sqlit database. Fetches them from imdb
23
+ Imports imdb tsv interface files into a new sqlite database. Fetches them from imdb
24
24
  if not present on the machine.
25
25
 
26
26
  optional arguments:
@@ -134,7 +134,7 @@ the following:
134
134
  ```sql
135
135
  -- // table aliases: st = show-title, et = episode-title
136
136
  SELECT st.primary_title, st.premiered, st.genres, e.season_number,
137
- e.eposide_number, et.primary_title, r.rating, r.votes
137
+ e.episode_number, et.primary_title, r.rating, r.votes
138
138
  FROM titles AS st
139
139
  INNER JOIN episodes e ON ( e.show_title_id = st.title_id )
140
140
  INNER JOIN titles et ON ( e.episode_title_id = et.title_id )
@@ -144,7 +144,7 @@ AND st.type = 'tvSeries'
144
144
  ORDER BY r.rating DESC
145
145
  ```
146
146
 
147
- **Find which productions both Robert Deniro and Al Pacino acted together on**
147
+ **Find which productions both Robert De Niro and Al Pacino acted together on**
148
148
  ```sql
149
149
  SELECT t.title_id, t.type, t.primary_title, t.premiered, t.genres,
150
150
  c1.characters AS 'Pacino played', c2.characters AS 'Deniro played'
@@ -226,7 +226,7 @@ you don't need all the aliases for all the titles, like the portuguese title of
226
226
  some bollywood flick, then the akas can also be skipped. Getting rid of those
227
227
  two tables shaves off 3/4 of the required space. That's significant.
228
228
 
229
- If you don't care about characters, and just want to query moves or shows, their
229
+ If you don't care about characters, and just want to query movies or shows, their
230
230
  ratings and perhaps per-episode ratings as well, then 2 GiB of storage suffices
231
231
  as you only need tables titles, episodes and ratings. However if you actually
232
232
  want to query those tables as well, then you'd want to create indices, either
@@ -100,7 +100,7 @@ TSV_TABLE_MAP = OrderedDict([
100
100
  ('title.ratings.tsv.gz',
101
101
  ('ratings', OrderedDict([
102
102
  ('tconst', Column(name='title_id', type='VARCHAR PRIMARY KEY')),
103
- ('averageRating', Column(name='rating', type='INTEGER')),
103
+ ('averageRating', Column(name='rating', type='REAL')),
104
104
  ('numVotes', Column(name='votes', type='INTEGER')),
105
105
  ]))),
106
106
  ])
@@ -207,7 +207,7 @@ def ensure_downloaded(files, cache_dir):
207
207
  ofn = os.path.join(cache_dir, filename)
208
208
 
209
209
  if os.path.exists(ofn):
210
- return
210
+ continue
211
211
 
212
212
  logger.info('GET %s -> %s', url, ofn)
213
213
  with urlopen(url) as response:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: imdb-sqlite
3
- Version: 1.2.0
3
+ Version: 2.0.0
4
4
  Summary: Imports IMDB TSV files into a SQLite database
5
5
  Home-page: https://github.com/jojje/imdb-sqlite
6
6
  Author: Jonas Tingeborn
@@ -46,7 +46,7 @@ The program relies on the following IMDB tab separated files:
46
46
 
47
47
  usage: imdb-sqlite [OPTIONS]
48
48
 
49
- Imports imdb tsv interface files into a new sqlit database. Fetches them from imdb
49
+ Imports imdb tsv interface files into a new sqlite database. Fetches them from imdb
50
50
  if not present on the machine.
51
51
 
52
52
  optional arguments:
@@ -160,7 +160,7 @@ the following:
160
160
  ```sql
161
161
  -- // table aliases: st = show-title, et = episode-title
162
162
  SELECT st.primary_title, st.premiered, st.genres, e.season_number,
163
- e.eposide_number, et.primary_title, r.rating, r.votes
163
+ e.episode_number, et.primary_title, r.rating, r.votes
164
164
  FROM titles AS st
165
165
  INNER JOIN episodes e ON ( e.show_title_id = st.title_id )
166
166
  INNER JOIN titles et ON ( e.episode_title_id = et.title_id )
@@ -170,7 +170,7 @@ AND st.type = 'tvSeries'
170
170
  ORDER BY r.rating DESC
171
171
  ```
172
172
 
173
- **Find which productions both Robert Deniro and Al Pacino acted together on**
173
+ **Find which productions both Robert De Niro and Al Pacino acted together on**
174
174
  ```sql
175
175
  SELECT t.title_id, t.type, t.primary_title, t.premiered, t.genres,
176
176
  c1.characters AS 'Pacino played', c2.characters AS 'Deniro played'
@@ -252,7 +252,7 @@ you don't need all the aliases for all the titles, like the portuguese title of
252
252
  some bollywood flick, then the akas can also be skipped. Getting rid of those
253
253
  two tables shaves off 3/4 of the required space. That's significant.
254
254
 
255
- If you don't care about characters, and just want to query moves or shows, their
255
+ If you don't care about characters, and just want to query movies or shows, their
256
256
  ratings and perhaps per-episode ratings as well, then 2 GiB of storage suffices
257
257
  as you only need tables titles, episodes and ratings. However if you actually
258
258
  want to query those tables as well, then you'd want to create indices, either
@@ -5,7 +5,7 @@ with open('README.md', 'r') as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name='imdb-sqlite',
8
- version='1.2.0',
8
+ version='2.0.0',
9
9
  author='Jonas Tingeborn',
10
10
  author_email='tinjon+pip@gmail.com',
11
11
  description='Imports IMDB TSV files into a SQLite database',
File without changes
File without changes
File without changes