talklib 2.0.3__tar.gz → 2.0.5__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.1
2
2
  Name: talklib
3
- Version: 2.0.3
3
+ Version: 2.0.5
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>
@@ -110,15 +110,16 @@ Requires-Dist: zipp==3.17.0
110
110
 
111
111
  *THIS README IS INTENDED TO ASSIST TL STAFF IN INSTALLING AND USING THIS PACKAGE*
112
112
 
113
- Use this module to process the following types of shows/segments:
114
- - Shows and segments we receive via RSS feed
115
- - Shows such as New York Times, Wall Street Journal, etc.
116
- - Segments such as Health in a Heartbeat, Academic Minute, etc.
117
- - Segments we receive via "permalink"
118
- - Such as PNS, Cirrus, etc.
119
- - Segments downloaded locally ahead of time
120
- - Such as Sound Beat, Animal Airwaves, etc.
121
-
113
+ This package automates two categories of things:
114
+ 1. Shows/segments we receive from outside the TL
115
+ - Shows and segments we receive via RSS feed
116
+ - Shows such as New York Times, Wall Street Journal, etc.
117
+ - Segments such as Health in a Heartbeat, Academic Minute, etc.
118
+ - Segments we receive via "permalink"
119
+ - Such as PNS, Cirrus, etc.
120
+ - Segments downloaded locally ahead of time
121
+ - Such as Sound Beat, Animal Airwaves, etc.
122
+ 2. TL Podcasts
122
123
  ---
123
124
 
124
125
  ## Requirements
@@ -150,7 +151,7 @@ This package uses Environment Variables to help with portability and keep sensit
150
151
  ---
151
152
  ## Installation
152
153
 
153
- AFTER you have all of the above [requirements](#requirements), inst
154
+ AFTER you have all of the above [requirements](#requirements), install the library:
154
155
 
155
156
  - Open a terminal/command prompt
156
157
  - ````bash
@@ -174,7 +175,7 @@ Before we begin, a general note:
174
175
  - Ensure the Batch & Python scripts are in the same directory.
175
176
  - A sample `.bat` file (`Example.bat`) is included in the [misc](https://github.com/Nashville-Public-Library/misc/tree/main/talklib_examples) repo.
176
177
  - Download this file and place it in the same folder as your Python file.
177
- - Right-Click the file and click `Unblock` so that it can be executed.
178
+ - Right-Click the file > select `Properties` > select `Unblock` so that it can be executed.
178
179
  - It is a best practice to give the `.bat` and `.py` files the same name, though it is not necessary.
179
180
  - PLEASE NOTE: the `.bat` file will run **all** Python files in the folder. This is one reason it is best to separate your Python files into different folders, each with its own `.bat` file.
180
181
 
@@ -189,7 +190,7 @@ You would schedule WR to run the `WP.bat` file, which would run the `WP.py` file
189
190
 
190
191
  ----
191
192
 
192
- ## Usage
193
+ ## Outside Shows/Segments Usage
193
194
 
194
195
  [Skip to Examples](#examples)
195
196
 
@@ -465,6 +466,78 @@ SD.ffmpeg.compression_level = 18
465
466
  SD.run()
466
467
  ````
467
468
 
469
+ ## TL Podcasts Usage
470
+
471
+ `TLPod` is the main class to use.
472
+
473
+ Import the class to your script like this:
474
+
475
+ ````python
476
+ from talklib import TLPod
477
+ ````
478
+
479
+ This is also fine:
480
+
481
+ ````python
482
+ from talklib.pod import TLPod
483
+ ````
484
+
485
+ ## Examples<a id="pod_examples"></a>
486
+
487
+ ````python
488
+ from talklib import TLPod
489
+
490
+ nyt = TLPod(
491
+ display_name = "New York Times",
492
+ filename_to_match = "nyt",
493
+ categories = ["News and Politics"]
494
+ )
495
+ nyt.run()
496
+ ````
497
+
498
+ To add multiple category tags, do this:
499
+
500
+ ````python
501
+ from talklib import TLPod
502
+
503
+ nyt = TLPod(
504
+ display_name = "New York Times",
505
+ filename_to_match = "nyt",
506
+ categories = ["News and Politics", "National News", "International News"]
507
+ )
508
+ nyt.run()
509
+ ````
510
+
511
+ The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
512
+
513
+ ````python
514
+ from talklib import TLPod
515
+
516
+ nyt = TLPod(
517
+ display_name = "New York Times",
518
+ filename_to_match = "nyt",
519
+ categories = ["News and Politics"],
520
+ max_episodes_in_feed = 7
521
+ )
522
+ nyt.run()
523
+ ````
524
+
525
+ To disable ALL notifications, add a line like this:
526
+
527
+ > This will disable all notifications **including** syslog messages
528
+
529
+ ````python
530
+ from talklib import TLPod
531
+
532
+ nyt = TLPod(
533
+ display_name = "New York Times",
534
+ filename_to_match = "nyt",
535
+ categories = ["News and Politics"],
536
+ )
537
+ nyt.notifications.notify.enable_all = False
538
+ nyt.run()
539
+ ````
540
+
468
541
  -----
469
542
  ## Development<a id="development"></a>
470
543
 
@@ -10,15 +10,16 @@
10
10
 
11
11
  *THIS README IS INTENDED TO ASSIST TL STAFF IN INSTALLING AND USING THIS PACKAGE*
12
12
 
13
- Use this module to process the following types of shows/segments:
14
- - Shows and segments we receive via RSS feed
15
- - Shows such as New York Times, Wall Street Journal, etc.
16
- - Segments such as Health in a Heartbeat, Academic Minute, etc.
17
- - Segments we receive via "permalink"
18
- - Such as PNS, Cirrus, etc.
19
- - Segments downloaded locally ahead of time
20
- - Such as Sound Beat, Animal Airwaves, etc.
21
-
13
+ This package automates two categories of things:
14
+ 1. Shows/segments we receive from outside the TL
15
+ - Shows and segments we receive via RSS feed
16
+ - Shows such as New York Times, Wall Street Journal, etc.
17
+ - Segments such as Health in a Heartbeat, Academic Minute, etc.
18
+ - Segments we receive via "permalink"
19
+ - Such as PNS, Cirrus, etc.
20
+ - Segments downloaded locally ahead of time
21
+ - Such as Sound Beat, Animal Airwaves, etc.
22
+ 2. TL Podcasts
22
23
  ---
23
24
 
24
25
  ## Requirements
@@ -50,7 +51,7 @@ This package uses Environment Variables to help with portability and keep sensit
50
51
  ---
51
52
  ## Installation
52
53
 
53
- AFTER you have all of the above [requirements](#requirements), inst
54
+ AFTER you have all of the above [requirements](#requirements), install the library:
54
55
 
55
56
  - Open a terminal/command prompt
56
57
  - ````bash
@@ -74,7 +75,7 @@ Before we begin, a general note:
74
75
  - Ensure the Batch & Python scripts are in the same directory.
75
76
  - A sample `.bat` file (`Example.bat`) is included in the [misc](https://github.com/Nashville-Public-Library/misc/tree/main/talklib_examples) repo.
76
77
  - Download this file and place it in the same folder as your Python file.
77
- - Right-Click the file and click `Unblock` so that it can be executed.
78
+ - Right-Click the file > select `Properties` > select `Unblock` so that it can be executed.
78
79
  - It is a best practice to give the `.bat` and `.py` files the same name, though it is not necessary.
79
80
  - PLEASE NOTE: the `.bat` file will run **all** Python files in the folder. This is one reason it is best to separate your Python files into different folders, each with its own `.bat` file.
80
81
 
@@ -89,7 +90,7 @@ You would schedule WR to run the `WP.bat` file, which would run the `WP.py` file
89
90
 
90
91
  ----
91
92
 
92
- ## Usage
93
+ ## Outside Shows/Segments Usage
93
94
 
94
95
  [Skip to Examples](#examples)
95
96
 
@@ -365,6 +366,78 @@ SD.ffmpeg.compression_level = 18
365
366
  SD.run()
366
367
  ````
367
368
 
369
+ ## TL Podcasts Usage
370
+
371
+ `TLPod` is the main class to use.
372
+
373
+ Import the class to your script like this:
374
+
375
+ ````python
376
+ from talklib import TLPod
377
+ ````
378
+
379
+ This is also fine:
380
+
381
+ ````python
382
+ from talklib.pod import TLPod
383
+ ````
384
+
385
+ ## Examples<a id="pod_examples"></a>
386
+
387
+ ````python
388
+ from talklib import TLPod
389
+
390
+ nyt = TLPod(
391
+ display_name = "New York Times",
392
+ filename_to_match = "nyt",
393
+ categories = ["News and Politics"]
394
+ )
395
+ nyt.run()
396
+ ````
397
+
398
+ To add multiple category tags, do this:
399
+
400
+ ````python
401
+ from talklib import TLPod
402
+
403
+ nyt = TLPod(
404
+ display_name = "New York Times",
405
+ filename_to_match = "nyt",
406
+ categories = ["News and Politics", "National News", "International News"]
407
+ )
408
+ nyt.run()
409
+ ````
410
+
411
+ The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
412
+
413
+ ````python
414
+ from talklib import TLPod
415
+
416
+ nyt = TLPod(
417
+ display_name = "New York Times",
418
+ filename_to_match = "nyt",
419
+ categories = ["News and Politics"],
420
+ max_episodes_in_feed = 7
421
+ )
422
+ nyt.run()
423
+ ````
424
+
425
+ To disable ALL notifications, add a line like this:
426
+
427
+ > This will disable all notifications **including** syslog messages
428
+
429
+ ````python
430
+ from talklib import TLPod
431
+
432
+ nyt = TLPod(
433
+ display_name = "New York Times",
434
+ filename_to_match = "nyt",
435
+ categories = ["News and Politics"],
436
+ )
437
+ nyt.notifications.notify.enable_all = False
438
+ nyt.run()
439
+ ````
440
+
368
441
  -----
369
442
  ## Development<a id="development"></a>
370
443
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "talklib"
3
- version = "2.0.3"
3
+ version = "2.0.5"
4
4
  description = "A package to automate processing of shows/segments airing on the TL"
5
5
  readme = "README.md"
6
6
  license = {file = "LICENSE.txt"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: talklib
3
- Version: 2.0.3
3
+ Version: 2.0.5
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>
@@ -110,15 +110,16 @@ Requires-Dist: zipp==3.17.0
110
110
 
111
111
  *THIS README IS INTENDED TO ASSIST TL STAFF IN INSTALLING AND USING THIS PACKAGE*
112
112
 
113
- Use this module to process the following types of shows/segments:
114
- - Shows and segments we receive via RSS feed
115
- - Shows such as New York Times, Wall Street Journal, etc.
116
- - Segments such as Health in a Heartbeat, Academic Minute, etc.
117
- - Segments we receive via "permalink"
118
- - Such as PNS, Cirrus, etc.
119
- - Segments downloaded locally ahead of time
120
- - Such as Sound Beat, Animal Airwaves, etc.
121
-
113
+ This package automates two categories of things:
114
+ 1. Shows/segments we receive from outside the TL
115
+ - Shows and segments we receive via RSS feed
116
+ - Shows such as New York Times, Wall Street Journal, etc.
117
+ - Segments such as Health in a Heartbeat, Academic Minute, etc.
118
+ - Segments we receive via "permalink"
119
+ - Such as PNS, Cirrus, etc.
120
+ - Segments downloaded locally ahead of time
121
+ - Such as Sound Beat, Animal Airwaves, etc.
122
+ 2. TL Podcasts
122
123
  ---
123
124
 
124
125
  ## Requirements
@@ -150,7 +151,7 @@ This package uses Environment Variables to help with portability and keep sensit
150
151
  ---
151
152
  ## Installation
152
153
 
153
- AFTER you have all of the above [requirements](#requirements), inst
154
+ AFTER you have all of the above [requirements](#requirements), install the library:
154
155
 
155
156
  - Open a terminal/command prompt
156
157
  - ````bash
@@ -174,7 +175,7 @@ Before we begin, a general note:
174
175
  - Ensure the Batch & Python scripts are in the same directory.
175
176
  - A sample `.bat` file (`Example.bat`) is included in the [misc](https://github.com/Nashville-Public-Library/misc/tree/main/talklib_examples) repo.
176
177
  - Download this file and place it in the same folder as your Python file.
177
- - Right-Click the file and click `Unblock` so that it can be executed.
178
+ - Right-Click the file > select `Properties` > select `Unblock` so that it can be executed.
178
179
  - It is a best practice to give the `.bat` and `.py` files the same name, though it is not necessary.
179
180
  - PLEASE NOTE: the `.bat` file will run **all** Python files in the folder. This is one reason it is best to separate your Python files into different folders, each with its own `.bat` file.
180
181
 
@@ -189,7 +190,7 @@ You would schedule WR to run the `WP.bat` file, which would run the `WP.py` file
189
190
 
190
191
  ----
191
192
 
192
- ## Usage
193
+ ## Outside Shows/Segments Usage
193
194
 
194
195
  [Skip to Examples](#examples)
195
196
 
@@ -465,6 +466,78 @@ SD.ffmpeg.compression_level = 18
465
466
  SD.run()
466
467
  ````
467
468
 
469
+ ## TL Podcasts Usage
470
+
471
+ `TLPod` is the main class to use.
472
+
473
+ Import the class to your script like this:
474
+
475
+ ````python
476
+ from talklib import TLPod
477
+ ````
478
+
479
+ This is also fine:
480
+
481
+ ````python
482
+ from talklib.pod import TLPod
483
+ ````
484
+
485
+ ## Examples<a id="pod_examples"></a>
486
+
487
+ ````python
488
+ from talklib import TLPod
489
+
490
+ nyt = TLPod(
491
+ display_name = "New York Times",
492
+ filename_to_match = "nyt",
493
+ categories = ["News and Politics"]
494
+ )
495
+ nyt.run()
496
+ ````
497
+
498
+ To add multiple category tags, do this:
499
+
500
+ ````python
501
+ from talklib import TLPod
502
+
503
+ nyt = TLPod(
504
+ display_name = "New York Times",
505
+ filename_to_match = "nyt",
506
+ categories = ["News and Politics", "National News", "International News"]
507
+ )
508
+ nyt.run()
509
+ ````
510
+
511
+ The default number of episodes allowed in a podcast feed at any given time is 5. To change that:
512
+
513
+ ````python
514
+ from talklib import TLPod
515
+
516
+ nyt = TLPod(
517
+ display_name = "New York Times",
518
+ filename_to_match = "nyt",
519
+ categories = ["News and Politics"],
520
+ max_episodes_in_feed = 7
521
+ )
522
+ nyt.run()
523
+ ````
524
+
525
+ To disable ALL notifications, add a line like this:
526
+
527
+ > This will disable all notifications **including** syslog messages
528
+
529
+ ````python
530
+ from talklib import TLPod
531
+
532
+ nyt = TLPod(
533
+ display_name = "New York Times",
534
+ filename_to_match = "nyt",
535
+ categories = ["News and Politics"],
536
+ )
537
+ nyt.notifications.notify.enable_all = False
538
+ nyt.run()
539
+ ````
540
+
468
541
  -----
469
542
  ## Development<a id="development"></a>
470
543
 
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
File without changes