tile-twinx 1.0.0__py3-none-any.whl

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.
Tile/__init__.py ADDED
@@ -0,0 +1,67 @@
1
+ """Tile - split a raw YouTube title into artist / title / extras.
2
+
3
+ from Tile import parse_title
4
+
5
+ parse_title("Marshmello - Alone (Official Music Video)")
6
+ # {'artist': 'Marshmello', 'title': 'Alone', 'extras': ['Official Music Video']}
7
+
8
+ The engine lives in ``main.py`` at the repository root, and the wheel ships
9
+ that same file as ``Tile/main.py`` so it installs inside the package. Both
10
+ layouts are supported, so the checkout and an installed copy behave the same:
11
+
12
+ checkout Tile/__init__.py + ../main.py + ../assets/
13
+ installed Tile/__init__.py + Tile/main.py + Tile/assets/
14
+
15
+ Swap in your own data files with ``get_context``:
16
+
17
+ from Tile import get_context, parse_title
18
+
19
+ ctx = get_context("~/my-ignore.txt", "~/my-artists.txt")
20
+ parse_title(raw, ctx)
21
+
22
+ A context is cached and reloaded whenever either file's mtime changes, so
23
+ editing ``assets/artist.txt`` takes effect immediately.
24
+ """
25
+
26
+ from __future__ import annotations
27
+
28
+ import sys
29
+ from pathlib import Path
30
+
31
+ _HERE = Path(__file__).resolve().parent
32
+
33
+ if (_HERE / "main.py").exists():
34
+ from . import main as _engine # installed wheel
35
+ else:
36
+ sys.path.insert(0, str(_HERE.parent)) # repo checkout
37
+ import main as _engine # type: ignore[no-redef]
38
+ # pretend the root file is the submodule, so `from Tile.main import ...`
39
+ # works in the checkout exactly as it does once installed
40
+ sys.modules[f"{__name__}.main"] = _engine
41
+
42
+ __version__ = "1.0.0"
43
+
44
+ # The engine module itself, reachable as `Tile.main` in both layouts: the real
45
+ # submodule once installed, the repo's root main.py in a checkout.
46
+ main = _engine
47
+
48
+ DEFAULT_IGNORE_FILE = _engine.DEFAULT_IGNORE_FILE
49
+ DEFAULT_ARTIST_FILE = _engine.DEFAULT_ARTIST_FILE
50
+ Context = _engine.Context
51
+ Segment = _engine.Segment
52
+ Token = _engine.Token
53
+ build_context = _engine.build_context
54
+ get_context = _engine.get_context
55
+ parse_title = _engine.parse_title
56
+
57
+ __all__ = [
58
+ "DEFAULT_ARTIST_FILE",
59
+ "DEFAULT_IGNORE_FILE",
60
+ "Context",
61
+ "Segment",
62
+ "Token",
63
+ "build_context",
64
+ "get_context",
65
+ "parse_title",
66
+ "__version__",
67
+ ]
Tile/assets/artist.txt ADDED
@@ -0,0 +1,425 @@
1
+ # Artist names, one per line. '#' lines are ignored.
2
+ # Optional aliases go after the main name: Main Name | Alias | Alias
3
+ # Matching is case- and accent-insensitive, so "beyonce" finds "Beyoncé".
4
+ # A name is only accepted at the start of a chunk (or after 1-2 words), so a
5
+ # title that merely mentions an artist is not mistaken for one.
6
+
7
+ # --- global pop / R&B ---
8
+ 2 Unlimited
9
+ Adele
10
+ Ariana Grande | Ariana
11
+ Ava Max
12
+ Beyonce | Beyonce Knowles
13
+ Billie Eilish
14
+ Bruno Mars
15
+ BTS | Bangtan Sonyeondan
16
+ Britney Spears
17
+ Camila Cabello
18
+ Cardi B
19
+ Carly Rae Jepsen | Carly Rae
20
+ Charlie Puth
21
+ Coldplay
22
+ Demi Lovato
23
+ Dua Lipa
24
+ Ed Sheeran
25
+ Elton John
26
+ Ellie Goulding
27
+ En Vogue
28
+ FKA twigs
29
+ Florence and the Machine | Florence Welch
30
+ Frank Ocean
31
+ Gracie Abrams
32
+ Halsey
33
+ Harry Styles
34
+ Holly Humberstone
35
+ Janelle Monáe | Janelle Monae
36
+ Jesse McCartney
37
+ John Legend
38
+ Justin Bieber
39
+ Katy Perry
40
+ Lady Gaga
41
+ Lana Del Rey
42
+ Lorde
43
+ Mabel
44
+ Madonna
45
+ Maroon 5
46
+ Meghan Trainor
47
+ Miley Cyrus
48
+ Niall Horan
49
+ Normani
50
+ Olivia Rodrigo
51
+ OneRepublic | One Republic
52
+ Pink | P!nk
53
+ Rihanna
54
+ Rosalía | Rosalia
55
+ Rina Sawayama
56
+ Sabrina Carpenter
57
+ Selena Gomez
58
+ Shawn Mendes
59
+ Sia
60
+ Sophie Ellis-Bextor
61
+ Stevie Wonder
62
+ Taylor Swift
63
+ The Chainsmokers
64
+ The Kid Laroi
65
+ The Weeknd | Weeknd
66
+ Tinashe
67
+ Troye Sivan
68
+ Zayn | Zayn Malik
69
+ Zedd
70
+ Doja Cat
71
+ NF
72
+ NF | Nero Flags
73
+
74
+ # --- hip hop / rap ---
75
+ 21 Savage
76
+ 50 Cent
77
+ 6ix9ine | 6IX9INE
78
+ A Boogie wit da Hoodie
79
+ ASAP Mob
80
+ Aston Villa
81
+ Big Sean
82
+ Chief Keef
83
+ Dave East
84
+ Denzel Curry
85
+ Drake
86
+ Eminem
87
+ Fetty Wap
88
+ Flo Rida
89
+ Future
90
+ G-Eazy
91
+ Ice Spice
92
+ J. Cole | J Cole
93
+ JAY-Z | Jay Z
94
+ Juice Wrld | Juice WRLD
95
+ Kanye West | Ye
96
+ Kendrick Lamar
97
+ Kid Cudi
98
+ Koffee
99
+ Lil Baby
100
+ Lil Dicky
101
+ Lil Nas X
102
+ Lil Uzi Vert
103
+ Logic
104
+ M.I.A. | MIA
105
+ Macklemore
106
+ Megan Thee Stallion
107
+ Nicki Minaj
108
+ NLE Choppa
109
+ Offset
110
+ Playboi Carti
111
+ Post Malone
112
+ Pusha T
113
+ Rae Sremmurd
114
+ Run-DMC | Run DMC
115
+ Ski Mask The Slump God
116
+ Snoop Dogg
117
+ Stormzy
118
+ Travis Scott
119
+ Trippie Redd
120
+ Ty Dolla Sign | Ty Dolla $ign
121
+ Tyler, The Creator | Tyler The Creator
122
+ Vince Staples
123
+ Wizkid
124
+ Yeat
125
+ Young Thug
126
+ Yung Lean
127
+
128
+ # --- rock / metal / indie ---
129
+ Arctic Monkeys
130
+ Audioslave
131
+ Bastille
132
+ Bring Me The Horizon
133
+ Bullet for My Valentine
134
+ Cold War Kids
135
+ Daughter
136
+ Deftones
137
+ Disturbed
138
+ Enter Shikari
139
+ Fall Out Boy
140
+ Foo Fighters
141
+ Fujii Kaze
142
+ Gorillaz
143
+ Green Day
144
+ Imagine Dragons
145
+ Interpol
146
+ Jimmy Eat World
147
+ Kodaline
148
+ Led Zeppelin
149
+ Linkin Park
150
+ Lorna Shore
151
+ Machine Gun Kelly | MGK
152
+ Marilyn Manson
153
+ Metallica
154
+ Mitski
155
+ Muse
156
+ My Chemical Romance
157
+ Nickelback
158
+ Nine Inch Nails
159
+ Nothing But Thieves
160
+ Papa Roach
161
+ Paramore
162
+ Pierce The Veil
163
+ Queens of the Stone Age
164
+ Radiohead
165
+ Rammstein
166
+ Sleep Token
167
+ Smash Mouth
168
+ Snow Patrol
169
+ Stone Sour
170
+ Sum 41
171
+ System of a Down
172
+ The 1975
173
+ The Beach Boys
174
+ The Beatles
175
+ The Black Keys
176
+ The Cranberries
177
+ The Killers
178
+ The National
179
+ The Offspring
180
+ The Rolling Stones
181
+ The Strokes
182
+ Three Days Grace
183
+ Tokio Hotel
184
+ Touché Amoré | Touche Amore
185
+ Twenty One Pilots
186
+ Van Halen
187
+ Veach
188
+ Void Poets
189
+ Weezer
190
+ Wolf Alice
191
+
192
+ # --- EDM / dance ---
193
+ Above & Beyond | Above and Beyond
194
+ Alan Walker
195
+ Alok
196
+ Armin van Buuren
197
+ Axwell Λ Ingrosso | Axwell and Ingrosso
198
+ Calvin Harris
199
+ Cashmere Cat
200
+ Chase & Status
201
+ Claptone
202
+ David Guetta
203
+ Diplo
204
+ Dimitri Vegas
205
+ Don Diablo
206
+ DuckSauce
207
+ Fred Again.. | Fred Again
208
+ Kaskade
209
+ Kygo
210
+ LSDREAM
211
+ Major Lazer
212
+ Marshmello
213
+ Martin Garrix
214
+ Tiësto | Tiesto
215
+ TheFatRat
216
+ Topic
217
+ VIZE
218
+ Yello
219
+
220
+ # --- K-pop / J-pop ---
221
+ aespa
222
+ ATEEZ
223
+ BABYMONSTER
224
+ BLACKPINK | Blackpink
225
+ Enhypen
226
+ EXO
227
+ IU | Lee Ji-eun
228
+ Jimin | Park Jimin
229
+ Jungkook | Jeon Jungkook
230
+ NewJeans
231
+ NMIXX
232
+ Red Velvet
233
+ SEVENTEEN | SVT
234
+ Stray Kids | StrayKids
235
+ TWICE
236
+ VIXX
237
+ Zico
238
+
239
+ # --- latin / reggaeton ---
240
+ Bad Bunny
241
+ Carlos Vives
242
+ Daddy Yankee
243
+ Feid
244
+ J Balvin
245
+ Karol G
246
+ Maluma
247
+ Nicky Jam
248
+ Ozuna
249
+ Paulo Londra
250
+ Peso Pluma
251
+ Rauw Alejandro
252
+ Sebastián Yatra | Sebastian Yatra
253
+ Shakira
254
+ TINI | Martina Stoessel
255
+ Tokischa
256
+
257
+ # --- India: legacy playback singers ---
258
+ Abhijeet Bhattacharya
259
+ Alka Yagnik
260
+ Asha Bhosle
261
+ Kumar Sanu
262
+ Lata Mangeshkar
263
+ Mohammed Rafi
264
+ Mohd Aziz
265
+ Nusrat Fateh Ali Khan | Ustad Nusrat Fateh Ali Khan
266
+ Sharda Sinha
267
+ Udit Narayan
268
+
269
+ # --- India: playback singers ---
270
+ Amit Trivedi
271
+ Amitabh Bhattacharya
272
+ Anuradha Sriram
273
+ Arijit Singh | Arijit
274
+ Armaan Malik
275
+ Badal Barmer
276
+ Bappi Lahiri
277
+ Dhvani Bhanushali
278
+ Divya Kumar
279
+ Harshdeep Kaur
280
+ Himesh Reshammiya
281
+ Jasleen Royal
282
+ Jubin Nautiyal
283
+ Kailash Kher
284
+ Karan Aujla
285
+ Keerthy Ponnappa
286
+ Kishore Kumar
287
+ Neha Bhasin
288
+ Neha Kakkar
289
+ Palak Muchhal
290
+ Payal Dev
291
+ Pritam
292
+ Rahat Fateh Ali Khan
293
+ Raftaar
294
+ Sanam Reet
295
+ Shaan
296
+ Shreya Ghoshal
297
+ Sonu Nigam
298
+ Sunidhi Chauhan
299
+ Sukhwinder Singh
300
+ Vishal Dadlani
301
+
302
+ # --- India: composers / bands / labels ---
303
+ A.R. Rahman | AR Rahman
304
+ Ajay-Atul | Ajay Atul
305
+ Anu Malik
306
+ Badshah
307
+ Desi Beats
308
+ Ilaiyaraaja
309
+ Kishore Kumar
310
+ Laxmikant-Pyarelal | Laxmikant Pyarelal
311
+ Mithoon
312
+ Mickey Virus Mal
313
+ Nadeem-Shravan | Nadeem Shravan
314
+ Ravi Shankar
315
+ Salim-Sulaiman | Salim Sulaiman
316
+ Saregama
317
+ Shankar Mahadevan
318
+ Shankar-Ehsaan-Loy | Shankar Ehsaan Loy
319
+ Shiv-Hari | Shiv Hari
320
+ Sona Mohapatra
321
+ Tips Music
322
+ Times Music
323
+ T-Series | T Series | TSeries
324
+ Vijay Antony
325
+ Warner Music India
326
+
327
+ # --- India: indie / rock / regional ---
328
+ Agnee | Agni
329
+ Ankur Tewari
330
+ Band of Boys
331
+ Chai-Town | Chai Town
332
+ Colonial Cousins
333
+ Fossils
334
+ Great Khali
335
+ Indian Ocean
336
+ Parvaaz
337
+ Peter Cat Recording Co. | Peter Cat
338
+ Prateek Kuhad
339
+ Raghav Meattle
340
+ Shaan Rahman
341
+ The F16s
342
+ The Local Train
343
+ The Raghu Dixit Project | Raghu Dixit
344
+ The Ska Vengers
345
+ Tetseo Sisters
346
+ Yashpal Sharma
347
+
348
+ # --- Pakistan / South Asia ---
349
+ Atif Aslam
350
+ Bohemia
351
+ Diljit Dosanjh
352
+ Faris Shafi
353
+ Imran Khan
354
+ Meesha Shafi
355
+ Rahat Fateh Ali Khan
356
+ Runa Laila
357
+ Saif Ali Lohar
358
+ Sajjad Ali
359
+ Shafqat Amanat Ali
360
+ Tahir | Tahir Raj
361
+
362
+ # --- Nordics / misc international ---
363
+ MØ
364
+ Röyksopp | Royksopp
365
+ Sigala
366
+ Sigrid
367
+ Tove Lo
368
+ Zara Larsson
369
+
370
+ # --- punjabi / recent indian pop ---
371
+ Dhanda Nyoliwala
372
+ Hammy Muzic
373
+ Shab
374
+ Harshdeep Tarsem
375
+ Rupinder Raghu
376
+ Amit Sagar
377
+ Parmish Verma
378
+
379
+ # --- more playback singers / bands seen on film and pop channels ---
380
+ One Direction
381
+ AUR
382
+ Darshan Raval
383
+ Dharal Surelia
384
+ Stebin Ben
385
+ Nilesh Ahuja | Kumaar
386
+ Palwinder Dhami
387
+ Prabhat Paudyal
388
+ Sajjan Raj Vaidya
389
+ Tulsi Kumar
390
+ Vishal Mishra
391
+ Aditya A
392
+ Hammal Husain
393
+ Hassan Sadiq
394
+ Ami Sheth
395
+ Shirley Setia
396
+ Sikandar Kandar
397
+ Nirmal Panwar
398
+ Daler Mehndi
399
+ Badshah
400
+ Amit Trivedi
401
+ Arjun Ahuja | Arko
402
+ Shankar-Ehsaan-Loy
403
+
404
+ # --- channels and labels: never a title, and never the artist when they show
405
+ # --- up as their own chunk ("Kesariya - Arijit Singh | T-Series | 2023")
406
+ # Prefix a line with "!" to mark it as one.
407
+ !Saregama
408
+ !Tips Music
409
+ !Times Music
410
+ !T-Series | T Series | TSeries
411
+ !Warner Music India
412
+ !Desi Beats
413
+ !Sony Music India
414
+ !Speed Music
415
+ !Anodidas
416
+ !V4 Records
417
+ !T-Series Bhakti Sagar
418
+ !Aditya Music
419
+ !Tips
420
+ !Saregama Music
421
+ !Zee Music
422
+ !GMM Grammy
423
+ !Dice Media
424
+ !Desi Beats Music
425
+ !Zee Music Company | Zee Music Originals