TonieToolbox 0.2.3__py3-none-any.whl → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TonieToolbox
3
- Version: 0.2.3
3
+ Version: 0.3.0
4
4
  Summary: Convert audio files to Tonie box compatible format
5
5
  Home-page: https://github.com/Quentendo64/TonieToolbox
6
6
  Author: Quentendo64
@@ -47,12 +47,14 @@ A Python tool for converting audio files to Tonie box compatible format (TAF - T
47
47
  - [Advanced Options](#advanced-options)
48
48
  - [Common Usage Examples](#common-usage-examples)
49
49
  - [Media Tags](#media-tags)
50
+ - [TeddyCloud Upload](#teddycloud-upload)
50
51
  - [Technical Details](#technical-details)
51
52
  - [TAF File Structure](#taf-tonie-audio-format-file-structure)
52
53
  - [File Analysis](#file-analysis)
53
54
  - [File Comparison](#file-comparison)
54
55
  - [Related Projects](#related-projects)
55
56
  - [Contributing](#contributing)
57
+ - [Legal Notice](#legal-notice)
56
58
 
57
59
  ## Overview
58
60
 
@@ -69,6 +71,8 @@ The tool provides several capabilities:
69
71
  - Compare two TAF files for debugging differences
70
72
  - Support various input formats through FFmpeg conversion
71
73
  - Extract and use audio media tags (ID3, Vorbis Comments, etc.) for better file naming
74
+ - Upload Tonie files directly to a TeddyCloud server
75
+ - Automatically upload cover artwork alongside Tonie files
72
76
 
73
77
  ## Requirements
74
78
 
@@ -167,7 +171,11 @@ tonietoolbox -h
167
171
 
168
172
  Output:
169
173
  ```
170
- usage: TonieToolbox.py [-h] [-v] [-t TIMESTAMP] [-f FFMPEG] [-o OPUSENC]
174
+ usage: TonieToolbox.py [-h] [-v] [--upload URL] [--include-artwork] [--get-tags URL]
175
+ [--ignore-ssl-verify] [--special-folder FOLDER] [--path PATH]
176
+ [--show-progress] [--connection-timeout SECONDS]
177
+ [--read-timeout SECONDS] [--max-retries RETRIES]
178
+ [--retry-delay SECONDS] [-t TIMESTAMP] [-f FFMPEG] [-o OPUSENC]
171
179
  [-b BITRATE] [-c] [-a TAG] [-n] [-i] [-s] [-r] [-O]
172
180
  [-A] [-k] [-C FILE2] [-D] [-m] [--name-template TEMPLATE]
173
181
  [--show-tags] [-d] [-T] [-q] [-Q]
@@ -179,6 +187,24 @@ positional arguments:
179
187
  SOURCE input file or directory or a file list (.lst)
180
188
  TARGET the output file name (default: ---ID---)
181
189
 
190
+ TeddyCloud Options:
191
+ --upload URL Upload to TeddyCloud instance (e.g., https://teddycloud.example.com). Supports .taf, .jpg, .jpeg, .png files.
192
+ --include-artwork Upload cover artwork image alongside the Tonie file when using --upload
193
+ --get-tags URL Get available tags from TeddyCloud instance
194
+ --ignore-ssl-verify Ignore SSL certificate verification (for self-signed certificates)
195
+ --special-folder FOLDER
196
+ Special folder to upload to (currently only "library" is supported)
197
+ --path PATH Path where to write the file on TeddyCloud server
198
+ --show-progress Show progress bar during file upload (default: enabled)
199
+ --connection-timeout SECONDS
200
+ Connection timeout in seconds (default: 10)
201
+ --read-timeout SECONDS
202
+ Read timeout in seconds (default: 300)
203
+ --max-retries RETRIES
204
+ Maximum number of retry attempts (default: 3)
205
+ --retry-delay SECONDS
206
+ Delay between retry attempts in seconds (default: 5)
207
+
182
208
  optional arguments:
183
209
  -h, --help show this help message and exit
184
210
  -v, --version show program version and exit
@@ -325,6 +351,65 @@ This will attempt to use the album information from the audio files for naming t
325
351
  tonietoolbox --recursive --use-media-tags --name-template "{date} - {album} ({artist})" "Music/Collection/"
326
352
  ```
327
353
 
354
+ ### TeddyCloud Upload
355
+
356
+ TonieToolbox can upload files directly to a TeddyCloud server, which is an alternative to the official Tonie cloud for managing custom Tonies.
357
+
358
+ #### Upload a Tonie file to TeddyCloud:
359
+
360
+ ```
361
+ tonietoolbox --upload https://teddycloud.example.com my_tonie.taf
362
+ ```
363
+
364
+ This will upload the specified Tonie file to the TeddyCloud server.
365
+
366
+ #### Upload a newly created Tonie file:
367
+
368
+ You can combine conversion and upload in a single command:
369
+
370
+ ```
371
+ tonietoolbox input.mp3 --upload https://teddycloud.example.com
372
+ ```
373
+
374
+ This will convert the input file to TAF format and then upload it to the TeddyCloud server.
375
+
376
+ #### Upload with custom path:
377
+
378
+ ```
379
+ tonietoolbox my_tonie.taf --upload https://teddycloud.example.com --path "/custom_audio"
380
+ The path needs to be existing in the TeddyCloud Library.
381
+ ```
382
+
383
+ #### Upload with artwork:
384
+
385
+ TonieToolbox can automatically find and upload cover artwork alongside your Tonie files:
386
+
387
+ ```
388
+ tonietoolbox my_tonie.taf --upload https://teddycloud.example.com --include-artwork
389
+ ```
390
+
391
+ This will:
392
+ 1. Look for cover images (like "cover.jpg", "artwork.png", etc.) in the source directory
393
+ 2. If no cover image is found, attempt to extract embedded artwork from the audio files
394
+ 3. Upload the artwork to the "/custom_img" directory on the TeddyCloud server
395
+ 4. The artwork will be uploaded with the same filename as the Tonie file for easier association
396
+
397
+ #### Recursive processing with uploads:
398
+
399
+ ```
400
+ tonietoolbox --recursive "Music/Albums" --upload https://teddycloud.example.com --include-artwork
401
+ ```
402
+
403
+ This will process all folders recursively, create TAF files, and upload both the TAF files and their cover artwork to the TeddyCloud server.
404
+
405
+ #### Upload with SSL certificate verification disabled:
406
+
407
+ ```
408
+ tonietoolbox my_tonie.taf --upload https://teddycloud.example.com --ignore-ssl-verify
409
+ ```
410
+
411
+ Use this option if the TeddyCloud server uses a self-signed certificate.
412
+
328
413
  ## Technical Details
329
414
 
330
415
  ### TAF (Tonie Audio Format) File Structure
@@ -404,3 +489,15 @@ This project is inspired by and builds upon the work of other Tonie-related open
404
489
  ## Contributing
405
490
 
406
491
  Contributions are welcome! Please feel free to submit a Pull Request.
492
+
493
+ ## Legal Notice
494
+
495
+ This project is an independent, community-driven effort created for educational and personal use purposes.
496
+
497
+ - tonies®, toniebox®, Hörfigur® are registered trademarks of [tonies GmbH](https://tonies.com).
498
+ - This project is not affiliated with, endorsed by, or connected to tonies GmbH in any way.
499
+ - TonieToolbox is provided "as is" without warranty of any kind, either express or implied.
500
+ - Users are responsible for ensuring their usage complies with all applicable copyright and intellectual property laws.
501
+ - This tool is intended for personal use with legally owned content only.
502
+
503
+ By using TonieToolbox, you acknowledge that the authors of this software take no responsibility for any potential misuse or any damages that might result from the use of this software.
@@ -1,22 +1,23 @@
1
- TonieToolbox/__init__.py,sha256=mRuWBCYSLc6tAHyVDd70qM5LHgWH7R8ClFbFfILlEso,96
2
- TonieToolbox/__main__.py,sha256=Otltlkl9Cd36BYs5_23ufCkdxguFFVzuVDwSvWDSPfI,17078
1
+ TonieToolbox/__init__.py,sha256=1DGgQLdpAkK84simgtWndHZBKXuXCb-jPnMK_wvNOWc,96
2
+ TonieToolbox/__main__.py,sha256=Y6-gjbjNbKhpEvV6wi8BpZSUXXezxfgZT5g8HfMeO4E,34078
3
3
  TonieToolbox/audio_conversion.py,sha256=ra72qsE8j2GEP_4kqDT9m6aKlnnREZhZAlpf7y83pA0,11202
4
4
  TonieToolbox/constants.py,sha256=QQWQpnCI65GByLlXLOkt2n8nALLu4m6BWp0zuhI3M04,2021
5
- TonieToolbox/dependency_manager.py,sha256=dRy8JxV3Dv1x8uWIXMonU0ArnCRknI1rkrj8MkJcyl4,27916
5
+ TonieToolbox/dependency_manager.py,sha256=EvVUO4T1CrhUXlrVk9HBgCRDER3b1BRNdgkZLSpCTho,27921
6
6
  TonieToolbox/filename_generator.py,sha256=RqQHyGTKakuWR01yMSnFVMU_HfLw3rqFxKhXNIHdTlg,3441
7
7
  TonieToolbox/logger.py,sha256=Up9fBVkOZwkY61_645bX4tienCpyVSkap-FeTV0v730,1441
8
- TonieToolbox/media_tags.py,sha256=T8osaU101iGC43NaMbbHD8mwNh-dGa_uPj7IPlhMIno,16091
8
+ TonieToolbox/media_tags.py,sha256=XzCuBcaqBPiSCBip8rWrJ3hTHDwEEN1flyPywM7CMsg,22250
9
9
  TonieToolbox/ogg_page.py,sha256=-ViaIRBgh5ayfwmyplL8QmmRr5P36X8W0DdHkSFUYUU,21948
10
10
  TonieToolbox/opus_packet.py,sha256=OcHXEe3I_K4mWPUD55prpG42sZxJsEeAxqSbFxBmb0c,7895
11
11
  TonieToolbox/recursive_processor.py,sha256=m70-oJ4MRXvI9OMy14sC9UsQIxwVEnEoA3hhLGdHhL4,13457
12
+ TonieToolbox/teddycloud.py,sha256=YRgOU3f1qVDSoV05mCCDHb4pd00aI_oD8HViIotvez4,23366
12
13
  TonieToolbox/tonie_analysis.py,sha256=kp4Wx4cTDddtF2AlS6IX4xs1vQ-mpZ0gsAy4-UdRAAM,23287
13
14
  TonieToolbox/tonie_file.py,sha256=vY0s8X4ln35ZXpdpGmBcIxgpTJAjduiVvBh34WObyrw,19647
14
15
  TonieToolbox/tonie_header.proto,sha256=WaWfwO4VrwGtscK2ujfDRKtpeBpaVPoZhI8iMmR-C0U,202
15
16
  TonieToolbox/tonie_header_pb2.py,sha256=s5bp4ULTEekgq6T61z9fDkRavyPM-3eREs20f_Pxxe8,3665
16
17
  TonieToolbox/version_handler.py,sha256=7Zx-pgzAUhz6jMplvNal1wHyxidodVxaNcAV0EMph5k,9778
17
- tonietoolbox-0.2.3.dist-info/licenses/LICENSE.md,sha256=rGoga9ZAgNco9fBapVFpWf6ri7HOBp1KRnt1uIruXMk,35190
18
- tonietoolbox-0.2.3.dist-info/METADATA,sha256=2LiL3ouh2jIdA3CD7i8nSZY-PStXbhkT8GNTZVvpgrM,12444
19
- tonietoolbox-0.2.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
20
- tonietoolbox-0.2.3.dist-info/entry_points.txt,sha256=oqpeyBxel7aScg35Xr4gZKnf486S5KW9okqeBwyJxxc,60
21
- tonietoolbox-0.2.3.dist-info/top_level.txt,sha256=Wkkm-2p7I3ENfS7ZbYtYUB2g-xwHrXVlERHfonsOPuE,13
22
- tonietoolbox-0.2.3.dist-info/RECORD,,
18
+ tonietoolbox-0.3.0.dist-info/licenses/LICENSE.md,sha256=rGoga9ZAgNco9fBapVFpWf6ri7HOBp1KRnt1uIruXMk,35190
19
+ tonietoolbox-0.3.0.dist-info/METADATA,sha256=17k_CP3FXVhfO60HrS3CWP1bfN-pGNwNFwtfd9QzQj4,16695
20
+ tonietoolbox-0.3.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
21
+ tonietoolbox-0.3.0.dist-info/entry_points.txt,sha256=oqpeyBxel7aScg35Xr4gZKnf486S5KW9okqeBwyJxxc,60
22
+ tonietoolbox-0.3.0.dist-info/top_level.txt,sha256=Wkkm-2p7I3ENfS7ZbYtYUB2g-xwHrXVlERHfonsOPuE,13
23
+ tonietoolbox-0.3.0.dist-info/RECORD,,