talklib 3.6.0__tar.gz → 3.6.2__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: talklib
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A package to automate processing of shows/segments airing on the TL
5
5
  Author-email: Ben Weddle <ben.weddle@gmail.com>
6
6
  Maintainer-email: Ben Weddle <ben.weddle@gmail.com>
@@ -11,7 +11,7 @@ Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE.txt
13
13
  Requires-Dist: aiohappyeyeballs==2.6.1
14
- Requires-Dist: aiohttp==3.13.5
14
+ Requires-Dist: aiohttp==3.14.1
15
15
  Requires-Dist: aiohttp-retry==2.8.3
16
16
  Requires-Dist: aiosignal==1.4.0
17
17
  Requires-Dist: annotated-types==0.7.0
@@ -354,11 +354,11 @@ Here is an example script:
354
354
  ````python
355
355
  from talklib import TLShow
356
356
 
357
- SD = TLShow()
358
-
359
- SD.show = 'Skywalker Daily News'
360
- SD.show_filename = 'SDN'
361
- SD.url = 'https://somesite.org/sdn-feed.rss'
357
+ SD = TLShow(
358
+ show = 'Skywalker Daily News',
359
+ show_filename = 'SDN',
360
+ url = 'https://somesite.org/sdn-feed.rss'
361
+ )
362
362
 
363
363
  SD.run()
364
364
  ````
@@ -374,12 +374,12 @@ Here is an example script:
374
374
  ````python
375
375
  from talklib import TLShow
376
376
 
377
- MWB = TLShow()
378
-
379
- MWB.show = 'Magical World of Bees'
380
- MWB.show_filename = 'MWB'
381
- MWB.is_local = True
382
- MWB.local_file = 'D:Production\path\to\the\file.wav'
377
+ MWB = TLShow(
378
+ show = 'Magical World of Bees',
379
+ show_filename = 'MWB',
380
+ is_local = True,
381
+ local_file = 'D:Production\path\to\the\file.wav'
382
+ )
383
383
 
384
384
  MWB.run()
385
385
  ````
@@ -395,12 +395,12 @@ Here is an example script:
395
395
  ````python
396
396
  from talklib import TLShow
397
397
 
398
- WK = TLShow()
399
-
400
- WK.show = 'Who Knows'
401
- WK.show_filename = 'WhoKnows'
402
- WK.url = 'https://somesite.org/who-knows-static'
403
- WK.is_permalink = True
398
+ WK = TLShow(
399
+ show = 'Who Knows',
400
+ show_filename = 'WhoKnows',
401
+ url = 'https://somesite.org/who-knows-static',
402
+ is_permalink = True
403
+ )
404
404
 
405
405
  WK.run()
406
406
  ````
@@ -416,11 +416,12 @@ To disable Twilio notifications, simply add a line like this:
416
416
  ````python
417
417
  from talklib import TLShow
418
418
 
419
- SD = TLShow()
419
+ SD = TLShow(
420
+ show = 'Skywalker Daily News',
421
+ show_filename = 'SDN',
422
+ url = 'https://somesite.org/sdn-feed.rss'
423
+ )
420
424
 
421
- SD.show = 'Skywalker Daily News'
422
- SD.show_filename = 'SDN'
423
- SD.url = 'https://somesite.org/sdn-feed.rss'
424
425
  SD.notifications.twilio_enable = False
425
426
 
426
427
  SD.run()
@@ -435,11 +436,12 @@ To disable ALL notifications, add a line like this:
435
436
  ````python
436
437
  from talklib import TLShow
437
438
 
438
- SD = TLShow()
439
+ SD = TLShow(
440
+ show = 'Skywalker Daily News',
441
+ show_filename = 'SDN',
442
+ url = 'https://somesite.org/sdn-feed.rss'
443
+ )
439
444
 
440
- SD.show = 'Skywalker Daily News'
441
- SD.show_filename = 'SDN'
442
- SD.url = 'https://somesite.org/sdn-feed.rss'
443
445
  SD.notifications.enable_all = False
444
446
 
445
447
  SD.run()
@@ -452,11 +454,12 @@ To adjust the level of compression applied with FFmppeg, add a line like this:
452
454
  ````python
453
455
  from talklib import TLShow
454
456
 
455
- SD = TLShow()
457
+ SD = TLShow(
458
+ show = 'Skywalker Daily News',
459
+ show_filename = 'SDN',
460
+ url = 'https://somesite.org/sdn-feed.rss'
461
+ )
456
462
 
457
- SD.show = 'Skywalker Daily News'
458
- SD.show_filename = 'SDN'
459
- SD.url = 'https://somesite.org/sdn-feed.rss'
460
463
  SD.ffmpeg.compression_level = 18
461
464
 
462
465
  SD.run()
@@ -496,12 +499,11 @@ from talklib import TLPod
496
499
  nyt = TLPod(
497
500
  display_name = "New York Times",
498
501
  filename_to_match = "nyt",
499
- )
502
+ )
500
503
  nyt.run()
501
504
  ````
502
505
 
503
506
 
504
-
505
507
  The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
506
508
 
507
509
  ````python
@@ -511,7 +513,7 @@ nyt = TLPod(
511
513
  display_name = "New York Times",
512
514
  filename_to_match = "nyt",
513
515
  max_episodes_in_feed = 7
514
- )
516
+ )
515
517
  nyt.run()
516
518
  ````
517
519
 
@@ -525,7 +527,7 @@ from talklib import TLPod
525
527
  nyt = TLPod(
526
528
  display_name = "New York Times",
527
529
  filename_to_match = "nyt",
528
- )
530
+ )
529
531
  nyt.notifications.notify.enable_all = False
530
532
  nyt.run()
531
533
  ````
@@ -539,7 +541,7 @@ nyt = TLPod(
539
541
  display_name = "New York Times",
540
542
  filename_to_match = "nyt",
541
543
  bucket_folder = "newyorktimes"
542
- )
544
+ )
543
545
  nyt.run()
544
546
  ````
545
547
 
@@ -273,11 +273,11 @@ Here is an example script:
273
273
  ````python
274
274
  from talklib import TLShow
275
275
 
276
- SD = TLShow()
277
-
278
- SD.show = 'Skywalker Daily News'
279
- SD.show_filename = 'SDN'
280
- SD.url = 'https://somesite.org/sdn-feed.rss'
276
+ SD = TLShow(
277
+ show = 'Skywalker Daily News',
278
+ show_filename = 'SDN',
279
+ url = 'https://somesite.org/sdn-feed.rss'
280
+ )
281
281
 
282
282
  SD.run()
283
283
  ````
@@ -293,12 +293,12 @@ Here is an example script:
293
293
  ````python
294
294
  from talklib import TLShow
295
295
 
296
- MWB = TLShow()
297
-
298
- MWB.show = 'Magical World of Bees'
299
- MWB.show_filename = 'MWB'
300
- MWB.is_local = True
301
- MWB.local_file = 'D:Production\path\to\the\file.wav'
296
+ MWB = TLShow(
297
+ show = 'Magical World of Bees',
298
+ show_filename = 'MWB',
299
+ is_local = True,
300
+ local_file = 'D:Production\path\to\the\file.wav'
301
+ )
302
302
 
303
303
  MWB.run()
304
304
  ````
@@ -314,12 +314,12 @@ Here is an example script:
314
314
  ````python
315
315
  from talklib import TLShow
316
316
 
317
- WK = TLShow()
318
-
319
- WK.show = 'Who Knows'
320
- WK.show_filename = 'WhoKnows'
321
- WK.url = 'https://somesite.org/who-knows-static'
322
- WK.is_permalink = True
317
+ WK = TLShow(
318
+ show = 'Who Knows',
319
+ show_filename = 'WhoKnows',
320
+ url = 'https://somesite.org/who-knows-static',
321
+ is_permalink = True
322
+ )
323
323
 
324
324
  WK.run()
325
325
  ````
@@ -335,11 +335,12 @@ To disable Twilio notifications, simply add a line like this:
335
335
  ````python
336
336
  from talklib import TLShow
337
337
 
338
- SD = TLShow()
338
+ SD = TLShow(
339
+ show = 'Skywalker Daily News',
340
+ show_filename = 'SDN',
341
+ url = 'https://somesite.org/sdn-feed.rss'
342
+ )
339
343
 
340
- SD.show = 'Skywalker Daily News'
341
- SD.show_filename = 'SDN'
342
- SD.url = 'https://somesite.org/sdn-feed.rss'
343
344
  SD.notifications.twilio_enable = False
344
345
 
345
346
  SD.run()
@@ -354,11 +355,12 @@ To disable ALL notifications, add a line like this:
354
355
  ````python
355
356
  from talklib import TLShow
356
357
 
357
- SD = TLShow()
358
+ SD = TLShow(
359
+ show = 'Skywalker Daily News',
360
+ show_filename = 'SDN',
361
+ url = 'https://somesite.org/sdn-feed.rss'
362
+ )
358
363
 
359
- SD.show = 'Skywalker Daily News'
360
- SD.show_filename = 'SDN'
361
- SD.url = 'https://somesite.org/sdn-feed.rss'
362
364
  SD.notifications.enable_all = False
363
365
 
364
366
  SD.run()
@@ -371,11 +373,12 @@ To adjust the level of compression applied with FFmppeg, add a line like this:
371
373
  ````python
372
374
  from talklib import TLShow
373
375
 
374
- SD = TLShow()
376
+ SD = TLShow(
377
+ show = 'Skywalker Daily News',
378
+ show_filename = 'SDN',
379
+ url = 'https://somesite.org/sdn-feed.rss'
380
+ )
375
381
 
376
- SD.show = 'Skywalker Daily News'
377
- SD.show_filename = 'SDN'
378
- SD.url = 'https://somesite.org/sdn-feed.rss'
379
382
  SD.ffmpeg.compression_level = 18
380
383
 
381
384
  SD.run()
@@ -415,12 +418,11 @@ from talklib import TLPod
415
418
  nyt = TLPod(
416
419
  display_name = "New York Times",
417
420
  filename_to_match = "nyt",
418
- )
421
+ )
419
422
  nyt.run()
420
423
  ````
421
424
 
422
425
 
423
-
424
426
  The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
425
427
 
426
428
  ````python
@@ -430,7 +432,7 @@ nyt = TLPod(
430
432
  display_name = "New York Times",
431
433
  filename_to_match = "nyt",
432
434
  max_episodes_in_feed = 7
433
- )
435
+ )
434
436
  nyt.run()
435
437
  ````
436
438
 
@@ -444,7 +446,7 @@ from talklib import TLPod
444
446
  nyt = TLPod(
445
447
  display_name = "New York Times",
446
448
  filename_to_match = "nyt",
447
- )
449
+ )
448
450
  nyt.notifications.notify.enable_all = False
449
451
  nyt.run()
450
452
  ````
@@ -458,7 +460,7 @@ nyt = TLPod(
458
460
  display_name = "New York Times",
459
461
  filename_to_match = "nyt",
460
462
  bucket_folder = "newyorktimes"
461
- )
463
+ )
462
464
  nyt.run()
463
465
  ````
464
466
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "talklib"
3
- version = "3.6.0"
3
+ version = "3.6.2"
4
4
  description = "A package to automate processing of shows/segments airing on the TL"
5
5
  readme = "README.md"
6
6
  license = "MIT-open-group"
@@ -1,5 +1,5 @@
1
1
  aiohappyeyeballs==2.6.1
2
- aiohttp==3.13.5
2
+ aiohttp==3.14.1
3
3
  aiohttp-retry==2.8.3
4
4
  aiosignal==1.4.0
5
5
  annotated-types==0.7.0
@@ -389,6 +389,18 @@ class TLPod(BaseModel):
389
389
 
390
390
  return self
391
391
 
392
+ @model_validator(mode='after')
393
+ def check_apache_assets_server(self):
394
+ '''check that the Assets server is reachable via HTTP and notify staff if not. Do not hault automation'''
395
+ url: str = "https://assets.library.nashville.gov"
396
+ req_get = requests.get(url=url)
397
+ req_post = requests.post(url=url)
398
+ if not (req_get.ok and req_post.ok):
399
+ to_send: str = "It looks like Apache may not be running on the Assets server. We are unable to make HTTPS requests...automation should be able to continue via SSH."
400
+ self.notifications.send_notifications(message=to_send, subject="Warning", syslog_level="Warning")
401
+
402
+ return self
403
+
392
404
  # @model_validator(mode='after')
393
405
  # def confirm_SSH_connection(self):
394
406
  # # before we carry on, make sure we can successfully connect to the server
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talklib
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A package to automate processing of shows/segments airing on the TL
5
5
  Author-email: Ben Weddle <ben.weddle@gmail.com>
6
6
  Maintainer-email: Ben Weddle <ben.weddle@gmail.com>
@@ -11,7 +11,7 @@ Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE.txt
13
13
  Requires-Dist: aiohappyeyeballs==2.6.1
14
- Requires-Dist: aiohttp==3.13.5
14
+ Requires-Dist: aiohttp==3.14.1
15
15
  Requires-Dist: aiohttp-retry==2.8.3
16
16
  Requires-Dist: aiosignal==1.4.0
17
17
  Requires-Dist: annotated-types==0.7.0
@@ -354,11 +354,11 @@ Here is an example script:
354
354
  ````python
355
355
  from talklib import TLShow
356
356
 
357
- SD = TLShow()
358
-
359
- SD.show = 'Skywalker Daily News'
360
- SD.show_filename = 'SDN'
361
- SD.url = 'https://somesite.org/sdn-feed.rss'
357
+ SD = TLShow(
358
+ show = 'Skywalker Daily News',
359
+ show_filename = 'SDN',
360
+ url = 'https://somesite.org/sdn-feed.rss'
361
+ )
362
362
 
363
363
  SD.run()
364
364
  ````
@@ -374,12 +374,12 @@ Here is an example script:
374
374
  ````python
375
375
  from talklib import TLShow
376
376
 
377
- MWB = TLShow()
378
-
379
- MWB.show = 'Magical World of Bees'
380
- MWB.show_filename = 'MWB'
381
- MWB.is_local = True
382
- MWB.local_file = 'D:Production\path\to\the\file.wav'
377
+ MWB = TLShow(
378
+ show = 'Magical World of Bees',
379
+ show_filename = 'MWB',
380
+ is_local = True,
381
+ local_file = 'D:Production\path\to\the\file.wav'
382
+ )
383
383
 
384
384
  MWB.run()
385
385
  ````
@@ -395,12 +395,12 @@ Here is an example script:
395
395
  ````python
396
396
  from talklib import TLShow
397
397
 
398
- WK = TLShow()
399
-
400
- WK.show = 'Who Knows'
401
- WK.show_filename = 'WhoKnows'
402
- WK.url = 'https://somesite.org/who-knows-static'
403
- WK.is_permalink = True
398
+ WK = TLShow(
399
+ show = 'Who Knows',
400
+ show_filename = 'WhoKnows',
401
+ url = 'https://somesite.org/who-knows-static',
402
+ is_permalink = True
403
+ )
404
404
 
405
405
  WK.run()
406
406
  ````
@@ -416,11 +416,12 @@ To disable Twilio notifications, simply add a line like this:
416
416
  ````python
417
417
  from talklib import TLShow
418
418
 
419
- SD = TLShow()
419
+ SD = TLShow(
420
+ show = 'Skywalker Daily News',
421
+ show_filename = 'SDN',
422
+ url = 'https://somesite.org/sdn-feed.rss'
423
+ )
420
424
 
421
- SD.show = 'Skywalker Daily News'
422
- SD.show_filename = 'SDN'
423
- SD.url = 'https://somesite.org/sdn-feed.rss'
424
425
  SD.notifications.twilio_enable = False
425
426
 
426
427
  SD.run()
@@ -435,11 +436,12 @@ To disable ALL notifications, add a line like this:
435
436
  ````python
436
437
  from talklib import TLShow
437
438
 
438
- SD = TLShow()
439
+ SD = TLShow(
440
+ show = 'Skywalker Daily News',
441
+ show_filename = 'SDN',
442
+ url = 'https://somesite.org/sdn-feed.rss'
443
+ )
439
444
 
440
- SD.show = 'Skywalker Daily News'
441
- SD.show_filename = 'SDN'
442
- SD.url = 'https://somesite.org/sdn-feed.rss'
443
445
  SD.notifications.enable_all = False
444
446
 
445
447
  SD.run()
@@ -452,11 +454,12 @@ To adjust the level of compression applied with FFmppeg, add a line like this:
452
454
  ````python
453
455
  from talklib import TLShow
454
456
 
455
- SD = TLShow()
457
+ SD = TLShow(
458
+ show = 'Skywalker Daily News',
459
+ show_filename = 'SDN',
460
+ url = 'https://somesite.org/sdn-feed.rss'
461
+ )
456
462
 
457
- SD.show = 'Skywalker Daily News'
458
- SD.show_filename = 'SDN'
459
- SD.url = 'https://somesite.org/sdn-feed.rss'
460
463
  SD.ffmpeg.compression_level = 18
461
464
 
462
465
  SD.run()
@@ -496,12 +499,11 @@ from talklib import TLPod
496
499
  nyt = TLPod(
497
500
  display_name = "New York Times",
498
501
  filename_to_match = "nyt",
499
- )
502
+ )
500
503
  nyt.run()
501
504
  ````
502
505
 
503
506
 
504
-
505
507
  The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
506
508
 
507
509
  ````python
@@ -511,7 +513,7 @@ nyt = TLPod(
511
513
  display_name = "New York Times",
512
514
  filename_to_match = "nyt",
513
515
  max_episodes_in_feed = 7
514
- )
516
+ )
515
517
  nyt.run()
516
518
  ````
517
519
 
@@ -525,7 +527,7 @@ from talklib import TLPod
525
527
  nyt = TLPod(
526
528
  display_name = "New York Times",
527
529
  filename_to_match = "nyt",
528
- )
530
+ )
529
531
  nyt.notifications.notify.enable_all = False
530
532
  nyt.run()
531
533
  ````
@@ -539,7 +541,7 @@ nyt = TLPod(
539
541
  display_name = "New York Times",
540
542
  filename_to_match = "nyt",
541
543
  bucket_folder = "newyorktimes"
542
- )
544
+ )
543
545
  nyt.run()
544
546
  ````
545
547
 
@@ -1,5 +1,5 @@
1
1
  aiohappyeyeballs==2.6.1
2
- aiohttp==3.13.5
2
+ aiohttp==3.14.1
3
3
  aiohttp-retry==2.8.3
4
4
  aiosignal==1.4.0
5
5
  annotated-types==0.7.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes