Compare commits

...
88 Commits
Author SHA1 Message Date
Andrew Beveridge 45f13fdd2f Fixed non_interactive 2024-07-14 03:49:48 -04:00
Andrew Beveridge 87abc4720f Added non_interactive mode for finalise 2024-07-14 03:01:53 -04:00
Andrew Beveridge aaf1480964 Fix pyperclip in docker 2024-07-14 00:44:24 -04:00
Andrew Beveridge cc84254988 Updated to latest separator with model default tweak to use bs roformer 2024-07-03 14:36:50 -04:00
Andrew Beveridge 64924f5fee Added params to fix lyrics artist and title 2024-06-30 21:43:21 -04:00
Andrew Beveridge d8327936aa Updated finalise to remove with vocals MOV and allow re-running with only with vocals MP4 existing (to save disk space) 2024-06-26 12:32:37 -04:00
Andrew Beveridge 91c0db6f72 Fixed one more end video concat bug 2024-06-26 01:52:37 -04:00
Andrew Beveridge 1a8503730d Fixed bug with end video 2024-06-26 01:45:06 -04:00
Andrew Beveridge b0914f21dd Got TXT generation working 2024-06-26 01:36:50 -04:00
Andrew Beveridge 4867a6fa0c Added lyrics conversion to generate TXT format output zip 2024-06-26 01:17:06 -04:00
Andrew Beveridge 3e133ef787 Added lots more configuration options for the title and end screens 2024-06-26 00:27:37 -04:00
Andrew Beveridge 4b6845faff Added configurable title video and end video with ability to pass in existing image for either and customise duration 2024-06-25 23:06:33 -04:00
Andrew Beveridge 8181db5278 Added ability to specify existing instrumental track and existing title image file 2024-06-25 21:51:42 -04:00
Andrew Beveridge c17b6ca57e Added with vocals mp4 output 2024-06-25 21:16:58 -04:00
Andrew Beveridge 671eabea78 Updated dependencies, added non-standard space character cleanup 2024-06-18 17:28:12 -04:00
Andrew Beveridge e967a7e1d8 Merge branch 'main' of github.com:karaokenerds/karaoke-prep 2024-05-28 17:24:12 -04:00
Andrew Beveridge bb756c4740 Added skip CDG flag 2024-05-28 16:32:22 -04:00
Andrew Beveridge ☄️ ac4d8d5394 Merge pull request #1 from empz/improve-readme-windows
Improve readme Windows instructions.
2024-05-26 21:34:35 -04:00
Emiliano Parizzi 2530f150bc Improve readme Windows instructions. 2024-05-27 00:58:37 +02:00
Andrew Beveridge ee634ae70a Updated separator to latest to use mel roformer by default 2024-05-25 00:24:09 -04:00
Andrew Beveridge 06b670e62f Updated final mp4 render to use concat filter instead of demuxer which is buggy 2024-04-24 23:19:11 -04:00
Andrew Beveridge 008c09a72e Added folder processing with filename track and title pattern extraction and a dry run mode for easier bulk processing of local files 2024-04-01 17:21:17 -05:00
Andrew Beveridge 0587334eec Modified default models to remove buggy / resource hog HP9 2024-03-28 14:05:24 -05:00
Andrew Beveridge b3319774c2 Fixed audio-separator instantiation to work with latest version 2024-03-28 14:02:36 -05:00
Andrew Beveridge 6306c274cc Updated default models to use newer models 2024-03-24 00:10:21 -05:00
Andrew Beveridge f2bf347234 Updated to latest audio-separator 2024-03-23 22:23:04 -05:00
Andrew Beveridge e225dfcefc Updated to latest audio-separator, added additional default model to CLI 2024-03-02 23:25:39 -05:00
Andrew Beveridge d4ff5878a7 Fixed bug with artist and title only usage 2024-02-09 11:44:36 -05:00
Andrew Beveridge 8d11222f82 Updated to latest audio-separator, added support for multiple models 2024-02-06 23:27:21 -06:00
Andrew Beveridge ☄️ 010632d919 Added PyTorch CUDA instructions to README.md 2024-01-29 11:31:10 -05:00
Andrew Beveridge 299444c3e3 Updated install docs 2024-01-29 10:59:01 -05:00
Andrew Beveridge 6be2e9908f Tweaked logging 2024-01-28 13:31:00 -05:00
Andrew Beveridge d28595e273 Improved instrumental matching logic 2024-01-28 11:52:24 -05:00
Andrew Beveridge 13b3ad1b76 Fixed check for existing video, improved instrumental selection, updated deps 2024-01-28 11:29:08 -05:00
Andrew Beveridge a43cd39186 Added truncation to youtube title to handle long names 2024-01-22 12:35:14 -06:00
Andrew Beveridge e65b7d5c0a Fixed escaping for ffmpeg concat with quotes in filenames 2024-01-22 11:17:45 -06:00
Andrew Beveridge fe354fbad9 Fixed bug with output info 2024-01-22 01:06:58 -06:00
Andrew Beveridge 7d0fcfb33d Added support for local media file as input, not only URLs 2024-01-22 01:02:49 -06:00
Andrew Beveridge da594bdcd1 Added better error handling and user prompted overwrites to allow re-running more easily in case an error occurs 2024-01-21 23:31:19 -06:00
Andrew Beveridge 88eb6717c9 Fixed various bugs, improved log output for new functions 2024-01-21 22:15:06 -06:00
Andrew Beveridge 402aabe960 Bumped version to reflect recent refactoring and improvements 2024-01-21 21:20:10 -06:00
Andrew Beveridge f7fcf49954 Refactored more to break up process further and improve consistency in user input handling 2024-01-21 21:19:27 -06:00
Andrew Beveridge 3da47b69bc Refactored finalise class to split up into more testable functions 2024-01-21 19:46:33 -06:00
Andrew Beveridge e8165149dd Added exclusion of hidden files (e.g. .DS_Store) to rclone 2024-01-21 01:55:16 -06:00
Andrew Beveridge 6544edf04b Added jpg output file format for title image and set this as the video thumbnail on youtube automatically in finalisation step. Removed topic from youtube search as was getting worse results than without. Fixed conda env to work with poetry install. 2024-01-21 00:44:07 -06:00
Andrew Beveridge fa9ec1a75a Added MP4 and CDG parent dirs to public folder, added hyphen between track code and name, removed (Karaoke) from public dir 2024-01-12 21:35:19 -06:00
Andrew Beveridge 1dd474d25f Added conda environment with platform lock files generated by conda-lock, bumped poetry dependencies 2024-01-12 20:49:27 -06:00
Andrew Beveridge 4ada4ba039 Upgraded audio-separator to get normalization fixes 2024-01-09 00:38:02 -06:00
Andrew Beveridge ba1a1b90f7 Fixed handling of playlists, added failsafes to lyrics splitting logic to prevent infinite loop 2024-01-08 18:53:59 -06:00
Andrew Beveridge 88d07bb862 Improved media download filename detection, added failsafes for long lines with no spaces in lyrics 2024-01-08 18:15:23 -06:00
Andrew Beveridge 4a292fabd3 Refactored to make less assumptions about input coming from youtube, working towards supporting inputs from other sites too 2024-01-08 17:43:51 -06:00
Andrew Beveridge ceef4f5081 Added copy of processed lyrics to clipboard during prep 2024-01-08 14:35:07 -06:00
Andrew Beveridge d33ad04016 Added instrumental_format to CLI 2024-01-08 13:45:49 -06:00
Andrew Beveridge 513f8181df Added youtube uploading functionality 2024-01-08 02:25:53 -06:00
Andrew Beveridge fd49ca3c68 Reworked finalisation significantly to incorporate more features for nomad workflow, changed prep to also output lossless formats as well as lossy 2024-01-08 01:33:35 -06:00
Andrew Beveridge d064d8388a Fixed misuse of new audio-separator interface 2024-01-07 21:40:09 -06:00
Andrew Beveridge 096e499f6a Updated to use latest version of audio-separator with new module structure and platform-specific extras. FOr now only silicon supported as extra due to Poetry limitations... 2024-01-07 21:29:47 -06:00
Andrew Beveridge ee6874d094 Fixed ffmpeg download path 2023-12-20 23:41:46 -06:00
Andrew Beveridge 798ee11121 Moved to download ffmpeg using script 2023-12-20 23:38:22 -06:00
Andrew Beveridge bbb15b9744 Attempt to build windows binary with ffmpeg bundled 2023-12-20 23:33:40 -06:00
Andrew Beveridge c643fa6d73 Add all executable paths 2023-12-20 23:11:33 -06:00
Andrew Beveridge 390892ba2d One file, upload whole build dir 2023-12-20 23:10:40 -06:00
Andrew Beveridge aaef3376ae Attempt 2 at windows build config 2023-12-20 22:55:16 -06:00
Andrew Beveridge ad9492d7e3 Attempt to get pyinstaller building windows executable from github actions 2023-12-20 22:45:26 -06:00
Andrew Beveridge 5560557c3a Restructured to hopefully include all the right files as needed by Poetry 2023-12-20 19:35:11 -06:00
Andrew Beveridge 4ce326727d Fixed include paths 2023-12-20 19:25:23 -06:00
Andrew Beveridge fe6b89be9b Added title fonts to package, changed default to open-source Montserrat 2023-12-20 19:15:44 -06:00
Andrew Beveridge 90297bd7ef Improved video download logic to not assume format is WebM, now uses YDL progress hook to get correct extension regardless 2023-12-20 18:52:24 -06:00
Andrew Beveridge 8924875c26 Fixed os compatibility for temp folder, improved lyrics cleaning, made finalise more robust with cleaner logging, made default log output quieter 2023-12-20 18:27:35 -06:00
Andrew Beveridge 27946a1dd8 Improved logging, tested, readme, etc. 2023-12-20 16:23:44 -06:00
Andrew Beveridge b701920c75 Moved things around, made finalise a class, improved README to explain much more about usage 2023-12-20 14:10:08 -06:00
Andrew Beveridge 0c77999c46 Fixed title screen rendering bug 2023-12-19 23:04:19 -06:00
Andrew Beveridge 341a346865 Added finalise mode to remux and join output video to produce final version 2023-12-19 17:34:07 -06:00
Andrew Beveridge a5a35c710e Fixed frame rate in title video and added silent audio track to allow for ffmpeg concat without issues 2023-12-19 17:21:47 -06:00
Andrew Beveridge ac774d9aad Added lyrics processing to split lines 2023-12-19 16:21:53 -06:00
Andrew Beveridge 2d988de0a3 Fixed persistent artist bug 2023-12-19 14:47:11 -06:00
Andrew Beveridge 6a6154fe44 Improved robustness of title screen rendering 2023-12-18 14:57:58 -06:00
Andrew Beveridge f3ebaf5858 Improved title screen generation, though still not perfect 2023-12-18 14:41:19 -06:00
Andrew Beveridge 10554f19ee Added persistent artist and updated readme 2023-12-18 00:49:29 -06:00
Andrew Beveridge ff90b72a34 Added more robust font size calculation with padding to ensure title screen text fits, added support for passing through artist when fetching all tracks in playlist 2023-12-18 00:41:37 -06:00
Andrew Beveridge 1e8a23ad50 Bumped version 2023-12-18 00:14:07 -06:00
Andrew Beveridge 9fbe04ecf8 Added pillow to dependencies to ensure latest version is used in package 2023-12-18 00:13:39 -06:00
Andrew Beveridge 224a9cfd57 Tidied help output 2023-12-18 00:02:57 -06:00
Andrew Beveridge 9f8a6edab3 Removed unnecessary moviepy dep 2023-12-18 00:01:33 -06:00
Andrew Beveridge 4bd2d121ae Fixed accidental return 2023-12-17 23:42:44 -06:00
Andrew Beveridge 5a1095556c Modified intro screen generation to use ffmpeg for speed 2023-12-17 23:41:57 -06:00
Andrew Beveridge 5877b9b8da Added initial attempt at getting intro video rendering working using moviepy 2023-12-17 23:16:26 -06:00
Andrew Beveridge bcc1196152 Added support for prepping whole playlists, made URL and artist/title optional, lazy-load separator module for faster loading 2023-12-17 20:03:45 -06:00
23 changed files with 5858 additions and 1172 deletions

No files matched your search

+33 -1
View File
@@ -4,7 +4,7 @@ on: [push, workflow_dispatch]
jobs:
# Auto-publish when version is increased
publish-job:
publish-pypi:
# Only publish on `main` branch
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
@@ -17,3 +17,35 @@ jobs:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: false
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies with Poetry
run: |
pip install poetry
poetry install
- name: Download ffmpeg binary
run: python platform/download_ffmpeg.py
- name: Build EXE with PyInstaller
run: poetry run pyinstaller karaoke-prep.spec
- name: Upload EXE as Artifact
uses: actions/upload-artifact@v2
with:
name: karaoke-prep-windows
path: |
build/
*.exe
*/*.exe
+1 -1
View File
@@ -40,7 +40,7 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# *.spec
# Installer logs
pip-log.txt
+132 -13
View File
@@ -15,13 +15,63 @@ This was created to make it easier for me to prepare the source audio, lyrics an
- Easy Configuration: Control the tool's behavior using command-line arguments.
- Organized Outputs: Creates structured output directories for easy access to generated tracks and lyrics.
- Internet First: Completes operations which require internet first, in case user is preparing last-minute before a period of being offline!
- Flexible Input: provide just a YouTube URL, just an artist and title, or both.
- Playlist Processing: Capable of processing an entire YouTube playlist, extracting audio and lyrics for each track.
- Easy Finalisation: After manually performing your sync (e.g. using [MidiCo](https://www.midicokaraoke.com)), run `karaoke-finalise` to remux and add your title screen!
## Installation 🛠️
You'll need Python version 3.9, 3.10 or 3.11 (newer versions aren't supported by PyTorch or ONNX Runtime yet).
### Windows Prerequisites
- [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
- [FFmpeg](https://ffmpeg.org/download.html)
You can install Karaoke Prep using pip:
`pip install karaoke-prep`
You'll then also need to install a version of `audio-separator` for your hardware:
- Mac with Apple Silicon: `pip install audio-separator[silicon]`
- Linux/Windows with CUDA GPU: `pip install audio-separator[gpu]`
- Anything else: `pip install audio-separator[cpu]`
#### Install PyTorch with CUDA support
If you're trying to use CUDA for GPU acceleration, you'll also need to ensure the version of PyTorch you have installed is compatible with the CUDA version you have installed.
While PyTorch should get installed as a dependency of `karaoke-prep` anyway, you may need to install PyTorch for your CUDA version by running the installation command provided by the official install wizard: https://pytorch.org/get-started/locally/
#### UnicodeEncodeError
If you encounter this error: `UnicodeEncodeError: 'charmap' codec can't encode character`
Try setting the Python I/O encoding in your environment: `export PYTHONIOENCODING=utf-8`
#### Command-line newbie?
If you aren't sure what `pip` is or how to use the command line, here are some YouTube tutorials which will probably help:
- Install Python on Windows: https://www.youtube.com/watch?v=YKSpANU8jPE
- Command Line basics Windows: https://www.youtube.com/watch?v=MBBWVgE0ewk
- Install Python on Mac: https://www.youtube.com/watch?v=3-sPfR4JEQ8
- Command Line basics Mac: https://www.youtube.com/watch?v=FfT8OfMpARM
## Karaoke production guide using karaoke-prep and MidiCo
- Get a Genius API Access Token ([docs](https://docs.genius.com/)) and set it as an environment variable named `GENIUS_API_TOKEN`
- Run `karaoke-prep <Artist> <Title>` to fetch and prep the files above
- Wait for it to output at least the WAV file and lyrics (you can leave it running in the background while you sync)
- Open the WAV file in MidiCo: `(YouTube xxxxxxxxxxx).wav`
- Copy/paste the lyrics into MidiCo: `(Lyrics Processed).txt`
- Perform the lyrics sync (here's a [video](https://www.youtube.com/watch?v=63-Fk3mfZ7Q) showing me doing it) in MidiCo
- Render the video to 4k using the MidiCo "Export Movie" feature, saving it as `Artist - Title (Karaoke).mov` in the same folder
- Run `karaoke-finalise` to remux the instrumental audio and join the title clip to the start
- Upload the resulting `Artist - Title (Final Karaoke).mp4` video to YouTube!
Here's my [tutorial video with verbal explanation](https://www.youtube.com/watch?v=ZsROHgqAVHs) of the whole process, and here's a [normal speed demo](https://www.youtube.com/watch?v=63-Fk3mfZ7Q) of me doing it (8 minutes total for a single track).
## Usage 🚀
@@ -37,9 +87,7 @@ usage: karaoke-prep [-h] [-v] [--log_level LOG_LEVEL] [--model_name MODEL_NAME]
Fetch audio and lyrics for a specified song, to prepare karaoke video creation.
positional arguments:
artist Artist name for the song to prep.
title Title of the song to prep.
url YouTube URL of the song to prep.
args [YouTube video or playlist URL] [Artist] [Title] of song to prep. If URL is provided, Artist and Title are optional but increase chance of fetching the correct lyrics. If Artist and Title are provided with no URL, the top YouTube search result will be fetched.
options:
-h, --help show this help message and exit
@@ -52,28 +100,99 @@ options:
--use_coreml Optional: use Apple Silicon GPU with CoreML for separation (default: False). Example: --use_coreml=true
--denoise DENOISE Optional: enable or disable denoising during separation (default: True). Example: --denoise=False
--normalize NORMALIZE Optional: enable or disable normalization during separation (default: True). Example: --normalize=False
--no_track_subfolders Optional:do NOT create a named subfolder for each track. Example: --no_track_subfolders
--no_track_subfolders Optional: do NOT create a named subfolder for each track. Example: --no_track_subfolders
--intro_background_color INTRO_BACKGROUND_COLOR Optional: Background color for intro video (default: black). Example: --intro_background_color=#123456
--intro_background_image INTRO_BACKGROUND_IMAGE Optional: Path to background image for intro video. Overrides background color if provided. Example: --intro_background_image=path/to/image.jpg
--intro_font INTRO_FONT Optional: Font file for intro video (default: Avenir-Next-Bold). Example: --intro_font=AvenirNext-Bold.ttf
--intro_artist_color INTRO_ARTIST_COLOR Optional: Font color for intro video artist text (default: #ff7acc). Example: --intro_artist_color=#123456
--intro_title_color INTRO_TITLE_COLOR Optional: Font color for intro video title text (default: #ffdf6b). Example: --intro_title_color=#123456
```
Example:
### ⭐ YouTube URL with Artist and Title
For the most consistent results, provide a specific YouTube URL along with the artist and title like so:
```
karaoke-prep "https://www.youtube.com/watch?v=YOUR_VIDEO_ID" "The Fray" "Never Say Never"
```
### Artist and Title Only
If you don't have a specific YouTube URL, just provide the artist and title. Karaoke Prep will search for and download the top YouTube result.
```
karaoke-prep "The Fray" "Never Say Never"
```
This command will search YouTube for the specified song, download audio from the top result and lyrics from genius, then separate the audio to produce an instrumental track, ready for a karaoke video to be created by whatever process you prefer!
### Only YouTube URL
By default, you'll end up with files in the current folder, neatly organised e.g.
This will process the video at the given URL, *guessing the artist and title from the YouTube title*.
⚠️ Be aware the downloaded lyrics may be incorrect if the video title doesn't match the standard "Artist - Title" format.
```
├── Artist - Title (Instrumental UVR-MDX-NET-Inst_HQ_3).flac
├── Artist - Title (Instrumental UVR_MDXNET_KARA_2).flac
├── Artist - Title (Lyrics).txt
├── Artist - Title (Vocals UVR-MDX-NET-Inst_HQ_3).flac
├── Artist - Title (Vocals UVR_MDXNET_KARA_2).flac
└── Artist - Title (YouTube CNUgemJBLTw).wav
karaoke-prep "https://www.youtube.com/watch?v=YOUR_VIDEO_ID"
```
### YouTube Playlist URL
To process a playlist, just provide the playlist URL. The script will process every video in the playlist.
⚠️ Be aware the downloaded _lyrics_ for each track may be incorrect if the video titles don't match the standard "Artist - Title" format.
```
karaoke-prep "https://www.youtube.com/playlist?list=YOUR_PLAYLIST_ID"
```
## Files produced by karaoke-prep and what to do with them
After running `karaoke-prep` you should have the following 11 files, grouped into folder(s) for each track:
- `Artist - Title (YouTube xxxxxxxxxxx).webm`
- Original unmodified video, fetched from YouTube in the highest quality available (may not always be WebM)
- You probably don't need this unless you're creating a custom request
- `Artist - Title (YouTube xxxxxxxxxxx).png`
- A still image taken from 30 seconds into the video, in case that's useful for a custom background
- You probably don't need this unless you're creating a custom request
- `Artist - Title (YouTube xxxxxxxxxxx).wav`
- Unmodified audio from the YouTube video, converted to WAV format for compatibility
- You should open this in MidiCo to begin syncing lyrics to make your karaoke video.
- `Artist - Title (Lyrics).txt`
- Unmodified lyrics fetched from genius.com based on the artist/title provided
- Depending on the song, may have lines which are too long for one karaoke screen
- `Artist - Title (Lyrics Processed).txt`
- Lyrics from genius, split into lines no longer than 40 characters
- You should open this and copy/paste the text into the MidiCo lyrics editor
- `Artist - Title (Vocals UVR-MDX-NET-Inst_HQ_3).mp3`
- Vocal track from the audio, separated using the UVR Inst_HQ_3 model.
- You probably don't need this unless you're trying to tweak the backing track
- `Artist - Title (Vocals UVR_MDXNET_KARA_2).mp3`
- Vocal track from the audio, separated using the UVR KARA_2 model.
- You probably don't need this unless you're trying to tweak the backing track
- `Artist - Title (Instrumental UVR-MDX-NET-Inst_HQ_3).mp3`
- Instrumental track from the audio, separated using the UVR Inst_HQ_3 model.
- This is typically a safe bet for the instrumental track but will not include any backing vocals.
- `Artist - Title (Instrumental UVR_MDXNET_KARA_2).mp3`
- Instrumental track from the audio, separated using the UVR KARA_2 model.
- This is the default choice for the finalisation step below as it usually does a good job of keeping backing vocals. However for some songs it includes far too much or is kinda glitchy, so you should check it before finalising and make a judgement call about using this vs. the Inst_HQ_3 one.
- `Artist - Title (Title).png`
- Title screen static image; if you specify your own background image, font, color etc. this should give you a convenient way to add a title screen to the start of your video.
- `Artist - Title (Title).mov`
- 5 second video clip version of the title screen image, ready to be joined by the finalisation step.
## Finalisation 🎥
After completing your manual sync process and rendering your `Artist - Title (Karaoke).mov` file (still using the original audio!) into the same folder, you can now run `karaoke-finalise`.
This will output some additional files:
- `Artist - Title (Karaoke).mov`
- Karaoke video without title screen, remuxed to use the instrumental audio
- `Artist - Title (With Vocals).mov`
- Karaoke video without title screen, using the original audio (useful for practicing!)
- `Artist - Title (Final Karaoke).mp4`
- Final karaoke video with 5 second title screen intro, instrumental audio and converted to MP4 for compatibility and reduced file size. Upload this to YouTube!
## Requirements 📋
Python >= 3.9
+130
View File
@@ -0,0 +1,130 @@
# Generated by conda-lock.
# platform: linux-64
# input_hash: f64a1c4f40227315aea520256e9eb1b2ede7cf46e8f7ba4636b8299642464004
@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2#d7c89558ba9fa0495403155b64376d81
https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2023.11.17-hbcca054_0.conda#01ffc8d36f9eba0ce0b3c1955fa780ee
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-h41732ed_0.conda#7aca3059a1729aa76c597603f10b0dd3
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-13.2.0-h7e041cc_3.conda#937eaed008f6bf2191c5fe76f87755e9
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2#878f923dd6acc8aeb47a75da6c4098be
https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.12-4_cp312.conda#dccc2d142812964fcc6abdc97b672dff
https://conda.anaconda.org/conda-forge/noarch/tzdata-2023d-h0c530f3_0.conda#8dee24b8be2d9ff81e7bd4d7d97ff1b0
https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h807b86a_3.conda#7124cbb46b13d395bdde68f2d215c989
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2#73aaf86a425cc6e73fcf236a5a46396d
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h807b86a_3.conda#23fdf1fef05baeb7eadc2aed5fb0011f
https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hd590300_5.conda#69b8b6202a07720f448be700e300ccf4
https://conda.anaconda.org/conda-forge/linux-64/c-ares-1.25.0-hd590300_0.conda#89e40af02dd3a0846c0c1131c5126706
https://conda.anaconda.org/conda-forge/linux-64/fmt-10.1.1-h00ab1b0_1.conda#50a08d74ca45785f3334b175da23fd82
https://conda.anaconda.org/conda-forge/linux-64/gettext-0.21.1-h27087fc_0.tar.bz2#14947d8770185e5153fdd04d4673ed37
https://conda.anaconda.org/conda-forge/linux-64/icu-73.2-h59595ed_0.conda#cc47e1facc155f91abd89b11e48e72ff
https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.1-h166bdaf_0.tar.bz2#30186d27e2c9fa62b45fb1476b7200e3
https://conda.anaconda.org/conda-forge/linux-64/libev-4.33-hd590300_2.conda#172bf1cd1ff8629f2b1179945ed45055
https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.5.0-hcb278e6_1.conda#6305a3dd2752c76335295da4e581f2fd
https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2#d645c6d2ac96843a2bfaccd2d62b3ac3
https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-13.2.0-ha4646dd_3.conda#c714d905cdfa0e70200f68b80cc04764
https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.17-hd590300_2.conda#d66573916ffcf376178462f1b61c941e
https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hd590300_0.conda#30fd6e37fe21f86f4bd26d6ee73eeec7
https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda#40b61aab5c7ba9ff276c41cfffe6b80b
https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.36-hd590300_1.conda#5aa797f8787fe7a17d1b0821485b5adc
https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.13-hd590300_5.conda#f36c115f1ee199da648e0597ec2047ad
https://conda.anaconda.org/conda-forge/linux-64/lz4-c-1.9.4-hcb278e6_0.conda#318b08df404f9c9be5712aaa5a6f0bb0
https://conda.anaconda.org/conda-forge/linux-64/lzo-2.10-h516909a_1000.tar.bz2#bb14fcb13341b81d5eb386423b9d2bac
https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.4-h59595ed_2.conda#7dbaa197d7ba6032caf7ae7f32c1efa0
https://conda.anaconda.org/conda-forge/linux-64/openssl-3.2.0-hd590300_1.conda#603827b39ea2b835268adb8c821b8570
https://conda.anaconda.org/conda-forge/linux-64/reproc-14.2.4.post0-hd590300_1.conda#82ca53502dfd5a64a80dee76dae14685
https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2#2161070d867d1b1204ea749c8eec4ef0
https://conda.anaconda.org/conda-forge/linux-64/yaml-cpp-0.8.0-h59595ed_0.conda#965eaacd7c18eb8361fd12bb9e7a57d7
https://conda.anaconda.org/conda-forge/linux-64/expat-2.5.0-hcb278e6_1.conda#8b9b5aca60558d02ddaa09d599e55920
https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20191231-he28a2e2_2.tar.bz2#4d331e44109e3f0e19b4cb8f9b82f3e1
https://conda.anaconda.org/conda-forge/linux-64/libgfortran-ng-13.2.0-h69a702a_3.conda#73031c79546ad06f1fe62e57fdd021bc
https://conda.anaconda.org/conda-forge/linux-64/libnghttp2-1.58.0-h47da74e_1.conda#700ac6ea6d53d5510591c4344d5c989a
https://conda.anaconda.org/conda-forge/linux-64/libsolv-0.7.27-hfc55251_0.conda#7dc82edcd617c399ca7fdb51d993a0c2
https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.44.2-h2797004_0.conda#3b6a9f225c3dbe0d24f4fedd4625c5bf
https://conda.anaconda.org/conda-forge/linux-64/libssh2-1.11.0-h0841786_0.conda#1f5a58e686b13bcfde88b93f547d23fe
https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.12.3-h232c23b_0.conda#bc6ac4c0cea148d924f621985bc3892b
https://conda.anaconda.org/conda-forge/linux-64/pcre2-10.42-hcad00b1_0.conda#679c8961826aa4b50653bce17ee52abe
https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda#47d31b792659ce70f470b5c82fdfb7a4
https://conda.anaconda.org/conda-forge/linux-64/reproc-cpp-14.2.4.post0-h59595ed_1.conda#715e1d720ec1a03715bebd237972fca5
https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda#d453b98d9c83e71da0741bb0ff4d76bc
https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.5-hfc55251_0.conda#04b88013080254850d6c01ed54810589
https://conda.anaconda.org/conda-forge/linux-64/krb5-1.21.2-h659d440_0.conda#cd95826dbd331ed1be26bdf401432844
https://conda.anaconda.org/conda-forge/linux-64/libarchive-3.7.2-h2aa1ff5_1.conda#3bf887827d1968275978361a6e405e4f
https://conda.anaconda.org/conda-forge/linux-64/libglib-2.78.3-h783c2da_0.conda#9bd06b12bbfa6fd1740fd23af4b0f0c7
https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.25-pthreads_h413a1c8_0.conda#d172b34a443b95f86089e8229ddc9a17
https://conda.anaconda.org/conda-forge/linux-64/python-3.12.1-hab00c5b_1_cpython.conda#0bab699354cbd66959550eb9b9866620
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.2-pyhd8ed1ab_0.conda#0dc2fce00a160271714647c019e3a8a8
https://conda.anaconda.org/conda-forge/noarch/boltons-23.1.1-pyhd8ed1ab_0.conda#56febe65315cc388a5d20adf2b39a74d
https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.1.0-py312h30efb56_1.conda#45801a89533d3336a365284d93298e36
https://conda.anaconda.org/conda-forge/noarch/certifi-2023.11.17-pyhd8ed1ab_0.conda#2011bcf45376341dd1d690263fdbc789
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda#7f4a9e3fcff3f6356ae99244a014da6a
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2#3faab06a954c2a04039983f2c4a50d99
https://conda.anaconda.org/conda-forge/noarch/crashtest-0.4.1-pyhd8ed1ab_0.tar.bz2#709a2295dd907bb34afb57d54320642f
https://conda.anaconda.org/conda-forge/linux-64/dbus-1.13.6-h5008d03_3.tar.bz2#ecfff944ba3960ecb334b9a2663d708d
https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda#db16c66b759a64dc5183d69cc3745a52
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda#bbdb409974cd6cb30071b1d978302726
https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.1-pyhd8ed1ab_0.conda#0c1729b74a8152fde6a38ba0a2ab9f45
https://conda.anaconda.org/conda-forge/noarch/idna-3.6-pyhd8ed1ab_0.conda#1a76f09108576397c41c0b0c5bd84134
https://conda.anaconda.org/conda-forge/noarch/jeepney-0.8.0-pyhd8ed1ab_0.tar.bz2#9800ad1699b42612478755a2d26c722d
https://conda.anaconda.org/conda-forge/linux-64/jsonpointer-2.4-py312h7900ff3_3.conda#50f62bdb9b60b13c2f6ae69957342e4d
https://conda.anaconda.org/conda-forge/linux-64/libblas-3.9.0-20_linux64_openblas.conda#2b7bb4f7562c8cf334fc2e20c2d28abc
https://conda.anaconda.org/conda-forge/linux-64/libcurl-8.5.0-hca28451_0.conda#7144d5a828e2cae218e0e3c98d8a0aeb
https://conda.anaconda.org/conda-forge/linux-64/menuinst-2.0.2-py312h7900ff3_0.conda#acb03947d606ff797a036d31723490fc
https://conda.anaconda.org/conda-forge/noarch/more-itertools-10.2.0-pyhd8ed1ab_0.conda#d5c98e9706fdc5328d49a9bf2ce5fb42
https://conda.anaconda.org/conda-forge/linux-64/msgpack-python-1.0.7-py312h8572e83_0.conda#1ae83e30fae86320e888cb4b1f2d3b47
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda#79002079284aa895f883c6b7f3f88fd6
https://conda.anaconda.org/conda-forge/noarch/pkginfo-1.9.6-pyhd8ed1ab_0.conda#be1e9f1c65a1ed0f2ae9352fec99db64
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.3.0-pyhd8ed1ab_0.conda#2390bd10bed1f3fdc7a537fb5a447d8d
https://conda.anaconda.org/conda-forge/noarch/poetry-core-1.8.1-pyhd8ed1ab_0.conda#a013d99ae50670b823c511f7274d2d2a
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2#359eeb6536da0e687af562ed265ec263
https://conda.anaconda.org/conda-forge/linux-64/pycosat-0.6.6-py312h98912ed_0.conda#8f1c372e7b843167be885dc8229931c1
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2#076becd9e05608f8dc72757d5f3a91ff
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2#2a7de29fb590ca14b5243c4c812c8025
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/python-installer-0.7.0-pyhd8ed1ab_0.conda#65dea78f903d686c8b0c2feaf0e15e1f
https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml.clib-0.2.7-py312h98912ed_2.conda#17591efb6a03e1dea6567cb15c619d1c
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.0.3-pyhd8ed1ab_0.conda#40695fdfd15a92121ed2922900d0308b
https://conda.anaconda.org/conda-forge/noarch/shellingham-1.5.4-pyhd8ed1ab_0.conda#d08db09a552699ee9e7eec56b4eb3899
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2#5844808ffab9ebdb694585b50ba02a96
https://conda.anaconda.org/conda-forge/noarch/tomlkit-0.12.3-pyha770c72_0.conda#074d0ce7a6261ab8b497c3518796ef3e
https://conda.anaconda.org/conda-forge/noarch/trove-classifiers-2024.1.8-pyhd8ed1ab_0.conda#b120d43603f9b021d252fb7754b35557
https://conda.anaconda.org/conda-forge/noarch/truststore-0.8.0-pyhd8ed1ab_0.conda#08316d001eca8854392cf2837828ea11
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.9.0-pyha770c72_0.conda#a92a6440c3fe7052d63244f3aba2a4a7
https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda#1cdea58981c5cbc17b51973bcaddcea7
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/linux-64/cffi-1.16.0-py312hf06ca03_0.conda#56b0ca764ce23cc54f3f7e2a7b970f6d
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-7.0.1-pyha770c72_0.conda#746623a787e06191d80a2133e5daff17
https://conda.anaconda.org/conda-forge/noarch/jaraco.classes-3.3.0-pyhd8ed1ab_0.conda#e9f79248d30e942f7c358ff21a1790f5
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda#bfdb7c5c6ad1077c82a69a8642c87aff
https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.9.0-20_linux64_openblas.conda#36d486d72ab64ffea932329a1d3729a3
https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.9.0-20_linux64_openblas.conda#6fabc51f5e647d09cc010c40061557e0
https://conda.anaconda.org/conda-forge/linux-64/libmamba-1.5.6-had39da4_0.conda#d6213d8b3abe12c556f007894752ef41
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh1a96a4e_2.tar.bz2#330448ce4403cc74990ac07c555942a1
https://conda.anaconda.org/conda-forge/noarch/pip-23.3.2-pyhd8ed1ab_0.conda#8591c748f98dcc02253003533bc2e4b1
https://conda.anaconda.org/conda-forge/noarch/poetry-plugin-export-1.6.0-pyhd8ed1ab_0.conda#1f2184db9f337d1074b1d5769165cac9
https://conda.anaconda.org/conda-forge/noarch/pyproject_hooks-1.0.0-pyhd8ed1ab_0.conda#21de50391d584eb7f4441b9de1ad773f
https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml-0.18.5-py312h98912ed_0.conda#631213fb6dee32d9004779c5b6de3c49
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.1-pyhd8ed1ab_0.conda#03c97908b976498dcae97eb4e4f3149c
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.9.0-hd8ed1ab_0.conda#c16524c1b7227dc80b36b4fa6f77cc86
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.1.0-pyhd8ed1ab_0.conda#f8ced8ee63830dec7ecc1be048d1470a
https://conda.anaconda.org/conda-forge/linux-64/cryptography-41.0.7-py312h4742d6a_1.conda#82b6c3083757a04e8a2a4759a33df382
https://conda.anaconda.org/conda-forge/linux-64/dulwich-0.21.7-py312h98912ed_0.conda#d9768d62ebbeb330f1b67d8ab4832ff7
https://conda.anaconda.org/conda-forge/linux-64/libmambapy-1.5.6-py312hd9e9ff6_0.conda#ff2a396085f25808b6c2a6dea06546fe
https://conda.anaconda.org/conda-forge/linux-64/numpy-1.26.3-py312heda63a1_0.conda#8b63634568b70ed9110f4d03dca20988
https://conda.anaconda.org/conda-forge/noarch/platformdirs-3.11.0-pyhd8ed1ab_0.conda#8f567c0a74aa44cf732f15773b4083b0
https://conda.anaconda.org/conda-forge/noarch/python-build-1.0.3-pyhd8ed1ab_0.conda#d9ccabf228cb98419ca3d5694b25e1a2
https://conda.anaconda.org/conda-forge/noarch/requests-2.31.0-pyhd8ed1ab_0.conda#a30144e4156cdbb236f99ebb49828f8b
https://conda.anaconda.org/conda-forge/linux-64/zstandard-0.22.0-py312hd58854c_0.conda#6532ce0d6b7b6c77081ba102d3540a81
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.13.1-pyhd8ed1ab_0.conda#174bd699bb5aa9e2622eb4b288276ff8
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.9.0-pyhd8ed1ab_0.conda#38253361efb303deead3eab39ae9269b
https://conda.anaconda.org/conda-forge/linux-64/rapidfuzz-3.6.1-py312h30efb56_0.conda#b04ed89dc0b4f4581f003c3b3b5e85d6
https://conda.anaconda.org/conda-forge/noarch/requests-toolbelt-1.0.0-pyhd8ed1ab_0.conda#99c98318c8646b08cc764f90ce98906e
https://conda.anaconda.org/conda-forge/linux-64/secretstorage-3.3.3-py312h7900ff3_2.conda#39067833cbb620066d492f8bd6f11dbf
https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.0-pyhd8ed1ab_0.conda#c119653cba436d8183c27bf6d190e587
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-with-filecache-0.13.1-pyhd8ed1ab_0.conda#8c4781ca0893cff3a64423954ce234a1
https://conda.anaconda.org/conda-forge/noarch/cleo-2.1.0-pyhd8ed1ab_0.conda#69569ea8a6d1465193345a40421d138b
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.2.0-pyh38be061_0.conda#8a3ae7f6318376aa08ea753367bb7dd6
https://conda.anaconda.org/conda-forge/linux-64/keyring-24.3.0-py312h7900ff3_0.conda#c303e2ddfc697a70a137940f8a6b2e1d
https://conda.anaconda.org/conda-forge/noarch/poetry-1.7.1-linux_pyha804496_0.conda#f4ead25aee9d567898e970a107bcac7e
https://conda.anaconda.org/conda-forge/linux-64/conda-23.11.0-py312h7900ff3_1.conda#8dd6aeb5ba421f80d5b47ee253584f20
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-23.12.0-pyhd8ed1ab_0.conda#e877d5150e73a0844ea2939be110c3b1
https://conda.anaconda.org/conda-forge/linux-64/mamba-1.5.6-py312h9460a1c_0.conda#055217b5da9f10750a046e9ea10a1756
+129
View File
@@ -0,0 +1,129 @@
# Generated by conda-lock.
# platform: linux-aarch64
# input_hash: bc3de0fcb97d5683373c177f2880616dffbe0acedde12d411f84c6ff91b56e83
@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-aarch64/ca-certificates-2023.11.17-hcefe29a_0.conda#695a28440b58e3ba920bcac4ac7c73c6
https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.40-h2d8c526_0.conda#16246d69e945d0b1969a6099e7c5d457
https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-13.2.0-hf8544c7_3.conda#191eb9058c6e97ca5fea3552e348a237
https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-ng-13.2.0-h9a76618_3.conda#7ad2164936c4975d94ca883d34809c0f
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2#878f923dd6acc8aeb47a75da6c4098be
https://conda.anaconda.org/conda-forge/linux-aarch64/python_abi-3.12-4_cp312.conda#6c09f8e580146d88f649780cebed01de
https://conda.anaconda.org/conda-forge/noarch/tzdata-2023d-h0c530f3_0.conda#8dee24b8be2d9ff81e7bd4d7d97ff1b0
https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-2_gnu.tar.bz2#6168d71addc746e8f2b8d57dfd2edcea
https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-13.2.0-hf8544c7_3.conda#00f021ee1a24c798ae53c87ee79597f1
https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h31becfc_5.conda#a64e35f01e0b7a2a152eca87d33b9c87
https://conda.anaconda.org/conda-forge/linux-aarch64/c-ares-1.25.0-h31becfc_0.conda#0892c14dc88498d4cb727098141d365c
https://conda.anaconda.org/conda-forge/linux-aarch64/fmt-10.1.1-h2a328a1_1.conda#49695e320c2a672846a90ca623dce1da
https://conda.anaconda.org/conda-forge/linux-aarch64/gettext-0.21.1-ha18d298_0.tar.bz2#b109f1a4d22966793d61fd7f75b744c3
https://conda.anaconda.org/conda-forge/linux-aarch64/icu-73.2-h787c7f5_0.conda#9d3c29d71f28452a2e843aff8cbe09d2
https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.1-h4e544f5_0.tar.bz2#1f24853e59c68892452ef94ddd8afd4b
https://conda.anaconda.org/conda-forge/linux-aarch64/libev-4.33-h31becfc_2.conda#a9a13cb143bbaa477b1ebaefbe47a302
https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.5.0-hd600fc2_1.conda#6cd3d0a28437b3845c260f9d71d434d7
https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.4.2-h3557bc0_5.tar.bz2#dddd85f4d52121fab0a8b099c5e06501
https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran5-13.2.0-h582850c_3.conda#d81dcb787465447542ad9c4cf0bab65e
https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.17-h31becfc_2.conda#9a8eb13f14de7d761555a98712e6df65
https://conda.anaconda.org/conda-forge/linux-aarch64/libnsl-2.0.1-h31becfc_0.conda#c14f32510f694e3185704d89967ec422
https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.38.1-hb4cce97_0.conda#000e30b09db0b7c775b21695dff30969
https://conda.anaconda.org/conda-forge/linux-aarch64/libxcrypt-4.4.36-h31becfc_1.conda#b4df5d7d4b63579d081fd3a4cf99740e
https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.2.13-h31becfc_5.conda#b213aa87eea9491ef7b129179322e955
https://conda.anaconda.org/conda-forge/linux-aarch64/lz4-c-1.9.4-hd600fc2_0.conda#500145a83ed07ce79c8cef24252f366b
https://conda.anaconda.org/conda-forge/linux-aarch64/lzo-2.10-h516909a_1000.tar.bz2#ef5661339990c399c68c71cfb341e6d7
https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.4-h0425590_2.conda#4ff0a396150dedad4269e16e5810f769
https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.2.0-h31becfc_1.conda#b24247441ed7ce138382de2ec51200e4
https://conda.anaconda.org/conda-forge/linux-aarch64/reproc-14.2.4.post0-h31becfc_1.conda#c148bb4ba029a018527d3e4d5c7b63fa
https://conda.anaconda.org/conda-forge/linux-aarch64/xz-5.2.6-h9cdd2b7_0.tar.bz2#83baad393a31d59c20b63ba4da6592df
https://conda.anaconda.org/conda-forge/linux-aarch64/yaml-cpp-0.8.0-h2f0025b_0.conda#b5da38ee183c1e50e3e7ffb171a2eca5
https://conda.anaconda.org/conda-forge/linux-aarch64/expat-2.5.0-hd600fc2_1.conda#6dfca4be3e0080934b1105d009747e98
https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20191231-he28a2e2_2.tar.bz2#29371161d77933a54fccf1bb66b96529
https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran-ng-13.2.0-he9431aa_3.conda#6c292066bb9876d7ba35c590868baaeb
https://conda.anaconda.org/conda-forge/linux-aarch64/libnghttp2-1.58.0-hb0e430d_1.conda#8f724cdddffa79152de61f5564a3526b
https://conda.anaconda.org/conda-forge/linux-aarch64/libsolv-0.7.27-hd84c7bf_0.conda#7e092bca53956dd2fddb1eed62c22c29
https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.44.2-h194ca79_0.conda#464a0dedd1131669324946ee1c13c1a5
https://conda.anaconda.org/conda-forge/linux-aarch64/libssh2-1.11.0-h492db2e_0.conda#45532845e121677ad328c9af9953f161
https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.12.3-h3091e33_0.conda#f7582eb42bcaa458503819687da6a143
https://conda.anaconda.org/conda-forge/linux-aarch64/pcre2-10.42-hd0f9c67_0.conda#683162253dd3b6c4d21bf037e59455f4
https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.2-h8fc344f_1.conda#105eb1e16bf83bfb2eb380a48032b655
https://conda.anaconda.org/conda-forge/linux-aarch64/reproc-cpp-14.2.4.post0-h2f0025b_1.conda#35148ef0f190022ca52cf6edd6bdc814
https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-h194ca79_0.conda#f75105e0585851f818e0009dd1dde4dc
https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.5-h4c53e97_0.conda#b74eb9dbb5c3c15cb3cee7cbdf198c75
https://conda.anaconda.org/conda-forge/linux-aarch64/krb5-1.21.2-hc419048_0.conda#55b51af37bf6fdcfe06f140e62e8c8db
https://conda.anaconda.org/conda-forge/linux-aarch64/libarchive-3.7.2-hd2f85e0_1.conda#a0f2e7adbcdf4041d6ee273d07ca171e
https://conda.anaconda.org/conda-forge/linux-aarch64/libglib-2.78.3-h311d5f7_0.conda#09e44253dee99895f02cfad44dd8fea4
https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.25-pthreads_h5a5ec62_0.conda#60e86bc93e3f213278dc5081115fb63b
https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.12.1-h43d1f9e_1_cpython.conda#886aaa760e922b4f7e2522e2e0abd778
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.2-pyhd8ed1ab_0.conda#0dc2fce00a160271714647c019e3a8a8
https://conda.anaconda.org/conda-forge/noarch/boltons-23.1.1-pyhd8ed1ab_0.conda#56febe65315cc388a5d20adf2b39a74d
https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.1.0-py312h2aa54b4_1.conda#7253fd6feb797007a3d290bbcfd23a84
https://conda.anaconda.org/conda-forge/noarch/certifi-2023.11.17-pyhd8ed1ab_0.conda#2011bcf45376341dd1d690263fdbc789
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda#7f4a9e3fcff3f6356ae99244a014da6a
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2#3faab06a954c2a04039983f2c4a50d99
https://conda.anaconda.org/conda-forge/noarch/crashtest-0.4.1-pyhd8ed1ab_0.tar.bz2#709a2295dd907bb34afb57d54320642f
https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.13.6-h12b9eeb_3.tar.bz2#f3d63805602166bac09386741e00935e
https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda#db16c66b759a64dc5183d69cc3745a52
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda#bbdb409974cd6cb30071b1d978302726
https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.1-pyhd8ed1ab_0.conda#0c1729b74a8152fde6a38ba0a2ab9f45
https://conda.anaconda.org/conda-forge/noarch/idna-3.6-pyhd8ed1ab_0.conda#1a76f09108576397c41c0b0c5bd84134
https://conda.anaconda.org/conda-forge/noarch/jeepney-0.8.0-pyhd8ed1ab_0.tar.bz2#9800ad1699b42612478755a2d26c722d
https://conda.anaconda.org/conda-forge/linux-aarch64/jsonpointer-2.4-py312h996f985_3.conda#9899db49e70426c9d32b027777088fb8
https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.9.0-20_linuxaarch64_openblas.conda#11590ed0fb5cebe7bbfa4bab8d8b07f8
https://conda.anaconda.org/conda-forge/linux-aarch64/libcurl-8.5.0-h4e8248e_0.conda#fa0f5edc06ffc25a01eed005c6dc3d8c
https://conda.anaconda.org/conda-forge/linux-aarch64/menuinst-2.0.2-py312h996f985_0.conda#1a67b77c7711209b7bbed395f1a7f57e
https://conda.anaconda.org/conda-forge/noarch/more-itertools-10.2.0-pyhd8ed1ab_0.conda#d5c98e9706fdc5328d49a9bf2ce5fb42
https://conda.anaconda.org/conda-forge/linux-aarch64/msgpack-python-1.0.7-py312h721a97f_0.conda#23f5237a0807b8dc739bdb5853d2945c
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda#79002079284aa895f883c6b7f3f88fd6
https://conda.anaconda.org/conda-forge/noarch/pkginfo-1.9.6-pyhd8ed1ab_0.conda#be1e9f1c65a1ed0f2ae9352fec99db64
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.3.0-pyhd8ed1ab_0.conda#2390bd10bed1f3fdc7a537fb5a447d8d
https://conda.anaconda.org/conda-forge/noarch/poetry-core-1.8.1-pyhd8ed1ab_0.conda#a013d99ae50670b823c511f7274d2d2a
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2#359eeb6536da0e687af562ed265ec263
https://conda.anaconda.org/conda-forge/linux-aarch64/pycosat-0.6.6-py312hdd3e373_0.conda#368a87e79b0c4bb0f97b103bbd4b5c75
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2#076becd9e05608f8dc72757d5f3a91ff
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2#2a7de29fb590ca14b5243c4c812c8025
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/python-installer-0.7.0-pyhd8ed1ab_0.conda#65dea78f903d686c8b0c2feaf0e15e1f
https://conda.anaconda.org/conda-forge/linux-aarch64/ruamel.yaml.clib-0.2.7-py312hdd3e373_2.conda#ea944a8a9fce4de9a84143e3f7128134
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.0.3-pyhd8ed1ab_0.conda#40695fdfd15a92121ed2922900d0308b
https://conda.anaconda.org/conda-forge/noarch/shellingham-1.5.4-pyhd8ed1ab_0.conda#d08db09a552699ee9e7eec56b4eb3899
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2#5844808ffab9ebdb694585b50ba02a96
https://conda.anaconda.org/conda-forge/noarch/tomlkit-0.12.3-pyha770c72_0.conda#074d0ce7a6261ab8b497c3518796ef3e
https://conda.anaconda.org/conda-forge/noarch/trove-classifiers-2024.1.8-pyhd8ed1ab_0.conda#b120d43603f9b021d252fb7754b35557
https://conda.anaconda.org/conda-forge/noarch/truststore-0.8.0-pyhd8ed1ab_0.conda#08316d001eca8854392cf2837828ea11
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.9.0-pyha770c72_0.conda#a92a6440c3fe7052d63244f3aba2a4a7
https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda#1cdea58981c5cbc17b51973bcaddcea7
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/linux-aarch64/cffi-1.16.0-py312hf3c74c0_0.conda#2b087fcfbe35a1bb081e1723b8c6362a
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-7.0.1-pyha770c72_0.conda#746623a787e06191d80a2133e5daff17
https://conda.anaconda.org/conda-forge/noarch/jaraco.classes-3.3.0-pyhd8ed1ab_0.conda#e9f79248d30e942f7c358ff21a1790f5
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda#bfdb7c5c6ad1077c82a69a8642c87aff
https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.9.0-20_linuxaarch64_openblas.conda#b41e55ae2cb9d3518da2cbe3677b3b3b
https://conda.anaconda.org/conda-forge/linux-aarch64/liblapack-3.9.0-20_linuxaarch64_openblas.conda#e7412a592d9ee7c92026eb1189687271
https://conda.anaconda.org/conda-forge/linux-aarch64/libmamba-1.5.6-hea3be6c_0.conda#feb0be90db1e014dde541cafa78efc15
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh1a96a4e_2.tar.bz2#330448ce4403cc74990ac07c555942a1
https://conda.anaconda.org/conda-forge/noarch/pip-23.3.2-pyhd8ed1ab_0.conda#8591c748f98dcc02253003533bc2e4b1
https://conda.anaconda.org/conda-forge/noarch/poetry-plugin-export-1.6.0-pyhd8ed1ab_0.conda#1f2184db9f337d1074b1d5769165cac9
https://conda.anaconda.org/conda-forge/noarch/pyproject_hooks-1.0.0-pyhd8ed1ab_0.conda#21de50391d584eb7f4441b9de1ad773f
https://conda.anaconda.org/conda-forge/linux-aarch64/ruamel.yaml-0.18.5-py312hdd3e373_0.conda#0e375e2cba5a2501ad822d9deedf9aaf
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.1-pyhd8ed1ab_0.conda#03c97908b976498dcae97eb4e4f3149c
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.9.0-hd8ed1ab_0.conda#c16524c1b7227dc80b36b4fa6f77cc86
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.1.0-pyhd8ed1ab_0.conda#f8ced8ee63830dec7ecc1be048d1470a
https://conda.anaconda.org/conda-forge/linux-aarch64/cryptography-41.0.7-py312hc709039_1.conda#bd8d4ac4437b00b2f0d00d0e2303f8fd
https://conda.anaconda.org/conda-forge/linux-aarch64/dulwich-0.21.7-py312hdd3e373_0.conda#397a67598654b34b83057ff1a9cfff33
https://conda.anaconda.org/conda-forge/linux-aarch64/libmambapy-1.5.6-py312h1e39527_0.conda#037ef6053fa678b9e7ec1fccc83471e0
https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-1.26.3-py312h470d778_0.conda#df857a4163668a976e4d91c7181514c0
https://conda.anaconda.org/conda-forge/noarch/platformdirs-3.11.0-pyhd8ed1ab_0.conda#8f567c0a74aa44cf732f15773b4083b0
https://conda.anaconda.org/conda-forge/noarch/python-build-1.0.3-pyhd8ed1ab_0.conda#d9ccabf228cb98419ca3d5694b25e1a2
https://conda.anaconda.org/conda-forge/noarch/requests-2.31.0-pyhd8ed1ab_0.conda#a30144e4156cdbb236f99ebb49828f8b
https://conda.anaconda.org/conda-forge/linux-aarch64/zstandard-0.22.0-py312hb120188_0.conda#8d83dc36d9d38c83c3d30dcb0e6c9f2c
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.13.1-pyhd8ed1ab_0.conda#174bd699bb5aa9e2622eb4b288276ff8
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.9.0-pyhd8ed1ab_0.conda#38253361efb303deead3eab39ae9269b
https://conda.anaconda.org/conda-forge/linux-aarch64/rapidfuzz-3.6.1-py312h2aa54b4_0.conda#f3a808a9b78a2924b7774a8cd3c942bf
https://conda.anaconda.org/conda-forge/noarch/requests-toolbelt-1.0.0-pyhd8ed1ab_0.conda#99c98318c8646b08cc764f90ce98906e
https://conda.anaconda.org/conda-forge/linux-aarch64/secretstorage-3.3.3-py312h8025657_2.conda#908598f88d4288b9cabc46ded32c5ee2
https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.0-pyhd8ed1ab_0.conda#c119653cba436d8183c27bf6d190e587
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-with-filecache-0.13.1-pyhd8ed1ab_0.conda#8c4781ca0893cff3a64423954ce234a1
https://conda.anaconda.org/conda-forge/noarch/cleo-2.1.0-pyhd8ed1ab_0.conda#69569ea8a6d1465193345a40421d138b
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.2.0-pyh38be061_0.conda#8a3ae7f6318376aa08ea753367bb7dd6
https://conda.anaconda.org/conda-forge/linux-aarch64/keyring-24.3.0-py312h996f985_0.conda#a08242a7a02d64380b5cf6a843f4356a
https://conda.anaconda.org/conda-forge/noarch/poetry-1.7.1-linux_pyha804496_0.conda#f4ead25aee9d567898e970a107bcac7e
https://conda.anaconda.org/conda-forge/linux-aarch64/conda-23.11.0-py312h996f985_1.conda#6137c0415bccff2c993b1fb7911f846d
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-23.12.0-pyhd8ed1ab_0.conda#e877d5150e73a0844ea2939be110c3b1
https://conda.anaconda.org/conda-forge/linux-aarch64/mamba-1.5.6-py312hd80a4d2_0.conda#0b5841ba8450cf2d1f4b8e479ba16bc5
+115
View File
@@ -0,0 +1,115 @@
# Generated by conda-lock.
# platform: osx-64
# input_hash: 84c30aa7789ba5570aedb1d84bd49b174515e108c41a4ffa273ec1d9fca574ee
@EXPLICIT
https://conda.anaconda.org/conda-forge/osx-64/bzip2-1.0.8-h10d778d_5.conda#6097a6ca9ada32699b5fc4312dd6ef18
https://conda.anaconda.org/conda-forge/osx-64/c-ares-1.25.0-h10d778d_0.conda#80e97c8f21c33a3b9256504858cf49b6
https://conda.anaconda.org/conda-forge/osx-64/ca-certificates-2023.11.17-h8857fd0_0.conda#c687e9d14c49e3d3946d50a413cdbf16
https://conda.anaconda.org/conda-forge/osx-64/icu-73.2-hf5e326d_0.conda#5cc301d759ec03f28328428e28f65591
https://conda.anaconda.org/conda-forge/osx-64/libcxx-16.0.6-hd57cbcb_0.conda#7d6972792161077908b62971802f289a
https://conda.anaconda.org/conda-forge/osx-64/libev-4.33-h10d778d_2.conda#899db79329439820b7e8f8de41bca902
https://conda.anaconda.org/conda-forge/osx-64/libexpat-2.5.0-hf0c8a7f_1.conda#6c81cb022780ee33435cca0127dd43c9
https://conda.anaconda.org/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2#ccb34fb14960ad8b125962d3d79b31a9
https://conda.anaconda.org/conda-forge/osx-64/libiconv-1.17-hd75f5a5_2.conda#6c3628d047e151efba7cf08c5e54d1ca
https://conda.anaconda.org/conda-forge/osx-64/libzlib-1.2.13-h8a1eda9_5.conda#4a3ad23f6e16f99c04e166767193d700
https://conda.anaconda.org/conda-forge/osx-64/llvm-openmp-17.0.6-hb6ac08f_0.conda#f260ab897df05f729fc3e65dbb0850ef
https://conda.anaconda.org/conda-forge/osx-64/lzo-2.10-haf1e3a3_1000.tar.bz2#0b6bca372a95d6c602c7a922e928ce79
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2#878f923dd6acc8aeb47a75da6c4098be
https://conda.anaconda.org/conda-forge/osx-64/python_abi-3.12-4_cp312.conda#87201ac4314b911b74197e588cca3639
https://conda.anaconda.org/conda-forge/osx-64/reproc-14.2.4.post0-h10d778d_1.conda#d7c3258e871481be5bbaf28b4729e29f
https://conda.anaconda.org/conda-forge/noarch/tzdata-2023d-h0c530f3_0.conda#8dee24b8be2d9ff81e7bd4d7d97ff1b0
https://conda.anaconda.org/conda-forge/osx-64/xz-5.2.6-h775f41a_0.tar.bz2#a72f9d4ea13d55d745ff1ed594747f10
https://conda.anaconda.org/conda-forge/osx-64/fmt-10.1.1-h7728843_1.conda#de48ed5d4de16ac68e8d1bd07f02e781
https://conda.anaconda.org/conda-forge/osx-64/libgfortran5-13.2.0-h2873a65_1.conda#3af564516b5163cd8cc08820413854bc
https://conda.anaconda.org/conda-forge/osx-64/libsolv-0.7.27-hf4d7fad_0.conda#dda8df0e28d488cc20dec52903dddcad
https://conda.anaconda.org/conda-forge/osx-64/libsqlite-3.44.2-h92b6c6a_0.conda#d4419f90019e6a2b152cd4d32f73a82f
https://conda.anaconda.org/conda-forge/osx-64/libxml2-2.12.3-hc0ae0f7_0.conda#959e8dad65f624a362546d96005e47f6
https://conda.anaconda.org/conda-forge/osx-64/lz4-c-1.9.4-hf0c8a7f_0.conda#aa04f7143228308662696ac24023f991
https://conda.anaconda.org/conda-forge/osx-64/ncurses-6.4-h93d8f39_2.conda#e58f366bd4d767e9ab97ab8b272e7670
https://conda.anaconda.org/conda-forge/osx-64/openssl-3.2.0-hd75f5a5_1.conda#06cb561619487c88891839b9beb5244c
https://conda.anaconda.org/conda-forge/osx-64/reproc-cpp-14.2.4.post0-h93d8f39_1.conda#a32e95ada0ee860c91e87266700970c3
https://conda.anaconda.org/conda-forge/osx-64/tk-8.6.13-h1abcd95_1.conda#bf830ba5afc507c6232d4ef0fb1a882d
https://conda.anaconda.org/conda-forge/osx-64/yaml-cpp-0.8.0-he965462_0.conda#1bb3addc859ed1338370da6e2996ef47
https://conda.anaconda.org/conda-forge/osx-64/zstd-1.5.5-h829000d_0.conda#80abc41d0c48b82fe0f04e7f42f5cb7e
https://conda.anaconda.org/conda-forge/osx-64/libarchive-3.7.2-hd35d340_1.conda#8c7b79b20a67287a87b39df8a8c8dcc4
https://conda.anaconda.org/conda-forge/osx-64/libedit-3.1.20191231-h0678c8f_2.tar.bz2#6016a8a1d0e63cac3de2c352cd40208b
https://conda.anaconda.org/conda-forge/osx-64/libgfortran-5.0.0-13_2_0_h97931a8_1.conda#b55fd11ab6318a6e67ac191309701d5a
https://conda.anaconda.org/conda-forge/osx-64/libnghttp2-1.58.0-h64cf6d3_1.conda#faecc55c2a8155d9ff1c0ff9a0fef64f
https://conda.anaconda.org/conda-forge/osx-64/libssh2-1.11.0-hd019ec5_0.conda#ca3a72efba692c59a90d4b9fc0dfe774
https://conda.anaconda.org/conda-forge/osx-64/readline-8.2-h9e318b2_1.conda#f17f77f2acf4d344734bda76829ce14e
https://conda.anaconda.org/conda-forge/osx-64/krb5-1.21.2-hb884880_0.conda#80505a68783f01dc8d7308c075261b2f
https://conda.anaconda.org/conda-forge/osx-64/libopenblas-0.3.25-openmp_hfef2a42_0.conda#a01b96f00c3155c830d98a518c7dcbfb
https://conda.anaconda.org/conda-forge/osx-64/python-3.12.1-h9f0c242_1_cpython.conda#41d5549764b9f37199e6255e5e9daee6
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.2-pyhd8ed1ab_0.conda#0dc2fce00a160271714647c019e3a8a8
https://conda.anaconda.org/conda-forge/noarch/boltons-23.1.1-pyhd8ed1ab_0.conda#56febe65315cc388a5d20adf2b39a74d
https://conda.anaconda.org/conda-forge/osx-64/brotli-python-1.1.0-py312heafc425_1.conda#a288b88f06b8bfe0dedaf5c4b6ac6b7a
https://conda.anaconda.org/conda-forge/noarch/certifi-2023.11.17-pyhd8ed1ab_0.conda#2011bcf45376341dd1d690263fdbc789
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda#7f4a9e3fcff3f6356ae99244a014da6a
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2#3faab06a954c2a04039983f2c4a50d99
https://conda.anaconda.org/conda-forge/noarch/crashtest-0.4.1-pyhd8ed1ab_0.tar.bz2#709a2295dd907bb34afb57d54320642f
https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda#db16c66b759a64dc5183d69cc3745a52
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda#bbdb409974cd6cb30071b1d978302726
https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.1-pyhd8ed1ab_0.conda#0c1729b74a8152fde6a38ba0a2ab9f45
https://conda.anaconda.org/conda-forge/noarch/idna-3.6-pyhd8ed1ab_0.conda#1a76f09108576397c41c0b0c5bd84134
https://conda.anaconda.org/conda-forge/osx-64/jsonpointer-2.4-py312hb401068_3.conda#637aa8f6c1c61f659f1496e9b2dc7552
https://conda.anaconda.org/conda-forge/osx-64/libblas-3.9.0-20_osx64_openblas.conda#1673476d205d14a9042172be795f63cb
https://conda.anaconda.org/conda-forge/osx-64/libcurl-8.5.0-h726d00d_0.conda#86d749e27fe00fa6b7d790a6feaa22a2
https://conda.anaconda.org/conda-forge/osx-64/menuinst-2.0.2-py312hb401068_0.conda#40fcba89895965e39ea94e53d5588b8d
https://conda.anaconda.org/conda-forge/noarch/more-itertools-10.2.0-pyhd8ed1ab_0.conda#d5c98e9706fdc5328d49a9bf2ce5fb42
https://conda.anaconda.org/conda-forge/osx-64/msgpack-python-1.0.7-py312hbf0bb39_0.conda#2aa4afb76d89d1241e67385b17f6f6ba
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda#79002079284aa895f883c6b7f3f88fd6
https://conda.anaconda.org/conda-forge/noarch/pkginfo-1.9.6-pyhd8ed1ab_0.conda#be1e9f1c65a1ed0f2ae9352fec99db64
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.3.0-pyhd8ed1ab_0.conda#2390bd10bed1f3fdc7a537fb5a447d8d
https://conda.anaconda.org/conda-forge/noarch/poetry-core-1.8.1-pyhd8ed1ab_0.conda#a013d99ae50670b823c511f7274d2d2a
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2#359eeb6536da0e687af562ed265ec263
https://conda.anaconda.org/conda-forge/osx-64/pycosat-0.6.6-py312h104f124_0.conda#106c2d37708757f4c23ff1f487bf5a3f
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2#076becd9e05608f8dc72757d5f3a91ff
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2#2a7de29fb590ca14b5243c4c812c8025
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/python-installer-0.7.0-pyhd8ed1ab_0.conda#65dea78f903d686c8b0c2feaf0e15e1f
https://conda.anaconda.org/conda-forge/osx-64/ruamel.yaml.clib-0.2.7-py312h104f124_2.conda#07c5b620686d2fa9629374e8b4cf29ec
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.0.3-pyhd8ed1ab_0.conda#40695fdfd15a92121ed2922900d0308b
https://conda.anaconda.org/conda-forge/noarch/shellingham-1.5.4-pyhd8ed1ab_0.conda#d08db09a552699ee9e7eec56b4eb3899
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2#5844808ffab9ebdb694585b50ba02a96
https://conda.anaconda.org/conda-forge/noarch/tomlkit-0.12.3-pyha770c72_0.conda#074d0ce7a6261ab8b497c3518796ef3e
https://conda.anaconda.org/conda-forge/noarch/trove-classifiers-2024.1.8-pyhd8ed1ab_0.conda#b120d43603f9b021d252fb7754b35557
https://conda.anaconda.org/conda-forge/noarch/truststore-0.8.0-pyhd8ed1ab_0.conda#08316d001eca8854392cf2837828ea11
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.9.0-pyha770c72_0.conda#a92a6440c3fe7052d63244f3aba2a4a7
https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda#1cdea58981c5cbc17b51973bcaddcea7
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/osx-64/cffi-1.16.0-py312h38bf5a0_0.conda#a45759c013ab20b9017ef9539d234dd7
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-7.0.1-pyha770c72_0.conda#746623a787e06191d80a2133e5daff17
https://conda.anaconda.org/conda-forge/noarch/jaraco.classes-3.3.0-pyhd8ed1ab_0.conda#e9f79248d30e942f7c358ff21a1790f5
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda#bfdb7c5c6ad1077c82a69a8642c87aff
https://conda.anaconda.org/conda-forge/osx-64/libcblas-3.9.0-20_osx64_openblas.conda#b324ad206d39ce529fb9073f9d062062
https://conda.anaconda.org/conda-forge/osx-64/liblapack-3.9.0-20_osx64_openblas.conda#704bfc2af1288ea973b6755281e6ad32
https://conda.anaconda.org/conda-forge/osx-64/libmamba-1.5.6-ha449628_0.conda#549575d7237a1aba16119969b4a6b8a7
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh1a96a4e_2.tar.bz2#330448ce4403cc74990ac07c555942a1
https://conda.anaconda.org/conda-forge/noarch/pip-23.3.2-pyhd8ed1ab_0.conda#8591c748f98dcc02253003533bc2e4b1
https://conda.anaconda.org/conda-forge/noarch/poetry-plugin-export-1.6.0-pyhd8ed1ab_0.conda#1f2184db9f337d1074b1d5769165cac9
https://conda.anaconda.org/conda-forge/noarch/pyproject_hooks-1.0.0-pyhd8ed1ab_0.conda#21de50391d584eb7f4441b9de1ad773f
https://conda.anaconda.org/conda-forge/osx-64/ruamel.yaml-0.18.5-py312h41838bb_0.conda#0dcf9f224125a95634f9f29dca9fd7a8
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.1-pyhd8ed1ab_0.conda#03c97908b976498dcae97eb4e4f3149c
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.9.0-hd8ed1ab_0.conda#c16524c1b7227dc80b36b4fa6f77cc86
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.1.0-pyhd8ed1ab_0.conda#f8ced8ee63830dec7ecc1be048d1470a
https://conda.anaconda.org/conda-forge/osx-64/dulwich-0.21.7-py312h41838bb_0.conda#4937c7a86084772c09af1f536a4c5a54
https://conda.anaconda.org/conda-forge/osx-64/keyring-24.3.0-py312hb401068_0.conda#5b28534ef3af5f98470c318f29cdc375
https://conda.anaconda.org/conda-forge/osx-64/libmambapy-1.5.6-py312h67f5953_0.conda#b173c0334cd59de8a7dda66aa5eddfee
https://conda.anaconda.org/conda-forge/osx-64/numpy-1.26.3-py312he3a82b2_0.conda#cc7cfa90fc5c70a62b788daa71b782ef
https://conda.anaconda.org/conda-forge/noarch/platformdirs-3.11.0-pyhd8ed1ab_0.conda#8f567c0a74aa44cf732f15773b4083b0
https://conda.anaconda.org/conda-forge/noarch/python-build-1.0.3-pyhd8ed1ab_0.conda#d9ccabf228cb98419ca3d5694b25e1a2
https://conda.anaconda.org/conda-forge/noarch/requests-2.31.0-pyhd8ed1ab_0.conda#a30144e4156cdbb236f99ebb49828f8b
https://conda.anaconda.org/conda-forge/osx-64/xattr-0.10.1-py312h104f124_1.conda#ca6c9e113d77c63aadb75d1ac46fe672
https://conda.anaconda.org/conda-forge/osx-64/zstandard-0.22.0-py312h7a629f7_0.conda#04fa0acf5a74339f9228cdfffa78df64
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.13.1-pyhd8ed1ab_0.conda#174bd699bb5aa9e2622eb4b288276ff8
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.9.0-pyhd8ed1ab_0.conda#38253361efb303deead3eab39ae9269b
https://conda.anaconda.org/conda-forge/osx-64/rapidfuzz-3.6.1-py312hede676d_0.conda#c83b7cf56e835950dd5934c2cdea000a
https://conda.anaconda.org/conda-forge/noarch/requests-toolbelt-1.0.0-pyhd8ed1ab_0.conda#99c98318c8646b08cc764f90ce98906e
https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.0-pyhd8ed1ab_0.conda#c119653cba436d8183c27bf6d190e587
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-with-filecache-0.13.1-pyhd8ed1ab_0.conda#8c4781ca0893cff3a64423954ce234a1
https://conda.anaconda.org/conda-forge/noarch/cleo-2.1.0-pyhd8ed1ab_0.conda#69569ea8a6d1465193345a40421d138b
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.2.0-pyh38be061_0.conda#8a3ae7f6318376aa08ea753367bb7dd6
https://conda.anaconda.org/conda-forge/noarch/poetry-1.7.1-osx_pyh534df25_0.conda#4ebf180279e2c0274249cafdd29720cf
https://conda.anaconda.org/conda-forge/osx-64/conda-23.11.0-py312hb401068_1.conda#2132d58fcb1dfe7f695a7f7e3edd50b9
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-23.12.0-pyhd8ed1ab_0.conda#e877d5150e73a0844ea2939be110c3b1
https://conda.anaconda.org/conda-forge/osx-64/mamba-1.5.6-py312ha12221d_0.conda#7d86cab3301c9c3ee0c758c18c46cda9
+115
View File
@@ -0,0 +1,115 @@
# Generated by conda-lock.
# platform: osx-arm64
# input_hash: 766e6b133db15eac3b1f267721f23412a76a79b65727237ec5b51312bee1ece3
@EXPLICIT
https://conda.anaconda.org/conda-forge/osx-arm64/bzip2-1.0.8-h93a5062_5.conda#1bbc659ca658bfd49a481b5ef7a0f40f
https://conda.anaconda.org/conda-forge/osx-arm64/c-ares-1.25.0-h93a5062_0.conda#0a40466cb14b485738f1910340775f71
https://conda.anaconda.org/conda-forge/osx-arm64/ca-certificates-2023.11.17-hf0a4a13_0.conda#c01da7c77cfcba2107174e25c1d47384
https://conda.anaconda.org/conda-forge/osx-arm64/icu-73.2-hc8870d7_0.conda#8521bd47c0e11c5902535bb1a17c565f
https://conda.anaconda.org/conda-forge/osx-arm64/libcxx-16.0.6-h4653b0c_0.conda#9d7d724faf0413bf1dbc5a85935700c8
https://conda.anaconda.org/conda-forge/osx-arm64/libev-4.33-h93a5062_2.conda#36d33e440c31857372a72137f78bacf5
https://conda.anaconda.org/conda-forge/osx-arm64/libexpat-2.5.0-hb7217d7_1.conda#5a097ad3d17e42c148c9566280481317
https://conda.anaconda.org/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2#086914b672be056eb70fd4285b6783b6
https://conda.anaconda.org/conda-forge/osx-arm64/libiconv-1.17-h0d3ecfb_2.conda#69bda57310071cf6d2b86caf11573d2d
https://conda.anaconda.org/conda-forge/osx-arm64/libzlib-1.2.13-h53f4e23_5.conda#1a47f5236db2e06a320ffa0392f81bd8
https://conda.anaconda.org/conda-forge/osx-arm64/llvm-openmp-17.0.6-hcd81f8e_0.conda#52019d2fa0eddbbc4e6dcd30fae0c0a4
https://conda.anaconda.org/conda-forge/osx-arm64/lzo-2.10-h642e427_1000.tar.bz2#ddab5f96f5573a9bd5e24f9994fd6ec9
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2#878f923dd6acc8aeb47a75da6c4098be
https://conda.anaconda.org/conda-forge/osx-arm64/python_abi-3.12-4_cp312.conda#bbb3a02c78b2d8219d7213f76d644a2a
https://conda.anaconda.org/conda-forge/osx-arm64/reproc-14.2.4.post0-h93a5062_1.conda#ef7ae6d7bb50c8c735551d825e1ea287
https://conda.anaconda.org/conda-forge/noarch/tzdata-2023d-h0c530f3_0.conda#8dee24b8be2d9ff81e7bd4d7d97ff1b0
https://conda.anaconda.org/conda-forge/osx-arm64/xz-5.2.6-h57fd34a_0.tar.bz2#39c6b54e94014701dd157f4f576ed211
https://conda.anaconda.org/conda-forge/osx-arm64/fmt-10.1.1-h2ffa867_1.conda#16b8a2b5043378a2ee0182833622298b
https://conda.anaconda.org/conda-forge/osx-arm64/libgfortran5-13.2.0-hf226fd6_1.conda#4480d71b98c87faafab132d33e23135e
https://conda.anaconda.org/conda-forge/osx-arm64/libsolv-0.7.27-h9e231a4_0.conda#f5568a2094eed1fc5742dc6d4b91e222
https://conda.anaconda.org/conda-forge/osx-arm64/libsqlite-3.44.2-h091b4b1_0.conda#d7e1af696cfadec251a0abdd7b79ed77
https://conda.anaconda.org/conda-forge/osx-arm64/libxml2-2.12.3-h0d0cfa8_0.conda#84e330ed40b5bf8e95a65529ccb94a14
https://conda.anaconda.org/conda-forge/osx-arm64/lz4-c-1.9.4-hb7217d7_0.conda#45505bec548634f7d05e02fb25262cb9
https://conda.anaconda.org/conda-forge/osx-arm64/ncurses-6.4-h463b476_2.conda#52b6f254a7b9663e854f44b6570ed982
https://conda.anaconda.org/conda-forge/osx-arm64/openssl-3.2.0-h0d3ecfb_1.conda#47d16d26100f19ca495882882b7bc93b
https://conda.anaconda.org/conda-forge/osx-arm64/reproc-cpp-14.2.4.post0-h965bd2d_1.conda#f81d00496e13ee828f84b3ef17e41346
https://conda.anaconda.org/conda-forge/osx-arm64/tk-8.6.13-h5083fa2_1.conda#b50a57ba89c32b62428b71a875291c9b
https://conda.anaconda.org/conda-forge/osx-arm64/yaml-cpp-0.8.0-h13dd4ca_0.conda#e783a232972a5c7dca549111e63a78b2
https://conda.anaconda.org/conda-forge/osx-arm64/zstd-1.5.5-h4f39d0f_0.conda#5b212cfb7f9d71d603ad891879dc7933
https://conda.anaconda.org/conda-forge/osx-arm64/libarchive-3.7.2-hcacb583_1.conda#1c8c447ce71bf5f769674b621142a73a
https://conda.anaconda.org/conda-forge/osx-arm64/libedit-3.1.20191231-hc8eb9b7_2.tar.bz2#30e4362988a2623e9eb34337b83e01f9
https://conda.anaconda.org/conda-forge/osx-arm64/libgfortran-5.0.0-13_2_0_hd922786_1.conda#1ad37a5c60c250bb2b4a9f75563e181c
https://conda.anaconda.org/conda-forge/osx-arm64/libnghttp2-1.58.0-ha4dd798_1.conda#1813e066bfcef82de579a0be8a766df4
https://conda.anaconda.org/conda-forge/osx-arm64/libssh2-1.11.0-h7a5bd25_0.conda#029f7dc931a3b626b94823bc77830b01
https://conda.anaconda.org/conda-forge/osx-arm64/readline-8.2-h92ec313_1.conda#8cbb776a2f641b943d413b3e19df71f4
https://conda.anaconda.org/conda-forge/osx-arm64/krb5-1.21.2-h92f50d5_0.conda#92f1cff174a538e0722bf2efb16fc0b2
https://conda.anaconda.org/conda-forge/osx-arm64/libopenblas-0.3.25-openmp_h6c19121_0.conda#a1843550403212b9dedeeb31466ade03
https://conda.anaconda.org/conda-forge/osx-arm64/python-3.12.1-hdf0ec26_1_cpython.conda#7b5d48e25f131864762bfef1914d2014
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.2-pyhd8ed1ab_0.conda#0dc2fce00a160271714647c019e3a8a8
https://conda.anaconda.org/conda-forge/noarch/boltons-23.1.1-pyhd8ed1ab_0.conda#56febe65315cc388a5d20adf2b39a74d
https://conda.anaconda.org/conda-forge/osx-arm64/brotli-python-1.1.0-py312h9f69965_1.conda#1bc01b9ffdf42beb1a9fe4e9222e0567
https://conda.anaconda.org/conda-forge/noarch/certifi-2023.11.17-pyhd8ed1ab_0.conda#2011bcf45376341dd1d690263fdbc789
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda#7f4a9e3fcff3f6356ae99244a014da6a
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2#3faab06a954c2a04039983f2c4a50d99
https://conda.anaconda.org/conda-forge/noarch/crashtest-0.4.1-pyhd8ed1ab_0.tar.bz2#709a2295dd907bb34afb57d54320642f
https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda#db16c66b759a64dc5183d69cc3745a52
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda#bbdb409974cd6cb30071b1d978302726
https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.1-pyhd8ed1ab_0.conda#0c1729b74a8152fde6a38ba0a2ab9f45
https://conda.anaconda.org/conda-forge/noarch/idna-3.6-pyhd8ed1ab_0.conda#1a76f09108576397c41c0b0c5bd84134
https://conda.anaconda.org/conda-forge/osx-arm64/jsonpointer-2.4-py312h81bd7bf_3.conda#327361b24f5348cab04ad9b1f74e831d
https://conda.anaconda.org/conda-forge/osx-arm64/libblas-3.9.0-20_osxarm64_openblas.conda#49bc8dec26663241ee064b2d7116ec2d
https://conda.anaconda.org/conda-forge/osx-arm64/libcurl-8.5.0-h2d989ff_0.conda#f1211ed00947a84e15a964a8f459f620
https://conda.anaconda.org/conda-forge/osx-arm64/menuinst-2.0.2-py312h81bd7bf_0.conda#802a33b3ca10e299f2fc9d6783140cc7
https://conda.anaconda.org/conda-forge/noarch/more-itertools-10.2.0-pyhd8ed1ab_0.conda#d5c98e9706fdc5328d49a9bf2ce5fb42
https://conda.anaconda.org/conda-forge/osx-arm64/msgpack-python-1.0.7-py312h76e736e_0.conda#da9f2349c5090c2b26cfac93f50666ab
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda#79002079284aa895f883c6b7f3f88fd6
https://conda.anaconda.org/conda-forge/noarch/pkginfo-1.9.6-pyhd8ed1ab_0.conda#be1e9f1c65a1ed0f2ae9352fec99db64
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.3.0-pyhd8ed1ab_0.conda#2390bd10bed1f3fdc7a537fb5a447d8d
https://conda.anaconda.org/conda-forge/noarch/poetry-core-1.8.1-pyhd8ed1ab_0.conda#a013d99ae50670b823c511f7274d2d2a
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2#359eeb6536da0e687af562ed265ec263
https://conda.anaconda.org/conda-forge/osx-arm64/pycosat-0.6.6-py312h02f2b3b_0.conda#4d07092345b6e66e580ce3cd9141c6da
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2#076becd9e05608f8dc72757d5f3a91ff
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2#2a7de29fb590ca14b5243c4c812c8025
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/python-installer-0.7.0-pyhd8ed1ab_0.conda#65dea78f903d686c8b0c2feaf0e15e1f
https://conda.anaconda.org/conda-forge/osx-arm64/ruamel.yaml.clib-0.2.7-py312h02f2b3b_2.conda#39478f82c46bd2fa4e974ef11cf2c0ae
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.0.3-pyhd8ed1ab_0.conda#40695fdfd15a92121ed2922900d0308b
https://conda.anaconda.org/conda-forge/noarch/shellingham-1.5.4-pyhd8ed1ab_0.conda#d08db09a552699ee9e7eec56b4eb3899
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2#5844808ffab9ebdb694585b50ba02a96
https://conda.anaconda.org/conda-forge/noarch/tomlkit-0.12.3-pyha770c72_0.conda#074d0ce7a6261ab8b497c3518796ef3e
https://conda.anaconda.org/conda-forge/noarch/trove-classifiers-2024.1.8-pyhd8ed1ab_0.conda#b120d43603f9b021d252fb7754b35557
https://conda.anaconda.org/conda-forge/noarch/truststore-0.8.0-pyhd8ed1ab_0.conda#08316d001eca8854392cf2837828ea11
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.9.0-pyha770c72_0.conda#a92a6440c3fe7052d63244f3aba2a4a7
https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda#1cdea58981c5cbc17b51973bcaddcea7
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/osx-arm64/cffi-1.16.0-py312h8e38eb3_0.conda#960ecbd65860d3b1de5e30373e1bffb1
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-7.0.1-pyha770c72_0.conda#746623a787e06191d80a2133e5daff17
https://conda.anaconda.org/conda-forge/noarch/jaraco.classes-3.3.0-pyhd8ed1ab_0.conda#e9f79248d30e942f7c358ff21a1790f5
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda#bfdb7c5c6ad1077c82a69a8642c87aff
https://conda.anaconda.org/conda-forge/osx-arm64/libcblas-3.9.0-20_osxarm64_openblas.conda#89f4718753c08afe8cda4dd5791ba94c
https://conda.anaconda.org/conda-forge/osx-arm64/liblapack-3.9.0-20_osxarm64_openblas.conda#1fefac78f2315455ce2d7f34782eac0a
https://conda.anaconda.org/conda-forge/osx-arm64/libmamba-1.5.6-h90c426b_0.conda#d17c7a5761e8983d97ccd650f5e6baaa
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh1a96a4e_2.tar.bz2#330448ce4403cc74990ac07c555942a1
https://conda.anaconda.org/conda-forge/noarch/pip-23.3.2-pyhd8ed1ab_0.conda#8591c748f98dcc02253003533bc2e4b1
https://conda.anaconda.org/conda-forge/noarch/poetry-plugin-export-1.6.0-pyhd8ed1ab_0.conda#1f2184db9f337d1074b1d5769165cac9
https://conda.anaconda.org/conda-forge/noarch/pyproject_hooks-1.0.0-pyhd8ed1ab_0.conda#21de50391d584eb7f4441b9de1ad773f
https://conda.anaconda.org/conda-forge/osx-arm64/ruamel.yaml-0.18.5-py312he37b823_0.conda#bbda05ac095a271419f91ef133eddac3
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.1-pyhd8ed1ab_0.conda#03c97908b976498dcae97eb4e4f3149c
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.9.0-hd8ed1ab_0.conda#c16524c1b7227dc80b36b4fa6f77cc86
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.1.0-pyhd8ed1ab_0.conda#f8ced8ee63830dec7ecc1be048d1470a
https://conda.anaconda.org/conda-forge/osx-arm64/dulwich-0.21.7-py312he37b823_0.conda#4f12a0d01fb466149fe0cd8875c28a59
https://conda.anaconda.org/conda-forge/osx-arm64/keyring-24.3.0-py312h81bd7bf_0.conda#3a6735f11d9604cbafd0ab1c3e9ac77e
https://conda.anaconda.org/conda-forge/osx-arm64/libmambapy-1.5.6-py312h344e357_0.conda#1677e62b8f4e1779ee83ce3e2911b73e
https://conda.anaconda.org/conda-forge/osx-arm64/numpy-1.26.3-py312h8442bc7_0.conda#bb3fc436e78e8bc43af8c672079749ea
https://conda.anaconda.org/conda-forge/noarch/platformdirs-3.11.0-pyhd8ed1ab_0.conda#8f567c0a74aa44cf732f15773b4083b0
https://conda.anaconda.org/conda-forge/noarch/python-build-1.0.3-pyhd8ed1ab_0.conda#d9ccabf228cb98419ca3d5694b25e1a2
https://conda.anaconda.org/conda-forge/noarch/requests-2.31.0-pyhd8ed1ab_0.conda#a30144e4156cdbb236f99ebb49828f8b
https://conda.anaconda.org/conda-forge/osx-arm64/xattr-0.10.1-py312h02f2b3b_1.conda#9fdf7c6f41ccca372d72951a6f120c7c
https://conda.anaconda.org/conda-forge/osx-arm64/zstandard-0.22.0-py312h7975427_0.conda#10c282af2c570a5a52173fd571693ec6
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.13.1-pyhd8ed1ab_0.conda#174bd699bb5aa9e2622eb4b288276ff8
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.9.0-pyhd8ed1ab_0.conda#38253361efb303deead3eab39ae9269b
https://conda.anaconda.org/conda-forge/osx-arm64/rapidfuzz-3.6.1-py312h20a0b95_0.conda#a359029e6d2b3518c23574def88518d7
https://conda.anaconda.org/conda-forge/noarch/requests-toolbelt-1.0.0-pyhd8ed1ab_0.conda#99c98318c8646b08cc764f90ce98906e
https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.0-pyhd8ed1ab_0.conda#c119653cba436d8183c27bf6d190e587
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-with-filecache-0.13.1-pyhd8ed1ab_0.conda#8c4781ca0893cff3a64423954ce234a1
https://conda.anaconda.org/conda-forge/noarch/cleo-2.1.0-pyhd8ed1ab_0.conda#69569ea8a6d1465193345a40421d138b
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.2.0-pyh38be061_0.conda#8a3ae7f6318376aa08ea753367bb7dd6
https://conda.anaconda.org/conda-forge/noarch/poetry-1.7.1-osx_pyh534df25_0.conda#4ebf180279e2c0274249cafdd29720cf
https://conda.anaconda.org/conda-forge/osx-arm64/conda-23.11.0-py312h81bd7bf_1.conda#8762fef47fc50d0cc3be18ce381264ec
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-23.12.0-pyhd8ed1ab_0.conda#e877d5150e73a0844ea2939be110c3b1
https://conda.anaconda.org/conda-forge/osx-arm64/mamba-1.5.6-py312h14bc7db_0.conda#313ba994472a1b9798683efe4c9a28c6
+113
View File
@@ -0,0 +1,113 @@
# Generated by conda-lock.
# platform: win-64
# input_hash: ce7b69eb63f85fe9c4f89a148490ec7ea87b2fc66fdef0c7162dcc4e28d78b22
@EXPLICIT
https://conda.anaconda.org/conda-forge/win-64/ca-certificates-2023.11.17-h56e8100_0.conda#1163114b483f26761f993c709e65271f
https://conda.anaconda.org/conda-forge/win-64/intel-openmp-2023.2.0-h57928b3_50497.conda#a401f3cae152deb75bbed766a90a6312
https://conda.anaconda.org/conda-forge/win-64/libexpat-2.5.0-h63175ca_1.conda#636cc3cbbd2e28bcfd2f73b2044aac2c
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2#878f923dd6acc8aeb47a75da6c4098be
https://conda.anaconda.org/conda-forge/win-64/python_abi-3.12-4_cp312.conda#17f4ccf6be9ded08bd0a376f489ac1a6
https://conda.anaconda.org/conda-forge/noarch/tzdata-2023d-h0c530f3_0.conda#8dee24b8be2d9ff81e7bd4d7d97ff1b0
https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2#72608f6cd3e5898229c3ea16deb1ac43
https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.38.33130-h82b7239_18.conda#8be79fdd2725ddf7bbf8a27a4c1f79ba
https://conda.anaconda.org/conda-forge/win-64/vc-14.3-hcf57466_18.conda#20e1e652a4c740fa719002a8449994a2
https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.38.33130-hcb4865c_18.conda#10d42885e3ed84e575b454db30f1aa93
https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-hcfcfb64_5.conda#26eb8ca6ea332b675e11704cce84a3be
https://conda.anaconda.org/conda-forge/win-64/fmt-10.1.1-h181d51b_1.conda#78dcab83827f41410cf1e70d39d3b36e
https://conda.anaconda.org/conda-forge/win-64/libffi-3.4.2-h8ffe710_5.tar.bz2#2c96d1b6915b408893f9472569dee135
https://conda.anaconda.org/conda-forge/win-64/libiconv-1.17-hcfcfb64_2.conda#e1eb10b1cca179f2baa3601e4efc8712
https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.44.2-hcfcfb64_0.conda#4a5f5ab56cbf3ccd08d71a1168061213
https://conda.anaconda.org/conda-forge/win-64/libzlib-1.2.13-hcfcfb64_5.conda#5fdb9c6a113b6b6cb5e517fd972d5f41
https://conda.anaconda.org/conda-forge/win-64/lz4-c-1.9.4-hcfcfb64_0.conda#e34720eb20a33fc3bfb8451dd837ab7a
https://conda.anaconda.org/conda-forge/win-64/lzo-2.10-he774522_1000.tar.bz2#d5cf4b7eaa52316f135eed9e8548ad57
https://conda.anaconda.org/conda-forge/win-64/openssl-3.2.0-hcfcfb64_1.conda#d10167022f99bad12ee07dea022d5830
https://conda.anaconda.org/conda-forge/win-64/pthreads-win32-2.9.1-hfa6e2cd_3.tar.bz2#e2da8758d7d51ff6aa78a14dfb9dbed4
https://conda.anaconda.org/conda-forge/win-64/reproc-14.2.4.post0-hcfcfb64_1.conda#887478162e563ea09451b19c22b1605b
https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h5226925_1.conda#fc048363eb8f03cd1737600a5d08aafe
https://conda.anaconda.org/conda-forge/win-64/xz-5.2.6-h8d14728_0.tar.bz2#515d77642eaa3639413c6b1bc3f94219
https://conda.anaconda.org/conda-forge/win-64/yaml-cpp-0.8.0-h63175ca_0.conda#9032e2129ea7afcc1a8e3d85715a931d
https://conda.anaconda.org/conda-forge/win-64/krb5-1.21.2-heb0366b_0.conda#6e8b0f22b4eef3b3cb3849bb4c3d47f9
https://conda.anaconda.org/conda-forge/win-64/libsolv-0.7.27-h12be248_0.conda#a62f8a595db21c4886cedd46cc842d63
https://conda.anaconda.org/conda-forge/win-64/libssh2-1.11.0-h7dfc565_0.conda#dc262d03aae04fe26825062879141a41
https://conda.anaconda.org/conda-forge/win-64/libxml2-2.11.6-hc3477c8_0.conda#08ffbb4c22dd3622e122058368f8b708
https://conda.anaconda.org/conda-forge/win-64/python-3.12.1-h2628c8c_1_cpython.conda#19f49a5c0aea545792ad88bb40dc1ec9
https://conda.anaconda.org/conda-forge/win-64/reproc-cpp-14.2.4.post0-h63175ca_1.conda#12fcd53cef836a4128c65c464ebb09d7
https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.5-h12be248_0.conda#792bb5da68bf0a6cac6a6072ecb8dbeb
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.2-pyhd8ed1ab_0.conda#0dc2fce00a160271714647c019e3a8a8
https://conda.anaconda.org/conda-forge/noarch/boltons-23.1.1-pyhd8ed1ab_0.conda#56febe65315cc388a5d20adf2b39a74d
https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.1.0-py312h53d5487_1.conda#d01a6667b99f0e8ad4097af66c938e62
https://conda.anaconda.org/conda-forge/noarch/certifi-2023.11.17-pyhd8ed1ab_0.conda#2011bcf45376341dd1d690263fdbc789
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda#7f4a9e3fcff3f6356ae99244a014da6a
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2#3faab06a954c2a04039983f2c4a50d99
https://conda.anaconda.org/conda-forge/noarch/crashtest-0.4.1-pyhd8ed1ab_0.tar.bz2#709a2295dd907bb34afb57d54320642f
https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda#db16c66b759a64dc5183d69cc3745a52
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda#bbdb409974cd6cb30071b1d978302726
https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.1-pyhd8ed1ab_0.conda#0c1729b74a8152fde6a38ba0a2ab9f45
https://conda.anaconda.org/conda-forge/noarch/idna-3.6-pyhd8ed1ab_0.conda#1a76f09108576397c41c0b0c5bd84134
https://conda.anaconda.org/conda-forge/win-64/jsonpointer-2.4-py312h2e8e312_3.conda#9d9572e257bf4559f20629efb0d3511d
https://conda.anaconda.org/conda-forge/win-64/libarchive-3.7.2-h6f8411a_0.conda#ef46bb4b1613b308b957a25407ff6f5b
https://conda.anaconda.org/conda-forge/win-64/libcurl-8.5.0-hd5e4a3a_0.conda#c95eb3d60266dd47b8eb864e10d6bcf3
https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.9.3-default_haede6df_1009.conda#87da045f6d26ce9fe20ad76a18f6a18a
https://conda.anaconda.org/conda-forge/win-64/menuinst-2.0.2-py312h53d5487_0.conda#ca8ca67bb6733fb295abd3c4e749ae13
https://conda.anaconda.org/conda-forge/noarch/more-itertools-10.2.0-pyhd8ed1ab_0.conda#d5c98e9706fdc5328d49a9bf2ce5fb42
https://conda.anaconda.org/conda-forge/win-64/msgpack-python-1.0.7-py312h0d7def4_0.conda#d99e74b66f04a1413cff5161f65cd4c9
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda#79002079284aa895f883c6b7f3f88fd6
https://conda.anaconda.org/conda-forge/noarch/pkginfo-1.9.6-pyhd8ed1ab_0.conda#be1e9f1c65a1ed0f2ae9352fec99db64
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.3.0-pyhd8ed1ab_0.conda#2390bd10bed1f3fdc7a537fb5a447d8d
https://conda.anaconda.org/conda-forge/noarch/poetry-core-1.8.1-pyhd8ed1ab_0.conda#a013d99ae50670b823c511f7274d2d2a
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2#359eeb6536da0e687af562ed265ec263
https://conda.anaconda.org/conda-forge/win-64/pycosat-0.6.6-py312he70551f_0.conda#619f8a019eaeffff3c9507fd2f5769c2
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2#076becd9e05608f8dc72757d5f3a91ff
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/python-installer-0.7.0-pyhd8ed1ab_0.conda#65dea78f903d686c8b0c2feaf0e15e1f
https://conda.anaconda.org/conda-forge/win-64/pywin32-ctypes-0.2.2-py312h2e8e312_1.conda#93a37178188cd6521e5410763a18aaf4
https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml.clib-0.2.7-py312he70551f_2.conda#ef47a90d50c6d69c9697038f9c01a6cb
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.0.3-pyhd8ed1ab_0.conda#40695fdfd15a92121ed2922900d0308b
https://conda.anaconda.org/conda-forge/noarch/shellingham-1.5.4-pyhd8ed1ab_0.conda#d08db09a552699ee9e7eec56b4eb3899
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2#5844808ffab9ebdb694585b50ba02a96
https://conda.anaconda.org/conda-forge/noarch/tomlkit-0.12.3-pyha770c72_0.conda#074d0ce7a6261ab8b497c3518796ef3e
https://conda.anaconda.org/conda-forge/noarch/trove-classifiers-2024.1.8-pyhd8ed1ab_0.conda#b120d43603f9b021d252fb7754b35557
https://conda.anaconda.org/conda-forge/noarch/truststore-0.8.0-pyhd8ed1ab_0.conda#08316d001eca8854392cf2837828ea11
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.9.0-pyha770c72_0.conda#a92a6440c3fe7052d63244f3aba2a4a7
https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda#1cdea58981c5cbc17b51973bcaddcea7
https://conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyhd8ed1ab_6.tar.bz2#30878ecc4bd36e8deeea1e3c151b2e0b
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/win-64/cffi-1.16.0-py312he70551f_0.conda#5a51096925d52332c62bfd8904899055
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-7.0.1-pyha770c72_0.conda#746623a787e06191d80a2133e5daff17
https://conda.anaconda.org/conda-forge/noarch/jaraco.classes-3.3.0-pyhd8ed1ab_0.conda#e9f79248d30e942f7c358ff21a1790f5
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda#bfdb7c5c6ad1077c82a69a8642c87aff
https://conda.anaconda.org/conda-forge/win-64/libmamba-1.5.6-h3f09ed1_0.conda#b9773f18a59065a8933ba439fe60e2c3
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh1a96a4e_2.tar.bz2#330448ce4403cc74990ac07c555942a1
https://conda.anaconda.org/conda-forge/noarch/pip-23.3.2-pyhd8ed1ab_0.conda#8591c748f98dcc02253003533bc2e4b1
https://conda.anaconda.org/conda-forge/noarch/poetry-plugin-export-1.6.0-pyhd8ed1ab_0.conda#1f2184db9f337d1074b1d5769165cac9
https://conda.anaconda.org/conda-forge/noarch/pyproject_hooks-1.0.0-pyhd8ed1ab_0.conda#21de50391d584eb7f4441b9de1ad773f
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh0701188_6.tar.bz2#56cd9fe388baac0e90c7149cfac95b60
https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml-0.18.5-py312he70551f_0.conda#e4d62d455007c8ffc251431a52bd9319
https://conda.anaconda.org/conda-forge/win-64/tbb-2021.11.0-h91493d7_0.conda#517c08eba817fb0e56cfd411ed198261
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.1-pyhd8ed1ab_0.conda#03c97908b976498dcae97eb4e4f3149c
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.9.0-hd8ed1ab_0.conda#c16524c1b7227dc80b36b4fa6f77cc86
https://conda.anaconda.org/conda-forge/win-64/keyring-24.3.0-py312h2e8e312_0.conda#b2ad5f984537e2705416e9de60e9bf52
https://conda.anaconda.org/conda-forge/win-64/libmambapy-1.5.6-py312h66cf91f_0.conda#efd9aba451517607304b1934ed4ee494
https://conda.anaconda.org/conda-forge/win-64/mkl-2023.2.0-h6a75c08_50497.conda#064cea9f45531e7b53584acf4bd8b044
https://conda.anaconda.org/conda-forge/noarch/platformdirs-3.11.0-pyhd8ed1ab_0.conda#8f567c0a74aa44cf732f15773b4083b0
https://conda.anaconda.org/conda-forge/noarch/python-build-1.0.3-pyhd8ed1ab_0.conda#d9ccabf228cb98419ca3d5694b25e1a2
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.1.0-pyhd8ed1ab_0.conda#f8ced8ee63830dec7ecc1be048d1470a
https://conda.anaconda.org/conda-forge/win-64/zstandard-0.22.0-py312h01d794b_0.conda#36f4394759b1d5de1699446cadb2c8f5
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.9.0-pyhd8ed1ab_0.conda#38253361efb303deead3eab39ae9269b
https://conda.anaconda.org/conda-forge/win-64/dulwich-0.21.7-py312he70551f_0.conda#1e0108590564c5c3b7235bb735d1b334
https://conda.anaconda.org/conda-forge/win-64/libblas-3.9.0-20_win64_mkl.conda#6cad6cd2fbdeef4d651b8f752a4da960
https://conda.anaconda.org/conda-forge/noarch/requests-2.31.0-pyhd8ed1ab_0.conda#a30144e4156cdbb236f99ebb49828f8b
https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.0-pyhd8ed1ab_0.conda#c119653cba436d8183c27bf6d190e587
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.13.1-pyhd8ed1ab_0.conda#174bd699bb5aa9e2622eb4b288276ff8
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.2.0-pyh38be061_0.conda#8a3ae7f6318376aa08ea753367bb7dd6
https://conda.anaconda.org/conda-forge/win-64/libcblas-3.9.0-20_win64_mkl.conda#e6d36cfcb2f2dff0f659d2aa0813eb2d
https://conda.anaconda.org/conda-forge/win-64/liblapack-3.9.0-20_win64_mkl.conda#9510d07424d70fcac553d86b3e4a7c14
https://conda.anaconda.org/conda-forge/noarch/requests-toolbelt-1.0.0-pyhd8ed1ab_0.conda#99c98318c8646b08cc764f90ce98906e
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-with-filecache-0.13.1-pyhd8ed1ab_0.conda#8c4781ca0893cff3a64423954ce234a1
https://conda.anaconda.org/conda-forge/win-64/numpy-1.26.3-py312h8753938_0.conda#ced1f13bc58bd594257fcd3b1912c450
https://conda.anaconda.org/conda-forge/win-64/rapidfuzz-3.6.1-py312h53d5487_0.conda#b01f0ddbb8061d4632b736cc73a5f6aa
https://conda.anaconda.org/conda-forge/noarch/cleo-2.1.0-pyhd8ed1ab_0.conda#69569ea8a6d1465193345a40421d138b
https://conda.anaconda.org/conda-forge/noarch/poetry-1.7.1-win_pyh7428d3b_0.conda#40353a0da2dabf3c044136c802ff77bb
https://conda.anaconda.org/conda-forge/win-64/conda-23.11.0-py312h2e8e312_1.conda#741f165f5dd50d11461b15c123b93782
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-23.12.0-pyhd8ed1ab_0.conda#e877d5150e73a0844ea2939be110c3b1
https://conda.anaconda.org/conda-forge/win-64/mamba-1.5.6-py312h5494d5c_0.conda#2b99a1797b991c1c70d54775b8588fc9
+20
View File
@@ -0,0 +1,20 @@
name: karaoke-prep
channels:
- conda-forge
# We want to have a reproducible setup, so we don't want default channels,
# which may be different for different users. All required channels should
# be listed explicitly here.
- nodefaults
dependencies:
- python>=3.10,<3.12 # or don't specify the version and use the latest stable Python
- mamba
- pip # pip must be mentioned explicitly, or conda-lock will fail
- poetry
# Non-standard section listing target platforms for conda-lock:
platforms:
- linux-64
- osx-64
- win-64
- osx-arm64 # Apple Silicon, e.g. M1/M2
- linux-aarch64 # Docker on Apple Silicon
+37
View File
@@ -0,0 +1,37 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['karaoke_prep/utils/prep_cli.py'],
pathex=[],
binaries=[('platform/ffmpeg.exe', '.')],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='karaoke-prep',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
+1 -1
View File
@@ -1 +1 @@
from .requests_prep import KaraokePrep
from .karaoke_prep import KaraokePrep
@@ -0,0 +1 @@
from .karaoke_finalise import KaraokeFinalise
@@ -0,0 +1,779 @@
import os
import sys
import json
import shlex
import logging
import zipfile
import shutil
import re
import requests
import pickle
from lyrics_converter import LyricsConverter
from thefuzz import fuzz
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaFileUpload
class KaraokeFinalise:
def __init__(
self,
log_level=logging.DEBUG,
log_formatter=None,
dry_run=False,
model_name=None,
instrumental_format="flac",
enable_cdg=False,
enable_txt=False,
brand_prefix=None,
organised_dir=None,
public_share_dir=None,
youtube_client_secrets_file=None,
youtube_description_file=None,
rclone_destination=None,
discord_webhook_url=None,
non_interactive=False,
):
self.logger = logging.getLogger(__name__)
self.logger.setLevel(log_level)
self.log_level = log_level
self.log_formatter = log_formatter
self.log_handler = logging.StreamHandler()
if self.log_formatter is None:
self.log_formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(module)s - %(message)s")
self.log_handler.setFormatter(self.log_formatter)
self.logger.addHandler(self.log_handler)
self.logger.debug(
f"KaraokeFinalise instantiating, dry_run: {dry_run}, model_name: {model_name}, brand_prefix: {brand_prefix}, organised_dir: {organised_dir}, public_share_dir: {public_share_dir}, rclone_destination: {rclone_destination}"
)
# Path to the Windows PyInstaller frozen bundled ffmpeg.exe, or the system-installed FFmpeg binary on Mac/Linux
ffmpeg_path = os.path.join(sys._MEIPASS, "ffmpeg.exe") if getattr(sys, "frozen", False) else "ffmpeg"
self.ffmpeg_base_command = f"{ffmpeg_path} -hide_banner -nostats"
if self.log_level == logging.DEBUG:
self.ffmpeg_base_command += " -loglevel verbose"
else:
self.ffmpeg_base_command += " -loglevel fatal"
self.dry_run = dry_run
self.model_name = model_name
self.instrumental_format = instrumental_format
self.brand_prefix = brand_prefix
self.organised_dir = organised_dir
self.public_share_dir = public_share_dir
self.youtube_client_secrets_file = youtube_client_secrets_file
self.youtube_description_file = youtube_description_file
self.rclone_destination = rclone_destination
self.discord_webhook_url = discord_webhook_url
self.enable_cdg = enable_cdg
self.enable_txt = enable_txt
self.youtube_upload_enabled = False
self.discord_notication_enabled = False
self.folder_organisation_enabled = False
self.public_share_copy_enabled = False
self.public_share_rclone_enabled = False
self.skip_notifications = False
self.non_interactive = non_interactive
self.suffixes = {
"title_mov": " (Title).mov",
"title_jpg": " (Title).jpg",
"end_mov": " (End).mov",
"end_jpg": " (End).jpg",
"with_vocals_mov": " (With Vocals).mov",
"with_vocals_mp4": " (With Vocals).mp4",
"karaoke_lrc": " (Karaoke).lrc",
"karaoke_cdg": " (Karaoke).cdg",
"karaoke_txt": " (Karaoke).txt",
"karaoke_mp3": " (Karaoke).mp3",
"karaoke_mov": " (Karaoke).mov",
"final_karaoke_mp4": " (Final Karaoke).mp4",
"final_karaoke_cdg_zip": " (Final Karaoke CDG).zip",
"final_karaoke_txt_zip": " (Final Karaoke TXT).zip",
}
self.youtube_url_prefix = "https://www.youtube.com/watch?v="
self.youtube_url = None
self.brand_code = None
self.new_brand_code_dir_path = None
def check_input_files_exist(self, base_name, with_vocals_file, instrumental_audio_file):
self.logger.info(f"Checking required input files exist...")
input_files = {
"title_mov": f"{base_name}{self.suffixes['title_mov']}",
"title_jpg": f"{base_name}{self.suffixes['title_jpg']}",
"instrumental_audio": instrumental_audio_file,
"with_vocals_mov": with_vocals_file,
}
optional_input_files = {
"end_mov": f"{base_name}{self.suffixes['end_mov']}",
"end_jpg": f"{base_name}{self.suffixes['end_jpg']}",
}
if self.enable_cdg:
input_files["karaoke_cdg"] = f"{base_name}{self.suffixes['karaoke_cdg']}"
input_files["karaoke_mp3"] = f"{base_name}{self.suffixes['karaoke_mp3']}"
if self.enable_txt:
input_files["karaoke_mp3"] = f"{base_name}{self.suffixes['karaoke_mp3']}"
input_files["karaoke_lrc"] = f"{base_name}{self.suffixes['karaoke_lrc']}"
for key, file_path in input_files.items():
if not os.path.isfile(file_path):
raise Exception(f"Input file {key} not found: {file_path}")
self.logger.info(f" Input file {key} found: {file_path}")
for key, file_path in optional_input_files.items():
if not os.path.isfile(file_path):
self.logger.info(f" Optional input file {key} not found: {file_path}")
self.logger.info(f" Input file {key} found, adding to input_files: {file_path}")
input_files[key] = file_path
return input_files
def prepare_output_filenames(self, base_name):
output_files = {
"karaoke_mov": f"{base_name}{self.suffixes['karaoke_mov']}",
"with_vocals_mp4": f"{base_name}{self.suffixes['with_vocals_mp4']}",
"final_karaoke_mp4": f"{base_name}{self.suffixes['final_karaoke_mp4']}",
}
if self.enable_cdg:
output_files["final_karaoke_cdg_zip"] = f"{base_name}{self.suffixes['final_karaoke_cdg_zip']}"
if self.enable_txt:
output_files["karaoke_txt"] = f"{base_name}{self.suffixes['karaoke_txt']}"
output_files["final_karaoke_txt_zip"] = f"{base_name}{self.suffixes['final_karaoke_txt_zip']}"
return output_files
def prompt_user_confirmation_or_raise_exception(self, prompt_message, exit_message, allow_empty=False):
if not self.prompt_user_bool(prompt_message, allow_empty=allow_empty):
self.logger.error(exit_message)
raise Exception(exit_message)
def prompt_user_bool(self, prompt_message, allow_empty=False):
if self.non_interactive:
self.logger.warning(f"Non-interactive mode, responding True for prompt: {prompt_message}")
return True
options_string = "[y]/n" if allow_empty else "y/[n]"
accept_responses = ["y", "yes"]
if allow_empty:
accept_responses.append("")
print()
response = input(f"{prompt_message} {options_string} ").strip().lower()
return response in accept_responses
def validate_input_parameters_for_features(self):
self.logger.info(f"Validating input parameters for enabled features...")
current_directory = os.getcwd()
self.logger.info(f"Current directory to process: {current_directory}")
# Enable youtube upload if client secrets file is provided and is valid JSON
if self.youtube_client_secrets_file is not None and self.youtube_description_file is not None:
if not os.path.isfile(self.youtube_client_secrets_file):
raise Exception(f"YouTube client secrets file does not exist: {self.youtube_client_secrets_file}")
if not os.path.isfile(self.youtube_description_file):
raise Exception(f"YouTube description file does not exist: {self.youtube_description_file}")
# Test parsing the file as JSON to check it's valid
try:
with open(self.youtube_client_secrets_file, "r") as f:
json.load(f)
except json.JSONDecodeError as e:
raise Exception(f"YouTube client secrets file is not valid JSON: {self.youtube_client_secrets_file}") from e
self.logger.debug(f"YouTube upload checks passed, enabling YouTube upload")
self.youtube_upload_enabled = True
# Enable discord notifications if webhook URL is provided and is valid URL
if self.discord_webhook_url is not None:
if not self.discord_webhook_url.startswith("https://discord.com/api/webhooks/"):
raise Exception(f"Discord webhook URL is not valid: {self.discord_webhook_url}")
self.logger.debug(f"Discord webhook URL checks passed, enabling Discord notifications")
self.discord_notication_enabled = True
# Enable folder organisation if brand prefix and target directory are provided and target directory is valid
if self.brand_prefix is not None and self.organised_dir is not None:
if not os.path.isdir(self.organised_dir):
raise Exception(f"Target directory does not exist: {self.organised_dir}")
self.logger.debug(f"Brand prefix and target directory provided, enabling folder organisation")
self.folder_organisation_enabled = True
# Enable public share copy if public share directory is provided and is valid directory with MP4 and CDG subdirectories
if self.public_share_dir is not None:
if not os.path.isdir(self.public_share_dir):
raise Exception(f"Public share directory does not exist: {self.public_share_dir}")
if not os.path.isdir(os.path.join(self.public_share_dir, "MP4")):
raise Exception(f"Public share directory does not contain MP4 subdirectory: {self.public_share_dir}")
if not os.path.isdir(os.path.join(self.public_share_dir, "CDG")):
raise Exception(f"Public share directory does not contain CDG subdirectory: {self.public_share_dir}")
self.logger.debug(f"Public share directory checks passed, enabling public share copy")
self.public_share_copy_enabled = True
# Enable public share rclone if rclone destination is provided
if self.rclone_destination is not None:
self.logger.debug(f"Rclone destination provided, enabling rclone sync")
self.public_share_rclone_enabled = True
# Tell user which features are enabled, prompt them to confirm before proceeding
self.logger.info(f"Enabled features:")
self.logger.info(f" CDG ZIP creation: {self.enable_cdg}")
self.logger.info(f" TXT ZIP creation: {self.enable_txt}")
self.logger.info(f" YouTube upload: {self.youtube_upload_enabled}")
self.logger.info(f" Discord notifications: {self.discord_notication_enabled}")
self.logger.info(f" Folder organisation: {self.folder_organisation_enabled}")
self.logger.info(f" Public share copy: {self.public_share_copy_enabled}")
self.logger.info(f" Public share rclone: {self.public_share_rclone_enabled}")
self.prompt_user_confirmation_or_raise_exception(
f"Confirm features enabled log messages above match your expectations for finalisation?",
"Refusing to proceed without user confirmation they're happy with enabled features.",
allow_empty=True,
)
def authenticate_youtube(self):
"""Authenticate and return a YouTube service object."""
credentials = None
pickle_file = "/tmp/karaoke-finalise-token.pickle"
# Token file stores the user's access and refresh tokens.
if os.path.exists(pickle_file):
with open(pickle_file, "rb") as token:
credentials = pickle.load(token)
# If there are no valid credentials, let the user log in.
if not credentials or not credentials.valid:
if credentials and credentials.expired and credentials.refresh_token:
credentials.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file(
self.youtube_client_secrets_file, scopes=["https://www.googleapis.com/auth/youtube"]
)
credentials = flow.run_local_server(port=0) # This will open a browser for authentication
# Save the credentials for the next run
with open(pickle_file, "wb") as token:
pickle.dump(credentials, token)
return build("youtube", "v3", credentials=credentials)
def get_channel_id(self):
youtube = self.authenticate_youtube()
# Get the authenticated user's channel
request = youtube.channels().list(part="snippet", mine=True)
response = request.execute()
# Extract the channel ID
if "items" in response:
channel_id = response["items"][0]["id"]
return channel_id
else:
return None
def check_if_video_title_exists_on_youtube_channel(self, youtube_title):
youtube = self.authenticate_youtube()
channel_id = self.get_channel_id()
self.logger.info(f"Searching YouTube channel {channel_id} for title: {youtube_title}")
request = youtube.search().list(part="snippet", channelId=channel_id, q=youtube_title, type="video", maxResults=10)
response = request.execute()
# Check if any videos were found
if "items" in response and len(response["items"]) > 0:
for item in response["items"]:
found_title = item["snippet"]["title"]
similarity_score = fuzz.ratio(youtube_title.lower(), found_title.lower())
if similarity_score >= 70: # 70% similarity
found_id = item["id"]["videoId"]
self.logger.info(
f"Potential match found on YouTube channel with ID: {found_id} and title: {found_title} (similarity: {similarity_score}%)"
)
confirmation = input(f"Is '{found_title}' the video you are finalising? (y/n): ").strip().lower()
if confirmation == "y":
self.youtube_video_id = found_id
self.youtube_url = f"{self.youtube_url_prefix}{self.youtube_video_id}"
self.skip_notifications = True
return True
self.logger.info(f"No matching video found with title: {youtube_title}")
return False
def truncate_to_nearest_word(self, title, max_length):
if len(title) <= max_length:
return title
truncated_title = title[:max_length].rsplit(" ", 1)[0]
if len(truncated_title) < max_length:
truncated_title += " ..."
return truncated_title
def upload_final_mp4_to_youtube_with_title_thumbnail(self, artist, title, input_files, output_files):
self.logger.info(f"Uploading final MP4 to YouTube with title thumbnail...")
if self.dry_run:
self.logger.info(
f'DRY RUN: Would upload {output_files["final_karaoke_mp4"]} to YouTube with thumbnail {input_files["title_jpg"]} using client secrets file: {self.youtube_client_secrets_file}'
)
else:
youtube_title = f"{artist} - {title} (Karaoke)"
# Truncate title to the nearest whole word and add ellipsis if needed
max_length = 95
youtube_title = self.truncate_to_nearest_word(youtube_title, max_length)
if self.check_if_video_title_exists_on_youtube_channel(youtube_title):
self.logger.warning(f"Video already exists on YouTube, skipping upload: {self.youtube_url}")
return
youtube_description = f"Karaoke version of {artist} - {title} created using karaoke-prep python package."
if self.youtube_description_file is not None:
with open(self.youtube_description_file, "r") as f:
youtube_description = f.read()
youtube_category_id = "10" # Category ID for Music
youtube_keywords = ["karaoke", "music", "singing", "instrumental", "lyrics", artist, title]
self.logger.info(f"Authenticating with YouTube...")
# Upload video to YouTube and set thumbnail.
youtube = self.authenticate_youtube()
body = {
"snippet": {
"title": youtube_title,
"description": youtube_description,
"tags": youtube_keywords,
"categoryId": youtube_category_id,
},
"status": {"privacyStatus": "public"},
}
# Use MediaFileUpload to handle the video file
media_file = MediaFileUpload(output_files["final_karaoke_mp4"], mimetype="video/mp4", resumable=True)
# Call the API's videos.insert method to create and upload the video.
self.logger.info(f"Uploading final MP4 to YouTube...")
request = youtube.videos().insert(part="snippet,status", body=body, media_body=media_file)
response = request.execute()
self.youtube_video_id = response.get("id")
self.youtube_url = f"{self.youtube_url_prefix}{self.youtube_video_id}"
self.logger.info(f"Uploaded video to YouTube: {self.youtube_url}")
# Uploading the thumbnail
if input_files["title_jpg"]:
media_thumbnail = MediaFileUpload(input_files["title_jpg"], mimetype="image/jpeg")
youtube.thumbnails().set(videoId=self.youtube_video_id, media_body=media_thumbnail).execute()
self.logger.info(f"Uploaded thumbnail for video ID {self.youtube_video_id}")
def get_next_brand_code(self):
"""
Calculate the next sequence number based on existing directories in the organised_dir.
Assumes directories are named with the format: BRAND-XXXX Artist - Title
"""
max_num = 0
pattern = re.compile(rf"^{re.escape(self.brand_prefix)}-(\d{{4}})")
if not os.path.isdir(self.organised_dir):
raise Exception(f"Target directory does not exist: {self.organised_dir}")
for dir_name in os.listdir(self.organised_dir):
match = pattern.match(dir_name)
if match:
num = int(match.group(1))
max_num = max(max_num, num)
self.logger.info(f"Next sequence number for brand {self.brand_prefix} calculated as: {max_num + 1}")
next_seq_number = max_num + 1
return f"{self.brand_prefix}-{next_seq_number:04d}"
def post_discord_message(self, message, webhook_url):
"""Post a message to a Discord channel via webhook."""
data = {"content": message}
response = requests.post(webhook_url, json=data)
response.raise_for_status() # This will raise an exception if the request failed
self.logger.info("Message posted to Discord")
def find_with_vocals_file(self):
self.logger.info("Finding input file in current directory ending (With Vocals).mov or (With Vocals).mp4")
with_vocals_files = [f for f in os.listdir(".") if self.suffixes["with_vocals_mov"] in f]
if not with_vocals_files:
self.logger.info(f"No with vocals MOV file found, looking for with vocals MP4 file instead")
with_vocals_files = [f for f in os.listdir(".") if self.suffixes["with_vocals_mp4"] in f]
if with_vocals_files:
self.logger.info(f"Found with vocals MP4 file: {with_vocals_files[0]}")
return with_vocals_files[0]
if not with_vocals_files:
karaoke_files = [f for f in os.listdir(".") if self.suffixes["karaoke_mov"] in f]
if karaoke_files:
for file in karaoke_files:
new_file = file.replace(self.suffixes["karaoke_mov"], self.suffixes["with_vocals_mov"])
self.prompt_user_confirmation_or_raise_exception(
f"Found '{file}' but no '(With Vocals)', rename to {new_file} for vocal input?",
"Unable to proceed without With Vocals file or user confirmation of rename.",
allow_empty=True,
)
os.rename(file, new_file)
self.logger.info(f"Renamed '{file}' to '{new_file}'")
return new_file
else:
raise Exception("No suitable files found for processing.")
else:
return with_vocals_files[0] # Assuming only one such file is expected
def choose_instrumental_audio_file(self, base_name):
self.logger.info(f"Choosing instrumental audio file to use as karaoke audio...")
search_string = " (Instrumental "
self.logger.info(f"Searching for files in current directory containing {search_string}")
all_instrumental_files = [f for f in os.listdir(".") if search_string in f]
flac_files = set(f.rsplit(".", 1)[0] for f in all_instrumental_files if f.endswith(".flac"))
mp3_files = set(f.rsplit(".", 1)[0] for f in all_instrumental_files if f.endswith(".mp3"))
self.logger.debug(f"FLAC files found: {flac_files}")
self.logger.debug(f"MP3 files found: {mp3_files}")
# Filter out MP3 files if their FLAC counterpart exists
filtered_files = [
f for f in all_instrumental_files if f.endswith(".flac") or (f.endswith(".mp3") and f.rsplit(".", 1)[0] not in flac_files)
]
self.logger.debug(f"Filtered instrumental files: {filtered_files}")
if not filtered_files:
raise Exception(f"No instrumental audio files found containing {search_string}")
if len(filtered_files) == 1:
return filtered_files[0]
# Sort the remaining instrumental options alphabetically
filtered_files.sort(reverse=True)
self.logger.info(f"Found multiple files containing {search_string}:")
for i, file in enumerate(filtered_files):
self.logger.info(f" {i+1}: {file}")
print()
response = input(f"Choose instrumental audio file to use as karaoke audio: [1]/{len(filtered_files)}: ").strip().lower()
if response == "":
response = "1"
try:
response = int(response)
except ValueError:
raise Exception(f"Invalid response to instrumental audio file choice prompt: {response}")
if response < 1 or response > len(filtered_files):
raise Exception(f"Invalid response to instrumental audio file choice prompt: {response}")
return filtered_files[response - 1]
def get_names_from_withvocals(self, with_vocals_file):
self.logger.info(f"Getting artist and title from {with_vocals_file}")
base_name = with_vocals_file.replace(self.suffixes["with_vocals_mov"], "").replace(self.suffixes["with_vocals_mp4"], "")
artist, title = base_name.split(" - ", 1)
return base_name, artist, title
def execute_command(self, command, description):
self.logger.info(description)
if self.dry_run:
self.logger.info(f"DRY RUN: Would run command: {command}")
else:
self.logger.info(f"Running command: {command}")
os.system(command)
def remux_and_encode_output_video_files(self, with_vocals_file, input_files, output_files):
self.logger.info(f"Remuxing and encoding output video files...")
# Check if output files already exist, if so, ask user to overwrite or skip
if os.path.isfile(output_files["karaoke_mov"]) and os.path.isfile(output_files["final_karaoke_mp4"]):
if not self.prompt_user_bool(
f"Found existing Final Karaoke output file: {output_files['final_karaoke_mp4']}. Overwrite (y) or skip (n)?",
):
self.logger.info(f"Skipping Karaoke MOV remux and Final MP4 render, existing files will be used.")
return
# Remux the synced video with the instrumental audio to produce an instrumental karaoke MOV file
remux_ffmpeg_command = f'{self.ffmpeg_base_command} -an -i "{with_vocals_file}" -vn -i "{input_files["instrumental_audio"]}" -c:v copy -c:a aac "{output_files["karaoke_mov"]}"'
self.execute_command(remux_ffmpeg_command, "Remuxing video with instrumental audio")
# Convert the with vocals video to MP4 if it isn't already
if not with_vocals_file.endswith(".mp4"):
with_vocals_mp4_command = (
f'{self.ffmpeg_base_command} -i "{with_vocals_file}" -c:v libx264 -c:a aac "{output_files["with_vocals_mp4"]}"'
)
self.execute_command(with_vocals_mp4_command, "Converting with vocals video to MP4")
# Delete the with vocals mov after successfully converting it to mp4
if not self.dry_run and os.path.isfile(with_vocals_file):
self.logger.info(f"Deleting with vocals MOV file: {with_vocals_file}")
os.remove(with_vocals_file)
# Quote file paths to handle special characters
title_mov_file = shlex.quote(os.path.abspath(input_files["title_mov"]))
karaoke_mov_file = shlex.quote(os.path.abspath(output_files["karaoke_mov"]))
output_final_mp4_file = shlex.quote(output_files["final_karaoke_mp4"])
env_mov_input = ""
ffmpeg_filter = '-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]"'
# Check if end_mov file exists and include it in the concat command
if "end_mov" in input_files and os.path.isfile(input_files["end_mov"]):
self.logger.info(f"Found end_mov file: {input_files['end_mov']}, including in final MP4")
end_mov_file = shlex.quote(os.path.abspath(input_files["end_mov"]))
env_mov_input = f"-i {end_mov_file}"
ffmpeg_filter = '-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[outv][outa]"'
join_ffmpeg_command = f'{self.ffmpeg_base_command} -i {title_mov_file} -i {karaoke_mov_file} {env_mov_input} {ffmpeg_filter} -map "[outv]" -map "[outa]" -c:v libx264 -c:a aac_at -q:a 14 {output_final_mp4_file}'
self.logger.debug(f"Running command: {join_ffmpeg_command}")
self.execute_command(join_ffmpeg_command, "Joining title and instrumental videos")
# Prompt user to check final MP4 file before proceeding
self.prompt_user_confirmation_or_raise_exception(
f"Final MP4 file created: {output_files['final_karaoke_mp4']}, please check it! Proceed?",
"Refusing to proceed without user confirmation they're happy with the Final MP4.",
allow_empty=True,
)
def create_cdg_zip_file(self, input_files, output_files):
self.logger.info(f"Creating CDG ZIP file...")
# Check if CDG file already exists, if so, ask user to overwrite or skip
if os.path.isfile(output_files["final_karaoke_cdg_zip"]):
if not self.prompt_user_bool(
f"Found existing CDG ZIP file: {output_files['final_karaoke_cdg_zip']}. Overwrite (y) or skip (n)?",
):
self.logger.info(f"Skipping CDG ZIP file creation, existing file will be used.")
return
# Create the ZIP file containing the MP3 and CDG files
if self.dry_run:
self.logger.info(f"DRY RUN: Would create CDG ZIP file: {output_files['final_karaoke_cdg_zip']}")
else:
self.logger.info(f"Creating ZIP file containing {input_files['karaoke_mp3']} and {input_files['karaoke_cdg']}")
with zipfile.ZipFile(output_files["final_karaoke_cdg_zip"], "w") as zipf:
zipf.write(input_files["karaoke_mp3"], os.path.basename(input_files["karaoke_mp3"]))
zipf.write(input_files["karaoke_cdg"], os.path.basename(input_files["karaoke_cdg"]))
if not os.path.isfile(output_files["final_karaoke_cdg_zip"]):
raise Exception(f"Failed to create CDG ZIP file: {output_files['final_karaoke_cdg_zip']}")
self.logger.info(f"CDG ZIP file created: {output_files['final_karaoke_cdg_zip']}")
def create_txt_zip_file(self, input_files, output_files):
self.logger.info(f"Creating TXT ZIP file...")
# Check if TXT file already exists, if so, ask user to overwrite or skip
if os.path.isfile(output_files["final_karaoke_txt_zip"]):
if not self.prompt_user_bool(
f"Found existing TXT ZIP file: {output_files['final_karaoke_txt_zip']}. Overwrite (y) or skip (n)?",
):
self.logger.info(f"Skipping TXT ZIP file creation, existing file will be used.")
return
# Create the ZIP file containing the MP3 and TXT files
if self.dry_run:
self.logger.info(f"DRY RUN: Would create TXT ZIP file: {output_files['final_karaoke_txt_zip']}")
else:
self.logger.info(f"Running karaoke-converter to convert MidiCo LRC file {input_files['karaoke_lrc']} to TXT format")
txt_converter = LyricsConverter(output_format="txt", filepath=input_files["karaoke_lrc"])
converted_txt = txt_converter.convert_file()
with open(output_files["karaoke_txt"], "w") as txt_file:
txt_file.write(converted_txt)
self.logger.info(f"TXT file written: {output_files['karaoke_txt']}")
self.logger.info(f"Creating ZIP file containing {input_files['karaoke_mp3']} and {output_files['karaoke_txt']}")
with zipfile.ZipFile(output_files["final_karaoke_txt_zip"], "w") as zipf:
zipf.write(input_files["karaoke_mp3"], os.path.basename(input_files["karaoke_mp3"]))
zipf.write(output_files["karaoke_txt"], os.path.basename(output_files["karaoke_txt"]))
if not os.path.isfile(output_files["final_karaoke_txt_zip"]):
raise Exception(f"Failed to create TXT ZIP file: {output_files['final_karaoke_txt_zip']}")
self.logger.info(f"TXT ZIP file created: {output_files['final_karaoke_txt_zip']}")
def move_files_to_brand_code_folder(self, brand_code, artist, title, output_files):
self.logger.info(f"Moving files to new brand-prefixed directory...")
self.new_brand_code_dir_path = os.path.join(self.organised_dir, f"{brand_code} - {artist} - {title}")
self.prompt_user_confirmation_or_raise_exception(
f"Move files to new brand-prefixed directory {self.new_brand_code_dir_path} and delete current dir?",
"Refusing to move files without user confirmation of move.",
allow_empty=True,
)
orig_dir = os.getcwd()
os.chdir(os.path.dirname(orig_dir))
self.logger.info(f"Changed dir to parent directory: {os.getcwd()}")
if self.dry_run:
self.logger.info(f"DRY RUN: Would move original directory {orig_dir} to: {self.new_brand_code_dir_path}")
else:
os.rename(orig_dir, self.new_brand_code_dir_path)
def copy_final_files_to_public_share_dirs(self, brand_code, base_name, output_files):
self.logger.info(f"Copying final MP4 and ZIP to public share directory...")
# Validate public_share_dir is a valid folder with MP4 and CDG subdirectories
if not os.path.isdir(self.public_share_dir):
raise Exception(f"Public share directory does not exist: {self.public_share_dir}")
if not os.path.isdir(os.path.join(self.public_share_dir, "MP4")):
raise Exception(f"Public share directory does not contain MP4 subdirectory: {self.public_share_dir}")
if not os.path.isdir(os.path.join(self.public_share_dir, "CDG")):
raise Exception(f"Public share directory does not contain CDG subdirectory: {self.public_share_dir}")
if brand_code is None:
raise Exception(f"New track prefix was not set, refusing to copy to public share directory")
dest_mp4_dir = os.path.join(self.public_share_dir, "MP4")
dest_cdg_dir = os.path.join(self.public_share_dir, "CDG")
os.makedirs(dest_mp4_dir, exist_ok=True)
os.makedirs(dest_cdg_dir, exist_ok=True)
dest_mp4_file = os.path.join(dest_mp4_dir, f"{brand_code} - {base_name}.mp4")
dest_zip_file = os.path.join(dest_cdg_dir, f"{brand_code} - {base_name}.zip")
if self.dry_run:
self.logger.info(f"DRY RUN: Would copy final MP4 and ZIP to {dest_mp4_file} + .cdg")
else:
shutil.copy2(output_files["final_karaoke_mp4"], dest_mp4_file)
shutil.copy2(output_files["final_karaoke_cdg_zip"], dest_zip_file)
self.logger.info(f"Copied final files to public share directory")
def sync_public_share_dir_to_rclone_destination(self):
self.logger.info(f"Syncing public share directory to rclone destination...")
# Delete .DS_Store files recursively before syncing
for root, dirs, files in os.walk(self.public_share_dir):
for file in files:
if file == ".DS_Store":
file_path = os.path.join(root, file)
os.remove(file_path)
self.logger.info(f"Deleted .DS_Store file: {file_path}")
rclone_cmd = f"rclone sync -v '{self.public_share_dir}' '{self.rclone_destination}'"
self.execute_command(rclone_cmd, "Syncing with cloud destination")
def post_discord_notification(self):
self.logger.info(f"Posting Discord notification...")
if self.skip_notifications:
self.logger.info(f"Skipping Discord notification as video was previously uploaded to YouTube")
return
if self.dry_run:
self.logger.info(
f"DRY RUN: Would post Discord notification for youtube URL {self.youtube_url} using webhook URL: {self.discord_webhook_url}"
)
else:
discord_message = f"New upload: {self.youtube_url}"
self.post_discord_message(discord_message, self.discord_webhook_url)
def execute_optional_features(self, artist, title, base_name, input_files, output_files):
self.logger.info(f"Executing optional features...")
if self.youtube_upload_enabled:
try:
self.upload_final_mp4_to_youtube_with_title_thumbnail(artist, title, input_files, output_files)
except Exception as e:
self.logger.error(f"Failed to upload video to YouTube: {e}")
print("Please manually upload the video to YouTube.")
print()
self.youtube_video_id = input("Enter the manually uploaded YouTube video ID: ").strip()
self.youtube_url = f"{self.youtube_url_prefix}{self.youtube_video_id}"
self.logger.info(f"Using manually provided YouTube video ID: {self.youtube_video_id}")
if self.discord_notication_enabled:
self.post_discord_notification()
if self.folder_organisation_enabled:
self.brand_code = self.get_next_brand_code()
if self.public_share_copy_enabled:
self.copy_final_files_to_public_share_dirs(self.brand_code, base_name, output_files)
if self.public_share_rclone_enabled:
self.sync_public_share_dir_to_rclone_destination()
self.move_files_to_brand_code_folder(self.brand_code, artist, title, output_files)
def process(self):
if self.dry_run:
self.logger.warning("Dry run enabled. No actions will be performed.")
# Check required input files and parameters exist, get user to confirm features before proceeding
self.validate_input_parameters_for_features()
with_vocals_file = self.find_with_vocals_file()
base_name, artist, title = self.get_names_from_withvocals(with_vocals_file)
instrumental_audio_file = self.choose_instrumental_audio_file(base_name)
input_files = self.check_input_files_exist(base_name, with_vocals_file, instrumental_audio_file)
output_files = self.prepare_output_filenames(base_name)
if self.enable_cdg:
self.create_cdg_zip_file(input_files, output_files)
if self.enable_txt:
self.create_txt_zip_file(input_files, output_files)
self.remux_and_encode_output_video_files(with_vocals_file, input_files, output_files)
self.execute_optional_features(artist, title, base_name, input_files, output_files)
result = {
"artist": artist,
"title": title,
"video_with_vocals": output_files["with_vocals_mp4"],
"video_with_instrumental": output_files["karaoke_mov"],
"final_video": output_files["final_karaoke_mp4"],
"youtube_url": self.youtube_url,
"brand_code": self.brand_code,
"new_brand_code_dir_path": self.new_brand_code_dir_path,
}
if self.enable_cdg:
result["final_karaoke_cdg_zip"] = output_files["final_karaoke_cdg_zip"]
if self.enable_txt:
result["final_karaoke_txt_zip"] = output_files["final_karaoke_txt_zip"]
return result
+955
View File
@@ -0,0 +1,955 @@
import os
import sys
import re
import glob
import logging
import unicodedata
import lyricsgenius
import tempfile
import shutil
import pyperclip
from pyperclip import PyperclipException
import importlib.resources as pkg_resources
import yt_dlp.YoutubeDL as ydl
from PIL import Image, ImageDraw, ImageFont
class KaraokePrep:
def __init__(
self,
input_media=None,
artist=None,
title=None,
filename_pattern=None,
dry_run=False,
log_level=logging.DEBUG,
log_formatter=None,
model_names=["UVR_MDXNET_KARA_2.onnx", "model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt"],
model_file_dir=os.path.join(tempfile.gettempdir(), "audio-separator-models"),
output_dir=".",
lossless_output_format="FLAC",
lossy_output_format="MP3",
use_cuda=False,
use_coreml=False,
normalization_enabled=True,
denoise_enabled=True,
create_track_subfolders=False,
intro_background_color="#000000",
intro_background_image=None,
intro_font="Montserrat-Bold.ttf",
intro_artist_color="#ffffff",
intro_title_color="#ff7acc",
existing_instrumental=None,
existing_title_image=None,
end_background_color="#000000",
end_background_image=None,
end_font="Montserrat-Bold.ttf",
end_extra_text_color="#ffffff",
end_artist_color="#ffffff",
end_title_color="#ff7acc",
existing_end_image=None,
title_video_duration=5,
end_video_duration=5,
title_initial_font_size=500,
title_top_padding=950,
title_title_padding=400,
title_artist_padding=700,
title_fixed_gap=150,
end_initial_font_size=500,
end_top_padding=950,
end_title_padding=400,
end_artist_padding=700,
end_extra_text_padding=300,
end_fixed_gap=150,
end_extra_text="THANK YOU FOR SINGING!",
lyrics_artist=None,
lyrics_title=None,
skip_lyrics=False,
):
self.logger = logging.getLogger(__name__)
self.logger.setLevel(log_level)
self.log_level = log_level
self.log_formatter = log_formatter
self.log_handler = logging.StreamHandler()
if self.log_formatter is None:
self.log_formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(module)s - %(message)s")
self.log_handler.setFormatter(self.log_formatter)
self.logger.addHandler(self.log_handler)
self.logger.debug(f"KaraokePrep instantiating with input_media: {input_media} artist: {artist} title: {title}")
self.dry_run = dry_run
self.extractor = None
self.media_id = None
self.url = None
self.input_media = input_media
self.artist = artist
self.title = title
self.filename_pattern = filename_pattern
self.model_names = model_names
self.model_file_dir = model_file_dir
self.output_dir = output_dir
self.lossless_output_format = lossless_output_format.lower()
self.lossy_output_format = lossy_output_format.lower()
self.use_cuda = use_cuda
self.use_coreml = use_coreml
self.normalization_enabled = normalization_enabled
self.denoise_enabled = denoise_enabled
self.create_track_subfolders = create_track_subfolders
self.existing_instrumental = existing_instrumental
self.existing_title_image = existing_title_image
self.title_video_duration = title_video_duration
self.end_video_duration = end_video_duration
self.title_initial_font_size = title_initial_font_size
self.title_top_padding = title_top_padding
self.title_title_padding = title_title_padding
self.title_artist_padding = title_artist_padding
self.title_fixed_gap = title_fixed_gap
self.end_initial_font_size = end_initial_font_size
self.end_top_padding = end_top_padding
self.end_title_padding = end_title_padding
self.end_artist_padding = end_artist_padding
self.end_extra_text_padding = end_extra_text_padding
self.end_fixed_gap = end_fixed_gap
self.end_extra_text = end_extra_text
self.lyrics_artist = lyrics_artist
self.lyrics_title = lyrics_title
self.skip_lyrics = skip_lyrics
# Path to the Windows PyInstaller frozen bundled ffmpeg.exe, or the system-installed FFmpeg binary on Mac/Linux
ffmpeg_path = os.path.join(sys._MEIPASS, "ffmpeg.exe") if getattr(sys, "frozen", False) else "ffmpeg"
self.ffmpeg_base_command = f"{ffmpeg_path} -hide_banner -nostats"
if self.log_level == logging.DEBUG:
self.ffmpeg_base_command += " -loglevel verbose"
else:
self.ffmpeg_base_command += " -loglevel fatal"
self.title_format = {
"background_color": intro_background_color,
"background_image": intro_background_image,
"font": intro_font,
"artist_color": intro_artist_color,
"title_color": intro_title_color,
}
self.end_format = {
"background_color": end_background_color,
"background_image": end_background_image,
"font": end_font,
"extra_text_color": end_extra_text_color,
"artist_color": end_artist_color,
"title_color": end_title_color,
}
self.existing_end_image = existing_end_image
self.extracted_info = None
self.persistent_artist = None
self.logger.debug(f"KaraokePrep lossless_output_format: {self.lossless_output_format}")
if not os.path.exists(self.output_dir):
self.logger.debug(f"Overall output dir {self.output_dir} did not exist, creating")
os.makedirs(self.output_dir)
else:
self.logger.debug(f"Overall output dir {self.output_dir} already exists")
def extract_info_for_online_media(self, input_url=None, input_artist=None, input_title=None):
self.logger.info(f"Extracting info for input_url: {input_url} input_artist: {input_artist} input_title: {input_title}")
if input_url is not None:
# If a URL is provided, use it to extract the metadata
with ydl({"quiet": True}) as ydl_instance:
self.extracted_info = ydl_instance.extract_info(input_url, download=False)
else:
# If no URL is provided, use the query to search for the top result
ydl_opts = {"quiet": "True", "format": "bestaudio", "noplaylist": "True", "extract_flat": True}
with ydl(ydl_opts) as ydl_instance:
query = f"{input_artist} {input_title}"
self.extracted_info = ydl_instance.extract_info(f"ytsearch1:{query}", download=False)["entries"][0]
if not self.extracted_info:
raise Exception(f"No search results found on YouTube for query: {input_artist} {input_title}")
def parse_single_track_metadata(self, input_artist, input_title):
"""
Parses self.extracted_info to extract URL, extractor, ID, artist and title.
"""
# Default values if parsing fails
self.url = None
self.extractor = None
self.media_id = None
metadata_artist = ""
metadata_title = ""
if "url" in self.extracted_info:
self.url = self.extracted_info["url"]
elif "webpage_url" in self.extracted_info:
self.url = self.extracted_info["webpage_url"]
else:
raise Exception(f"Failed to extract URL from input media metadata: {self.extracted_info}")
if "extractor_key" in self.extracted_info:
self.extractor = self.extracted_info["extractor_key"]
elif "ie_key" in self.extracted_info:
self.extractor = self.extracted_info["ie_key"]
else:
raise Exception(f"Failed to find extractor name from input media metadata: {self.extracted_info}")
if "id" in self.extracted_info:
self.media_id = self.extracted_info["id"]
# Example: "Artist - Title"
if "title" in self.extracted_info and "-" in self.extracted_info["title"]:
metadata_artist, metadata_title = self.extracted_info["title"].split("-", 1)
metadata_artist = metadata_artist.strip()
metadata_title = metadata_title.strip()
elif "uploader" in self.extracted_info:
# Fallback to uploader as artist if title parsing fails
metadata_artist = self.extracted_info["uploader"]
if "title" in self.extracted_info:
metadata_title = self.extracted_info["title"].strip()
# If unable to parse, log an appropriate message
if not metadata_artist or not metadata_title:
self.logger.warning("Could not parse artist and title from the input media metadata.")
if input_artist is None:
self.logger.warn(f"Artist not provided as input, setting to {metadata_artist} from input media metadata...")
self.artist = metadata_artist
if input_title is None:
self.logger.warn(f"Title not provided as input, setting to {metadata_title} from input media metadata...")
self.title = metadata_title
if self.persistent_artist:
self.logger.debug(
f"Resetting self.artist from {self.artist} to persistent artist: {self.persistent_artist} for consistency while processing playlist..."
)
self.artist = self.persistent_artist
if self.artist and self.title:
self.logger.info(f"Extracted url: {self.url}, artist: {self.artist}, title: {self.title}")
else:
self.logger.debug(self.extracted_info)
raise Exception("Failed to extract artist and title from the input media metadata.")
def copy_input_media(self, input_media, output_filename_no_extension):
self.logger.debug(f"Copying media from local path {input_media} to filename {output_filename_no_extension} + existing extension")
copied_file_name = output_filename_no_extension + os.path.splitext(input_media)[1]
self.logger.debug(f"Copying {input_media} to {copied_file_name}")
shutil.copy2(input_media, copied_file_name)
return copied_file_name
def download_video(self, url, output_filename_no_extension):
self.logger.debug(f"Downloading media from URL {url} to filename {output_filename_no_extension} + (as yet) unknown extension")
ydl_opts = {
"quiet": True,
"format": "bv*+ba/b", # if a combined video + audio format is better than the best video-only format use the combined format
"outtmpl": f"{output_filename_no_extension}.%(ext)s",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36",
}
with ydl(ydl_opts) as ydl_instance:
ydl_instance.download([url])
# Search for the file with any extension
downloaded_files = glob.glob(f"{output_filename_no_extension}.*")
if downloaded_files:
downloaded_file_name = downloaded_files[0] # Assume the first match is the correct one
self.logger.info(f"Download finished, returning downloaded filename: {downloaded_file_name}")
return downloaded_file_name
else:
self.logger.error("No files found matching the download pattern.")
return None
def extract_still_image_from_video(self, input_filename, output_filename_no_extension):
output_filename = output_filename_no_extension + ".png"
self.logger.info(f"Extracting still image from position 30s input media")
ffmpeg_command = f'{self.ffmpeg_base_command} -i "{input_filename}" -ss 00:00:30 -vframes 1 "{output_filename}"'
self.logger.debug(f"Running command: {ffmpeg_command}")
os.system(ffmpeg_command)
return output_filename
def convert_to_wav(self, input_filename, output_filename_no_extension):
output_filename = output_filename_no_extension + ".wav"
self.logger.info(f"Converting input media to audio WAV file")
ffmpeg_command = f'{self.ffmpeg_base_command} -n -i "{input_filename}" "{output_filename}"'
self.logger.debug(f"Running command: {ffmpeg_command}")
if not self.dry_run:
os.system(ffmpeg_command)
return output_filename
def write_lyrics_from_genius(self, artist, title, filename):
genius = lyricsgenius.Genius(access_token=os.environ["GENIUS_API_TOKEN"], verbose=False, remove_section_headers=True)
song = genius.search_song(title, artist)
if song:
lyrics = self.clean_genius_lyrics(song.lyrics)
if not self.dry_run:
with open(filename, "w") as f:
f.write(lyrics)
self.logger.info("Lyrics for %s by %s fetched successfully", title, artist)
return lyrics.split("\n")
else:
self.logger.warning("Could not find lyrics for %s by %s", title, artist)
return None
def clean_genius_lyrics(self, lyrics):
lyrics = lyrics.replace("\\n", "\n")
lyrics = re.sub(r"You might also like", "", lyrics)
lyrics = re.sub(
r".*?Lyrics([A-Z])", r"\1", lyrics
) # Remove the song name and word "Lyrics" if this has a non-newline char at the start
lyrics = re.sub(r"^[0-9]* Contributors.*Lyrics", "", lyrics) # Remove this example: 27 ContributorsSex Bomb Lyrics
lyrics = re.sub(
r"See.*Live.*Get tickets as low as \$[0-9]+", "", lyrics
) # Remove this example: See Tom Jones LiveGet tickets as low as $71
lyrics = re.sub(r"[0-9]+Embed$", "", lyrics) # Remove the word "Embed" at end of line with preceding numbers if found
lyrics = re.sub(r"(\S)Embed$", r"\1", lyrics) # Remove the word "Embed" if it has been tacked onto a word at the end of a line
lyrics = re.sub(r"^Embed$", r"", lyrics) # Remove the word "Embed" if it has been tacked onto a word at the end of a line
lyrics = re.sub(r".*?\[.*?\].*?", "", lyrics) # Remove lines containing square brackets
# add any additional cleaning rules here
return lyrics
def find_best_split_point(self, line):
"""
Find the best split point in a line based on the specified criteria.
"""
self.logger.debug(f"Finding best_split_point for line: {line}")
words = line.split()
mid_word_index = len(words) // 2
self.logger.debug(f"words: {words} mid_word_index: {mid_word_index}")
# Check for a comma within one or two words of the middle word
if "," in line:
mid_point = len(" ".join(words[:mid_word_index]))
comma_indices = [i for i, char in enumerate(line) if char == ","]
for index in comma_indices:
if abs(mid_point - index) < 20 and len(line[: index + 1].strip()) <= 36:
self.logger.debug(
f"Found comma at index {index} which is within 20 characters of mid_point {mid_point} and results in a suitable line length, accepting as split point"
)
return index + 1 # Include the comma in the first line
# Check for 'and'
if " and " in line:
mid_point = len(line) // 2
and_indices = [m.start() for m in re.finditer(" and ", line)]
for index in sorted(and_indices, key=lambda x: abs(x - mid_point)):
if len(line[: index + len(" and ")].strip()) <= 36:
self.logger.debug(f"Found 'and' at index {index} which results in a suitable line length, accepting as split point")
return index + len(" and ")
# If no better split point is found, try splitting at the middle word
if len(words) > 2 and mid_word_index > 0:
split_at_middle = len(" ".join(words[:mid_word_index]))
if split_at_middle <= 36:
self.logger.debug(f"Splitting at middle word index: {mid_word_index}")
return split_at_middle
# If the line is still too long, forcibly split at the maximum length
forced_split_point = 36
if len(line) > forced_split_point:
self.logger.debug(f"Line is still too long, forcibly splitting at position {forced_split_point}")
return forced_split_point
def process_line(self, line):
"""
Process a single line to ensure it's within the maximum length,
and handle parentheses.
"""
processed_lines = []
iteration_count = 0
max_iterations = 100 # Failsafe limit
while len(line) > 36:
if iteration_count > max_iterations:
self.logger.error(f"Maximum iterations exceeded in process_line for line: {line}")
break
# Check if the line contains parentheses
if "(" in line and ")" in line:
start_paren = line.find("(")
end_paren = line.find(")") + 1
if end_paren < len(line) and line[end_paren] == ",":
end_paren += 1
if start_paren > 0:
processed_lines.append(line[:start_paren].strip())
processed_lines.append(line[start_paren:end_paren].strip())
line = line[end_paren:].strip()
else:
split_point = self.find_best_split_point(line)
processed_lines.append(line[:split_point].strip())
line = line[split_point:].strip()
iteration_count += 1
if line: # Add the remaining part if not empty
processed_lines.append(line)
return processed_lines
def write_processed_lyrics(self, lyrics, processed_lyrics_file):
self.logger.info(f"Writing processed lyrics to {processed_lyrics_file}")
processed_lyrics_lines = ""
iteration_count = 0
max_iterations = 100 # Failsafe limit
if not self.dry_run:
with open(processed_lyrics_file, "w") as outfile:
all_processed = False
while not all_processed:
if iteration_count > max_iterations:
self.logger.error("Maximum iterations exceeded in write_processed_lyrics.")
break
all_processed = True
new_lyrics = []
for line in lyrics:
line = line.strip()
# Check for abnormal space characters and replace them
abnormal_spaces = [chr(i) for i in range(sys.maxunicode) if unicodedata.category(chr(i)) == "Zs" and chr(i) != " "]
if any(space in line for space in abnormal_spaces):
self.logger.warning(f"Replacing abnormal space characters found in line: {line}")
for space in abnormal_spaces:
line = line.replace(space, " ")
processed = self.process_line(line)
new_lyrics.extend(processed)
if any(len(l) > 36 for l in processed):
all_processed = False
lyrics = new_lyrics
iteration_count += 1
# Write the processed lyrics to file
for line in lyrics:
outfile.write(line + "\n")
processed_lyrics_lines += line + "\n"
if not self.dry_run:
try:
pyperclip.copy(processed_lyrics_lines)
self.logger.info(f"Processed lyrics copied to clipboard.")
except PyperclipException:
self.logger.warning("Clipboard functionality not available. Skipping clipboard operations.")
return processed_lyrics_lines
def sanitize_filename(self, filename):
"""Replace or remove characters that are unsafe for filenames."""
# Replace problematic characters with underscores
for char in ["\\", "/", ":", "*", "?", '"', "<", ">", "|"]:
filename = filename.replace(char, "_")
# Remove any trailing periods or spaces
filename = filename.rstrip(" ")
return filename
def separate_audio(self, audio_file, model_name, instrumental_path, vocals_path):
if audio_file is None or not os.path.isfile(audio_file):
raise Exception("Error: Invalid audio source provided.")
self.logger.debug(f"audio_file is valid file: {audio_file}")
self.logger.info(
f"instantiating Separator with model_file_dir: {self.model_file_dir}, model_filename: {model_name} output_format: {self.lossless_output_format}"
)
from audio_separator.separator import Separator
separator = Separator(
log_level=self.log_level,
log_formatter=self.log_formatter,
model_file_dir=self.model_file_dir,
output_format=self.lossless_output_format,
)
separator.load_model(model_filename=model_name)
output_files = separator.separate(audio_file)
for file in output_files:
if "(Vocals)" in file:
os.rename(file, vocals_path)
elif "(Instrumental)" in file:
os.rename(file, instrumental_path)
self.logger.info(f"Separation complete! Output file(s): {vocals_path} {instrumental_path}")
def setup_output_paths(self, artist, title):
sanitized_artist = self.sanitize_filename(artist)
sanitized_title = self.sanitize_filename(title)
artist_title = f"{sanitized_artist} - {sanitized_title}"
track_output_dir = self.output_dir
if self.create_track_subfolders:
track_output_dir = os.path.join(self.output_dir, f"{artist_title}")
if not os.path.exists(track_output_dir):
self.logger.debug(f"Output dir {track_output_dir} did not exist, creating")
os.makedirs(track_output_dir)
return track_output_dir, artist_title
def calculate_text_size_and_position(self, draw, text, font_path, start_size, resolution, padding):
font_size = start_size
font = ImageFont.truetype(font_path, size=font_size) if os.path.exists(font_path) else ImageFont.load_default()
# Initial position for calculating the text bounding box
temp_position = (padding, padding)
bbox = draw.textbbox(temp_position, text, font=font)
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
while text_width + 2 * padding > resolution[0] or text_height + 2 * padding > resolution[1]:
font_size -= 10
if font_size <= 0:
raise ValueError("Cannot fit text within screen bounds.")
font = ImageFont.truetype(font_path, size=font_size) if os.path.exists(font_path) else ImageFont.load_default()
bbox = draw.textbbox(temp_position, text, font=font)
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
text_position = ((resolution[0] - text_width) // 2, (resolution[1] - text_height) // 2)
return font, text_position
def calculate_text_position(self, draw, text, font, resolution, vertical_offset):
bbox = draw.textbbox((0, 0), text, font=font)
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
text_x = (resolution[0] - text_width) // 2
text_y = vertical_offset
return (text_x, text_y), text_height
def create_video(
self,
extra_text,
title_text,
artist_text,
format,
output_image_filepath_noext,
output_video_filepath,
existing_image=None,
extra_text_color=None,
title_color=None,
artist_color=None,
duration=5,
initial_font_size=500,
top_padding=950,
title_padding=400,
artist_padding=700,
extra_text_padding=600,
fixed_gap=150,
):
resolution = (3840, 2160) # 4K resolution
self.logger.info(f"Creating video with format: {format}")
self.logger.info(f"extra_text: {extra_text}, artist_text: {artist_text}, title_text: {title_text}")
self.logger.info(
f"top_padding: {top_padding}, title_padding: {title_padding}, artist_padding: {artist_padding}, extra_text_padding: {extra_text_padding}"
)
if existing_image:
self.logger.info(f"Using existing image file: {existing_image}")
existing_extension = os.path.splitext(existing_image)[1]
if existing_extension == ".png":
self.logger.info(f"Copying existing PNG image file: {existing_image}")
shutil.copy2(existing_image, output_image_filepath_noext + existing_extension)
else:
self.logger.info(f"Converting existing image to PNG")
existing_image_obj = Image.open(existing_image)
existing_image_obj.save(output_image_filepath_noext + ".png")
if existing_extension != ".jpg":
self.logger.info(f"Converting existing image to JPG")
existing_image_obj = Image.open(existing_image)
if existing_image_obj.mode == "RGBA":
existing_image_obj = existing_image_obj.convert("RGB") # Convert RGBA to RGB
existing_image_obj.save(output_image_filepath_noext + ".jpg", quality=95)
else:
# Load or create background image
if format["background_image"] and os.path.exists(format["background_image"]):
self.logger.info(f"Using background image file: {format['background_image']}")
background = Image.open(format["background_image"])
else:
self.logger.info(f"Using background color: {format['background_color']}")
background = Image.new("RGB", resolution, color=self.hex_to_rgb(format["background_color"]))
# Resize background to match resolution
background = background.resize(resolution)
draw = ImageDraw.Draw(background)
# Accessing the font file from the package resources
with pkg_resources.path("karaoke_prep.resources", format["font"]) as font_path:
# Calculate positions and sizes for title, artist, and extra text
title_font, _ = self.calculate_text_size_and_position(
draw, title_text, str(font_path), initial_font_size, resolution, title_padding
)
artist_font, _ = self.calculate_text_size_and_position(
draw, artist_text, str(font_path), initial_font_size, resolution, artist_padding
)
if extra_text:
self.logger.info(f"Calculating extra text font size and position for: {extra_text}")
extra_text_font, _ = self.calculate_text_size_and_position(
draw, extra_text, str(font_path), initial_font_size, resolution, extra_text_padding
)
# Calculate vertical positions with consistent gap
current_y = top_padding
if extra_text:
self.logger.info(f"Calculating extra text position for: {extra_text}")
extra_text_position, extra_text_height = self.calculate_text_position(
draw, extra_text, extra_text_font, resolution, current_y
)
draw.text(extra_text_position, extra_text, fill=extra_text_color, font=extra_text_font)
current_y += extra_text_height + fixed_gap
title_text_position, title_height = self.calculate_text_position(draw, title_text, title_font, resolution, current_y)
draw.text(title_text_position, title_text, fill=title_color, font=title_font)
current_y += title_height + fixed_gap
artist_text_position, _ = self.calculate_text_position(draw, artist_text, artist_font, resolution, current_y)
draw.text(artist_text_position, artist_text, fill=artist_color, font=artist_font)
# Save static background image
background.save(f"{output_image_filepath_noext}.png")
# Save static background image as JPG for smaller filesize to upload as YouTube thumbnail
background_rgb = background.convert("RGB")
background_rgb.save(f"{output_image_filepath_noext}.jpg", quality=95)
# Use ffmpeg to create video
ffmpeg_command = f'{self.ffmpeg_base_command} -y -loop 1 -framerate 30 -i "{output_image_filepath_noext}.png" -f lavfi -i anullsrc '
ffmpeg_command += f'-c:v libx264 -r 30 -t {duration} -pix_fmt yuv420p -vf scale={resolution[0]}:{resolution[1]} -c:a aac -shortest "{output_video_filepath}"'
self.logger.info("Generating video...")
self.logger.debug(f"Running command: {ffmpeg_command}")
os.system(ffmpeg_command)
def create_end_video(self, artist, title, format, output_image_filepath_noext, output_video_filepath):
extra_text = self.end_extra_text
title_text = title.upper()
artist_text = artist.upper()
self.create_video(
extra_text=extra_text,
title_text=title_text,
artist_text=artist_text,
format=format,
output_image_filepath_noext=output_image_filepath_noext,
output_video_filepath=output_video_filepath,
existing_image=self.existing_end_image,
extra_text_color=format["extra_text_color"],
title_color=format["title_color"],
artist_color=format["artist_color"],
duration=self.end_video_duration,
initial_font_size=self.end_initial_font_size,
top_padding=self.end_top_padding,
title_padding=self.end_title_padding,
artist_padding=self.end_artist_padding,
extra_text_padding=self.end_extra_text_padding,
fixed_gap=self.end_fixed_gap,
)
def create_title_video(self, artist, title, format, output_image_filepath_noext, output_video_filepath):
title_text = title.upper()
artist_text = artist.upper()
self.create_video(
extra_text=None,
title_text=title_text,
artist_text=artist_text,
format=format,
output_image_filepath_noext=output_image_filepath_noext,
output_video_filepath=output_video_filepath,
existing_image=self.existing_title_image,
title_color=format["title_color"],
artist_color=format["artist_color"],
duration=self.title_video_duration,
initial_font_size=self.title_initial_font_size,
top_padding=self.title_top_padding,
title_padding=self.title_title_padding,
artist_padding=self.title_artist_padding,
fixed_gap=self.title_fixed_gap,
)
def hex_to_rgb(self, hex_color):
"""Convert hex color to RGB tuple."""
hex_color = hex_color.lstrip("#")
return tuple(int(hex_color[i : i + 2], 16) for i in (0, 2, 4))
def prep_single_track(self):
self.logger.info(f"Preparing single track: {self.artist} - {self.title}")
if self.input_media is not None and os.path.isfile(self.input_media):
self.extractor = "Local"
else:
# Parses metadata in self.extracted_info to set vars: self.url, self.extractor, self.media_id, self.artist, self.title
self.parse_single_track_metadata(input_artist=self.artist, input_title=self.title)
self.logger.info(f"Preparing output path for track: {self.title} by {self.artist}")
if self.dry_run:
return None
track_output_dir, artist_title = self.setup_output_paths(self.artist, self.title)
processed_track = {
"track_output_dir": track_output_dir,
"artist": self.artist,
"title": self.title,
"extractor": self.extractor,
"extracted_info": self.extracted_info,
"lyrics": None,
"processed_lyrics": None,
"separated_audio": {},
}
processed_track["input_media"] = None
processed_track["input_still_image"] = None
processed_track["input_audio_wav"] = None
if self.input_media is not None and os.path.isfile(self.input_media):
input_wav_filename_pattern = os.path.join(track_output_dir, f"{artist_title} ({self.extractor} *.wav")
input_wav_glob = glob.glob(input_wav_filename_pattern)
if input_wav_glob:
processed_track["input_audio_wav"] = input_wav_glob[0]
self.logger.info(f"Input media WAV file already exists, skipping conversion: {processed_track['input_audio_wav']}")
else:
output_filename_no_extension = os.path.join(track_output_dir, f"{artist_title} ({self.extractor})")
self.logger.info(f"Copying input media from {self.input_media} to new directory...")
processed_track["input_media"] = self.copy_input_media(self.input_media, output_filename_no_extension)
self.logger.info("Converting input media to WAV for audio processing...")
processed_track["input_audio_wav"] = self.convert_to_wav(processed_track["input_media"], output_filename_no_extension)
else:
# WebM may not always be the output format from ytdlp, but it's common and this is just a convenience cache
input_webm_filename_pattern = os.path.join(track_output_dir, f"{artist_title} ({self.extractor} *.webm")
input_webm_glob = glob.glob(input_webm_filename_pattern)
input_png_filename_pattern = os.path.join(track_output_dir, f"{artist_title} ({self.extractor} *.png")
input_png_glob = glob.glob(input_png_filename_pattern)
input_wav_filename_pattern = os.path.join(track_output_dir, f"{artist_title} ({self.extractor} *.wav")
input_wav_glob = glob.glob(input_wav_filename_pattern)
if input_webm_glob and input_png_glob and input_wav_glob:
processed_track["input_media"] = input_webm_glob[0]
processed_track["input_still_image"] = input_png_glob[0]
processed_track["input_audio_wav"] = input_wav_glob[0]
self.logger.info(f"Input media files already exist, skipping download: {processed_track['input_media']} + .wav + .png")
else:
if self.url:
output_filename_no_extension = os.path.join(track_output_dir, f"{artist_title} ({self.extractor} {self.media_id})")
self.logger.info(f"Downloading input media from {self.url}...")
processed_track["input_media"] = self.download_video(self.url, output_filename_no_extension)
self.logger.info("Extracting still image from downloaded media (if input is video)...")
processed_track["input_still_image"] = self.extract_still_image_from_video(
processed_track["input_media"], output_filename_no_extension
)
self.logger.info("Converting downloaded video to WAV for audio processing...")
processed_track["input_audio_wav"] = self.convert_to_wav(processed_track["input_media"], output_filename_no_extension)
else:
self.logger.warning(f"Skipping download due to missing URL.")
if self.skip_lyrics:
self.logger.info("Skipping lyrics fetch as requested.")
processed_track["lyrics"] = None
processed_track["processed_lyrics"] = None
else:
processed_track["lyrics"] = os.path.join(track_output_dir, f"{artist_title} (Lyrics).txt")
if os.path.exists(processed_track["lyrics"]):
self.logger.debug(f"Lyrics file already exists, skipping fetch: {processed_track['lyrics']}")
else:
self.logger.info("Fetching lyrics from Genius...")
lyrics_artist = self.lyrics_artist or self.artist
lyrics_title = self.lyrics_title or self.title
self.lyrics = self.write_lyrics_from_genius(lyrics_artist, lyrics_title, processed_track["lyrics"])
processed_track["processed_lyrics"] = os.path.join(track_output_dir, f"{artist_title} (Lyrics Processed).txt")
if self.lyrics is None:
processed_track["lyrics"] = None
processed_track["processed_lyrics"] = None
else:
self.write_processed_lyrics(self.lyrics, processed_track["processed_lyrics"])
output_image_filepath_noext = os.path.join(track_output_dir, f"{artist_title} (Title)")
processed_track["title_image_png"] = f"{output_image_filepath_noext}.png"
processed_track["title_image_jpg"] = f"{output_image_filepath_noext}.jpg"
processed_track["title_video"] = os.path.join(track_output_dir, f"{artist_title} (Title).mov")
if os.path.exists(processed_track["title_video"]):
self.logger.debug(f"Title video already exists, skipping render: {processed_track['title_video']}")
else:
self.logger.info(f"Creating title video...")
self.create_title_video(self.artist, self.title, self.title_format, output_image_filepath_noext, processed_track["title_video"])
output_image_filepath_noext = os.path.join(track_output_dir, f"{artist_title} (End)")
processed_track["end_image_png"] = f"{output_image_filepath_noext}.png"
processed_track["end_image_jpg"] = f"{output_image_filepath_noext}.jpg"
processed_track["end_video"] = os.path.join(track_output_dir, f"{artist_title} (End).mov")
if os.path.exists(processed_track["end_video"]):
self.logger.debug(f"End screen video already exists, skipping render: {processed_track['end_video']}")
else:
self.logger.info(f"Creating end screen video...")
self.create_end_video(self.artist, self.title, self.end_format, output_image_filepath_noext, processed_track["end_video"])
if self.existing_instrumental:
self.logger.info(f"Using existing instrumental file: {self.existing_instrumental}")
existing_instrumental_extension = os.path.splitext(self.existing_instrumental)[1]
instrumental_path = os.path.join(track_output_dir, f"{artist_title} (Instrumental Custom){existing_instrumental_extension}")
instrumental_path_lossy = os.path.join(track_output_dir, f"{artist_title} (Instrumental Custom).{self.lossy_output_format}")
shutil.copy2(self.existing_instrumental, instrumental_path)
self.convert_to_lossy(instrumental_path, instrumental_path_lossy)
processed_track["separated_audio"]["Custom"] = {
"instrumental": instrumental_path,
"instrumental_lossy": instrumental_path_lossy,
"vocals": None,
"vocals_lossy": None,
}
else:
self.logger.info(f"Separating audio for track: {self.title} by {self.artist} using models: {', '.join(self.model_names)}")
for model_name in self.model_names:
processed_track[f"separated_audio"][model_name] = {}
instrumental_path = os.path.join(
track_output_dir, f"{artist_title} (Instrumental {model_name}).{self.lossless_output_format}"
)
vocals_path = os.path.join(track_output_dir, f"{artist_title} (Vocals {model_name}).{self.lossless_output_format}")
instrumental_path_lossy = os.path.join(
track_output_dir, f"{artist_title} (Instrumental {model_name}).{self.lossy_output_format}"
)
vocals_path_lossy = os.path.join(track_output_dir, f"{artist_title} (Vocals {model_name}).{self.lossy_output_format}")
if not (os.path.isfile(instrumental_path) and os.path.isfile(vocals_path)):
self.separate_audio(processed_track["input_audio_wav"], model_name, instrumental_path, vocals_path)
self.convert_to_lossy(instrumental_path, instrumental_path_lossy)
self.convert_to_lossy(vocals_path, vocals_path_lossy)
processed_track[f"separated_audio"][model_name]["instrumental"] = instrumental_path
processed_track[f"separated_audio"][model_name]["vocals"] = vocals_path
processed_track[f"separated_audio"][model_name]["instrumental_lossy"] = instrumental_path_lossy
processed_track[f"separated_audio"][model_name]["vocals_lossy"] = vocals_path_lossy
self.logger.info("Script finished, audio downloaded, lyrics fetched and audio separated!")
return processed_track
def convert_to_lossy(self, input_filename, output_filename):
if input_filename is None or not os.path.isfile(input_filename):
raise Exception(f"Error: Invalid input file provided for convert_to_lossy: {input_filename}")
self.logger.info(f"Converting {self.lossless_output_format} audio to lossy {self.lossy_output_format} format")
ffmpeg_extras = "-q:a 0" if self.lossy_output_format == "mp3" else ""
ffmpeg_command = f'{self.ffmpeg_base_command} -i "{input_filename}" {ffmpeg_extras} "{output_filename}"'
self.logger.debug(f"Running command: {ffmpeg_command}")
os.system(ffmpeg_command)
def process_playlist(self):
if self.artist is None or self.title is None:
raise Exception("Error: Artist and Title are required for processing a local file.")
if "entries" in self.extracted_info:
track_results = []
self.logger.info(f"Found {len(self.extracted_info['entries'])} entries in playlist, processing each invididually...")
for entry in self.extracted_info["entries"]:
self.extracted_info = entry
self.logger.info(f"Processing playlist entry with title: {self.extracted_info['title']}")
if not self.dry_run:
track_results.append(self.prep_single_track())
self.artist = self.persistent_artist
self.title = None
return track_results
else:
raise Exception(f"Failed to find 'entries' in playlist, cannot process")
def process_folder(self):
if self.filename_pattern is None or self.artist is None:
raise Exception("Error: Filename pattern and artist are required for processing a folder.")
folder_path = self.input_media
output_folder_path = os.path.join(os.getcwd(), os.path.basename(folder_path))
if not os.path.exists(output_folder_path):
if not self.dry_run:
self.logger.info(f"DRY RUN: Would create output folder: {output_folder_path}")
os.makedirs(output_folder_path)
else:
self.logger.info(f"Output folder already exists: {output_folder_path}")
pattern = re.compile(self.filename_pattern)
tracks = []
for filename in sorted(os.listdir(folder_path)):
match = pattern.match(filename)
if match:
title = match.group("title")
file_path = os.path.join(folder_path, filename)
self.input_media = file_path
self.title = title
track_index = match.group("index") if "index" in match.groupdict() else None
self.logger.info(f"Processing track: {track_index} with title: {title} from file: {filename}")
track_output_dir = os.path.join(output_folder_path, f"{track_index} - {self.artist} - {title}")
if not self.dry_run:
track = self.prep_single_track()
tracks.append(track)
# Move the track folder to the output folder
track_folder = track["track_output_dir"]
shutil.move(track_folder, track_output_dir)
else:
self.logger.info(f"DRY RUN: Would move track folder to: {os.path.basename(track_output_dir)}")
return tracks
def process(self):
if self.input_media is not None and os.path.isdir(self.input_media):
self.logger.info(f"Input media {self.input_media} is a local folder, processing each file individually...")
return self.process_folder()
elif self.input_media is not None and os.path.isfile(self.input_media):
self.logger.info(f"Input media {self.input_media} is a local file, youtube logic will be skipped")
return [self.prep_single_track()]
else:
self.url = self.input_media
# Runs yt-dlp extract_info for input URL or artist/title search query to set var: self.extracted_info
# We do this first as the input URL may be a playlist
self.extract_info_for_online_media(input_url=self.url, input_artist=self.artist, input_title=self.title)
if self.extracted_info and "playlist_count" in self.extracted_info:
self.persistent_artist = self.artist
self.logger.info(f"Input URL is a playlist, beginning batch operation with persistent artist: {self.persistent_artist}")
return self.process_playlist()
else:
self.logger.info(f"Input URL is not a playlist, processing single track")
return [self.prep_single_track()]
-315
View File
@@ -1,315 +0,0 @@
import requests
import os
import re
import glob
from bs4 import BeautifulSoup
import yt_dlp
import logging
import lyricsgenius
from slugify import slugify
from audio_separator import Separator
class KaraokePrep:
def __init__(
self,
url=None,
artist=None,
title=None,
log_level=logging.DEBUG,
log_formatter=None,
model_name="UVR_MDXNET_KARA_2",
model_name_2="UVR-MDX-NET-Inst_HQ_3",
model_file_dir="/tmp/audio-separator-models/",
output_dir=".",
output_format="WAV",
use_cuda=False,
use_coreml=False,
normalization_enabled=True,
denoise_enabled=True,
create_track_subfolders=False,
):
self.logger = logging.getLogger(__name__)
self.logger.setLevel(log_level)
self.log_level = log_level
self.log_formatter = log_formatter
self.log_handler = logging.StreamHandler()
if self.log_formatter is None:
self.log_formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(module)s - %(message)s")
self.log_handler.setFormatter(self.log_formatter)
self.logger.addHandler(self.log_handler)
self.logger.debug(f"KaraokePrep instantiating with url: {url} artist: {artist} title: {title}")
self.url = url
self.artist = artist
self.title = title
self.model_name = model_name
self.model_name_2 = model_name_2
self.model_file_dir = model_file_dir
self.output_dir = output_dir
self.output_format = output_format
self.use_cuda = use_cuda
self.use_coreml = use_coreml
self.normalization_enabled = normalization_enabled
self.denoise_enabled = denoise_enabled
self.create_track_subfolders = create_track_subfolders
self.logger.debug(f"KaraokePrep output_format: {self.output_format}")
if not os.path.exists(self.output_dir):
self.logger.debug(f"Overall output dir {self.output_dir} did not exist, creating")
os.makedirs(self.output_dir)
else:
self.logger.debug(f"Overall output dir {self.output_dir} already exists")
if artist is None or title is None:
self.logger.warn(f"Artist or Title nor specified manually, guessing from YouTube metadata...")
self.extract_metadata_from_url()
def extract_metadata_from_url(self):
"""
Extracts metadata from the YouTube URL.
"""
if self.url:
with yt_dlp.YoutubeDL({"quiet": True}) as ydl:
info = ydl.extract_info(self.url, download=False)
self.artist, self.title = self.parse_metadata(info)
if self.artist and self.title:
self.logger.info(f"Extracted artist: {self.artist}, title: {self.title}")
else:
self.logger.error("Failed to extract artist and title from the YouTube URL.")
def parse_metadata(self, info):
"""
Parses the metadata to extract artist and title.
:param info: The metadata information extracted from yt_dlp.
:return: A tuple containing the artist and title.
"""
# Default values if parsing fails
artist = ""
title = ""
# Example: "Artist - Title"
if "title" in info and "-" in info["title"]:
artist, title = info["title"].split("-", 1)
artist = artist.strip()
title = title.strip()
elif "uploader" in info:
# Fallback to uploader as artist if title parsing fails
artist = info["uploader"]
if "title" in info:
title = info["title"].strip()
# If unable to parse, log an appropriate message
if not artist or not title:
self.logger.warning("Could not parse artist and title from the video metadata.")
return artist, title
def get_youtube_id_for_top_search_result(self, query):
ydl_opts = {"quiet": "True", "format": "bestaudio", "noplaylist": "True", "extract_flat": True}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
video = ydl.extract_info(f"ytsearch1:{query}", download=False)["entries"][0]
if video:
youtube_id = video.get("id")
return youtube_id
else:
self.logger.warning(f"No YouTube results found for query: {query}")
return None
def download_video(self, youtube_id, output_filename_no_extension):
self.logger.debug(f"Downloading YouTube video {youtube_id} to filename {output_filename_no_extension} + (as yet) unknown extension")
ydl_opts = {
"format": "bv*+ba/b", # if a combined video + audio format is better than the best video-only format use the combined format
"outtmpl": f"{output_filename_no_extension}",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36",
}
with yt_dlp.YoutubeDL(ydl_opts) as youtube_dl_instance:
youtube_dl_instance.download([f"https://www.youtube.com/watch?v={youtube_id}"])
self.logger.warn(f"Download finished, assuming hard-coded webm extension (!) and returning this filename")
# TODO: Replace hard-coded webm extension with the actual extension of the downloaded file using yt-dlp hooks / event callback
return output_filename_no_extension + ".webm"
def extract_still_image_from_video(self, input_filename, output_filename_no_extension):
output_filename = output_filename_no_extension + ".png"
self.logger.debug(f"Extracting still image from position 30s YouTube video to {output_filename}")
os.system(f'ffmpeg -i "{input_filename}" -ss 00:00:30 -vframes 1 "{output_filename}"')
return output_filename
def convert_to_wav(self, input_filename, output_filename_no_extension):
output_filename = output_filename_no_extension + ".wav"
self.logger.debug(f"Converting {input_filename} to WAV file {output_filename}")
os.system(f'ffmpeg -i "{input_filename}" "{output_filename}"')
return output_filename
def write_lyrics_from_genius(self, artist, title, filename):
genius = lyricsgenius.Genius(os.environ["GENIUS_API_TOKEN"])
song = genius.search_song(title, artist)
if song:
lyrics = self.clean_genius_lyrics(song.lyrics)
with open(filename, "w") as f:
f.write(lyrics)
self.logger.info("Lyrics for %s by %s fetched successfully", title, artist)
else:
self.logger.warning("Could not find lyrics for %s by %s", title, artist)
def clean_genius_lyrics(self, lyrics):
lyrics = lyrics.replace("\\n", "\n")
lyrics = re.sub(r"You might also like", "", lyrics)
lyrics = re.sub(
r".*?Lyrics([A-Z])", r"\1", lyrics
) # Remove the song name and word "Lyrics" if this has a non-newline char at the start
lyrics = re.sub(r"[0-9]+Embed$", "", lyrics) # Remove the word "Embed" at end of line with preceding numbers if found
lyrics = re.sub(r"(\S)Embed$", r"\1", lyrics) # Remove the word "Embed" if it has been tacked onto a word at the end of a line
lyrics = re.sub(r"^Embed$", r"", lyrics) # Remove the word "Embed" if it has been tacked onto a word at the end of a line
lyrics = re.sub(r".*?\[.*?\].*?", "", lyrics) # Remove lines containing square brackets
# add any additional cleaning rules here
return lyrics
def sanitize_filename(self, filename):
"""Replace or remove characters that are unsafe for filenames."""
# Replace problematic characters with underscores
for char in ["\\", "/", ":", "*", "?", '"', "<", ">", "|"]:
filename = filename.replace(char, "_")
# Remove any trailing periods or spaces
filename = filename.rstrip(". ")
return filename
def separate_audio(self, audio_file, model_name, instrumental_path, vocals_path):
if audio_file is None or not os.path.isfile(audio_file):
raise Exception("Error: Invalid audio source provided.")
self.logger.debug(f"audio_file is valid file: {audio_file}")
self.logger.debug(
f"instantiating Separator with model_name: {model_name} instrumental_path: {instrumental_path} and output_format: {self.output_format}"
)
separator = Separator(
audio_file,
log_level=self.log_level,
log_formatter=self.log_formatter,
model_name=model_name,
model_file_dir=self.model_file_dir,
output_format=self.output_format,
primary_stem_path=instrumental_path,
secondary_stem_path=vocals_path,
)
_, _ = separator.separate()
self.logger.debug(f"Separation complete!")
def setup_output_paths(self, artist, title):
sanitized_artist = self.sanitize_filename(artist)
sanitized_title = self.sanitize_filename(title)
artist_title = f"{sanitized_artist} - {sanitized_title}"
track_output_dir = self.output_dir
if self.create_track_subfolders:
track_output_dir = os.path.join(self.output_dir, f"{artist_title}")
if not os.path.exists(track_output_dir):
self.logger.debug(f"Output dir {track_output_dir} did not exist, creating")
os.makedirs(track_output_dir)
return track_output_dir, artist_title
def prep(self):
artist = self.artist
title = self.title
self.logger.info(f"Downloading inputs for track: {title} by {artist}")
track_output_dir, artist_title = self.setup_output_paths(artist, title)
processed_track = {
"track_output_dir": track_output_dir,
"artist": artist,
"title": title,
}
yt_webm_filename_pattern = os.path.join(track_output_dir, f"{artist_title} (YouTube *.webm")
yt_webm_glob = glob.glob(yt_webm_filename_pattern)
yt_png_filename_pattern = os.path.join(track_output_dir, f"{artist_title} (YouTube *.png")
yt_png_glob = glob.glob(yt_png_filename_pattern)
yt_wav_filename_pattern = os.path.join(track_output_dir, f"{artist_title} (YouTube *.wav")
yt_wav_glob = glob.glob(yt_wav_filename_pattern)
processed_track["youtube_video"] = None
processed_track["youtube_still_image"] = None
processed_track["youtube_audio"] = None
if yt_webm_glob and yt_png_glob and yt_wav_glob:
processed_track["youtube_video"] = yt_webm_glob[0]
processed_track["youtube_still_image"] = yt_png_glob[0]
processed_track["youtube_audio"] = yt_wav_glob[0]
self.logger.debug(f"YouTube output files already exist, skipping download: {processed_track['youtube_video']} + .wav + .png")
else:
if self.url is None:
self.logger.warn(f"No URL specified - the top result from YouTube will be used.")
self.logger.info("Searching YouTube for video ID...")
query = f"{artist} {title}"
youtube_id = self.get_youtube_id_for_top_search_result(query)
else:
self.logger.info("Parsing YouTube video ID from URL...")
youtube_id = self.url.split("watch?v=")[1]
if youtube_id:
output_filename_no_extension = os.path.join(track_output_dir, f"{artist_title} (YouTube {youtube_id})")
self.logger.info("Downloading original video from YouTube...")
processed_track["youtube_video"] = self.download_video(youtube_id, output_filename_no_extension)
self.logger.info("Extracting still image from downloaded video...")
processed_track["youtube_still_image"] = self.extract_still_image_from_video(
processed_track["youtube_video"], output_filename_no_extension
)
self.logger.info("Converting downloaded video to WAV for audio processing...")
processed_track["youtube_audio"] = self.convert_to_wav(processed_track["youtube_video"], output_filename_no_extension)
else:
self.logger.warning(f"Skipping {title} by {artist} due to missing YouTube ID.")
lyrics_file = os.path.join(track_output_dir, f"{artist_title} (Lyrics).txt")
if os.path.exists(lyrics_file):
self.logger.debug(f"Lyrics file already exists, skipping fetch: {lyrics_file}")
else:
self.logger.info("Fetching lyrics from Genius...")
self.write_lyrics_from_genius(artist, title, lyrics_file)
processed_track["lyrics"] = lyrics_file
self.logger.info(f"Separating audio twice for track: {title} by {artist}")
instrumental_path = os.path.join(track_output_dir, f"{artist_title} (Instrumental {self.model_name}).{self.output_format}")
vocals_path = os.path.join(track_output_dir, f"{artist_title} (Vocals {self.model_name}).{self.output_format}")
if os.path.isfile(instrumental_path) and os.path.isfile(vocals_path):
self.logger.debug(f"Separated audio files already exist in output paths, skipping separation: {instrumental_path}")
else:
self.separate_audio(processed_track["youtube_audio"], self.model_name, instrumental_path, vocals_path)
processed_track["instrumental_audio"] = instrumental_path
processed_track["vocals_audio"] = vocals_path
instrumental_path_2 = os.path.join(track_output_dir, f"{artist_title} (Instrumental {self.model_name_2}).{self.output_format}")
vocals_path_2 = os.path.join(track_output_dir, f"{artist_title} (Vocals {self.model_name_2}).{self.output_format}")
if os.path.isfile(instrumental_path_2) and os.path.isfile(vocals_path_2):
self.logger.debug(f"Separated audio files already exist in output paths, skipping separation: {instrumental_path_2}")
else:
self.separate_audio(processed_track["youtube_audio"], self.model_name_2, instrumental_path_2, vocals_path_2)
processed_track["instrumental_audio_2"] = instrumental_path_2
processed_track["vocals_audio_2"] = vocals_path_2
self.logger.info("Script finished, audio downloaded, lyrics fetched and audio separated!")
return processed_track
Binary file not shown.
Binary file not shown.
-136
View File
@@ -1,136 +0,0 @@
#!/usr/bin/env python
import argparse
import logging
import pkg_resources
from karaoke_prep import KaraokePrep
def main():
logger = logging.getLogger(__name__)
log_handler = logging.StreamHandler()
log_formatter = logging.Formatter(fmt="%(asctime)s.%(msecs)03d - %(levelname)s - %(module)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
log_handler.setFormatter(log_formatter)
logger.addHandler(log_handler)
parser = argparse.ArgumentParser(
description="Fetch audio and lyrics for a specified song, to prepare karaoke video creation.",
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, max_help_position=50),
)
parser.add_argument("url", nargs="?", help="YouTube URL of the song to prep.", default=None)
parser.add_argument("artist", nargs="?", help="Artist name for the song to prep.", default=None)
parser.add_argument("title", nargs="?", help="Title of the song to prep.", default=None)
package_version = pkg_resources.get_distribution("karaoke-prep").version
parser.add_argument("-v", "--version", action="version", version=f"%(prog)s {package_version}")
parser.add_argument(
"--log_level",
default="info",
help="Optional: logging level, e.g. info, debug, warning (default: %(default)s). Example: --log_level=debug",
)
parser.add_argument(
"--model_name",
default="UVR_MDXNET_KARA_2",
help="Optional: model name to be used for separation (default: %(default)s). Example: --model_name=UVR-MDX-NET-Inst_HQ_3",
)
parser.add_argument(
"--model_file_dir",
default="/tmp/audio-separator-models/",
help="Optional: model files directory (default: %(default)s). Example: --model_file_dir=/app/models",
)
parser.add_argument(
"--output_dir",
default=".",
help="Optional: directory to write output files (default: <current dir>). Example: --output_dir=/app/karaoke",
)
parser.add_argument(
"--output_format",
default="MP3",
help="Optional: output format for separated audio (default: MP3). Example: --output_format=FLAC",
)
parser.add_argument(
"--use_cuda",
action="store_true",
help="Optional: use Nvidia GPU with CUDA for separation (default: %(default)s). Example: --use_cuda=true",
)
parser.add_argument(
"--use_coreml",
action="store_true",
help="Optional: use Apple Silicon GPU with CoreML for separation (default: %(default)s). Example: --use_coreml=true",
)
parser.add_argument(
"--denoise",
type=lambda x: (str(x).lower() == "true"),
default=True,
help="Optional: enable or disable denoising during separation (default: %(default)s). Example: --denoise=False",
)
parser.add_argument(
"--normalize",
type=lambda x: (str(x).lower() == "true"),
default=True,
help="Optional: enable or disable normalization during separation (default: %(default)s). Example: --normalize=False",
)
parser.add_argument(
"--no_track_subfolders",
action="store_false",
help="Optional: do NOT create a named subfolder for each track. Example: --no_track_subfolders",
)
args = parser.parse_args()
log_level = getattr(logging, args.log_level.upper())
logger.setLevel(log_level)
if not hasattr(args, "artist") or not hasattr(args, "title"):
if not args.url:
parser.print_help()
exit(1)
else:
# Proceed with only URL
logger.info("Artist and title will be guessed from the provided URL.")
logger.info(f"KaraokePrep beginning with url: {args.url} artist: {args.artist} and title: {args.title}")
kprep = KaraokePrep(
artist=args.artist,
title=args.title,
url=args.url,
log_formatter=log_formatter,
log_level=log_level,
model_name=args.model_name,
model_file_dir=args.model_file_dir,
output_dir=args.output_dir,
output_format=args.output_format,
use_cuda=args.use_cuda,
use_coreml=args.use_coreml,
normalization_enabled=args.normalize,
denoise_enabled=args.denoise,
create_track_subfolders=args.no_track_subfolders,
)
track = kprep.prep()
logger.info(f"Karaoke Prep complete! Output files:")
logger.info(f"")
logger.info(f"Track: {track['artist']} - {track['title']}")
logger.info(f" YouTube Video: {track['youtube_video']}")
logger.info(f" YouTube Audio: {track['youtube_audio']}")
logger.info(f" YouTube Still Image: {track['youtube_still_image']}")
logger.info(f" Lyrics: {track['lyrics']}")
logger.info(f" Instrumental: {track['instrumental_audio']}")
logger.info(f" Vocals: {track['vocals_audio']}")
if __name__ == "__main__":
main()
+153
View File
@@ -0,0 +1,153 @@
#!/usr/bin/env python
import argparse
import logging
import pkg_resources
import os
import sys
from karaoke_prep.karaoke_finalise import KaraokeFinalise
def main():
logger = logging.getLogger(__name__)
log_handler = logging.StreamHandler()
log_formatter = logging.Formatter(fmt="%(asctime)s.%(msecs)03d - %(levelname)s - %(module)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
log_handler.setFormatter(log_formatter)
logger.addHandler(log_handler)
parser = argparse.ArgumentParser(
description="Render, remux and join intermediate files to create final karaoke video, as the third stage after using karaoke-prep. Processes all (Karaoke).mov files in current directory.",
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, max_help_position=54),
)
package_version = pkg_resources.get_distribution("karaoke-prep").version
parser.add_argument("-v", "--version", action="version", version=f"%(prog)s {package_version}")
parser.add_argument(
"--log_level",
default="info",
help="Optional: logging level, e.g. info, debug, warning (default: %(default)s). Example: --log_level=debug",
)
parser.add_argument(
"--dry_run",
"-n",
action="store_true",
help="Optional: Enable dry run mode to print actions without executing them (default: disabled). Example: -n or --dry_run",
)
parser.add_argument(
"--model_name",
default=None,
help="Optional: specific model name to be used for separation (default: interactive prompt). Example: --model_name=UVR-MDX-NET-Inst_HQ_3",
)
parser.add_argument(
"--instrumental_format",
default="flac",
help="Optional: format / file extension for instrumental track to use for remux (default: %(default)s). Example: --instrumental_format=mp3",
)
parser.add_argument(
"--enable_cdg",
action="store_true",
help="Optional: Enable CDG ZIP generation during finalisation (default: disabled). Example: --enable_cdg",
)
parser.add_argument(
"--enable_txt",
action="store_true",
help="Optional: Enable TXT ZIP generation during finalisation (default: disabled). Example: --enable_txt",
)
parser.add_argument(
"--brand_prefix",
default=None,
help="Optional: Your brand prefix to calculate the next sequential number and move the resulting folder. Example: --brand_prefix=BRAND",
)
parser.add_argument(
"--organised_dir",
default=None,
help="Optional: Target directory where the processed folder will be moved after finalisation. Example: --organised_dir='/path/to/Tracks-Organized'",
)
parser.add_argument(
"--public_share_dir",
default=None,
help="Optional: Public share directory where final MP4 and ZIP files will be copied. Example: --public_share_dir='/path/to/Tracks-PublicShare'",
)
parser.add_argument(
"--youtube_client_secrets_file",
default=None,
help="Optional: File path to youtube client secrets file. Example: --youtube_client_secrets_file='/path/to/client_secret_1234567890_apps.googleusercontent.com.json'",
)
parser.add_argument(
"--youtube_description_file",
default=None,
help="Optional: File path to youtube video description text for uploaded videos. Example: --youtube_description_file='/path/to/youtube_description.txt'",
)
parser.add_argument(
"--rclone_destination",
default=None,
help="Optional: Rclone destination to sync your public_share_dir to after adding files to it. Example: --rclone_destination='googledrive:YourBrandNameFolder'",
)
parser.add_argument(
"--discord_webhook_url",
default=None,
help="Optional: Discord webhook URL to send notifications to. Example: --discord_webhook_url='https://discord.com/api/webhooks/1234567890/TOKEN/messages",
)
args = parser.parse_args()
log_level = getattr(logging, args.log_level.upper())
logger.setLevel(log_level)
logger.info(f"KaraokeFinalise CLI beginning initialisation...")
kfinalise = KaraokeFinalise(
log_formatter=log_formatter,
log_level=log_level,
dry_run=args.dry_run,
model_name=args.model_name,
instrumental_format=args.instrumental_format,
enable_cdg=args.enable_cdg,
enable_txt=args.enable_txt,
brand_prefix=args.brand_prefix,
organised_dir=args.organised_dir,
public_share_dir=args.public_share_dir,
youtube_client_secrets_file=args.youtube_client_secrets_file,
youtube_description_file=args.youtube_description_file,
rclone_destination=args.rclone_destination,
discord_webhook_url=args.discord_webhook_url,
)
try:
track = kfinalise.process()
except Exception as e:
logger.error(f"An error occurred during finalisation, see stack trace below: {str(e)}")
raise e
logger.info(f"Karaoke finalisation processing complete! Output files:")
logger.info(f"")
logger.info(f"Track: {track['artist']} - {track['title']}")
logger.info(f" Video With Vocals: {track['video_with_vocals']}")
logger.info(f" Video With Instrumental: {track['video_with_instrumental']}")
if "final_karaoke_cdg_zip" in track:
logger.info(f" Final CDG+MP3 ZIP: {track['final_karaoke_cdg_zip']}")
if "final_karaoke_txt_zip" in track:
logger.info(f" Final TXT+MP3 ZIP: {track['final_karaoke_txt_zip']}")
logger.info(f" Final Video with Title: {track['final_video']}")
logger.info(f" YouTube URL: {track['youtube_url']}")
logger.info(f" Brand Code: {track['brand_code']}")
logger.info(f" New Brand Code Directory: {track['new_brand_code_dir_path']}")
if __name__ == "__main__":
main()
+438
View File
@@ -0,0 +1,438 @@
#!/usr/bin/env python
import argparse
import logging
import pkg_resources
import tempfile
import os
from karaoke_prep import KaraokePrep
def is_url(string):
"""Simple check to determine if a string is a URL."""
return string.startswith("http://") or string.startswith("https://")
def is_file(string):
"""Check if a string is a valid file."""
return os.path.isfile(string)
def main():
logger = logging.getLogger(__name__)
log_handler = logging.StreamHandler()
log_formatter = logging.Formatter(fmt="%(asctime)s.%(msecs)03d - %(levelname)s - %(module)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
log_handler.setFormatter(log_formatter)
logger.addHandler(log_handler)
parser = argparse.ArgumentParser(
description="Fetch audio and lyrics for a specified song, to prepare karaoke video creation.",
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, max_help_position=54),
)
parser.add_argument(
"args",
nargs="*",
help="[Media or playlist URL] [Artist] [Title] of song to prep. If URL is provided, Artist and Title are optional but increase chance of fetching the correct lyrics. If Artist and Title are provided with no URL, the top YouTube search result will be fetched.",
)
package_version = pkg_resources.get_distribution("karaoke-prep").version
parser.add_argument("-v", "--version", action="version", version=f"%(prog)s {package_version}")
parser.add_argument(
"--log_level",
default="info",
help="Optional: logging level, e.g. info, debug, warning (default: %(default)s). Example: --log_level=debug",
)
parser.add_argument(
"--filename_pattern",
help="Required if processing a folder: Python regex pattern to extract track names from filenames. Must contain a named group 'title'. Example: --filename_pattern='(?P<index>\\d+) - (?P<title>.+).mp3'",
)
parser.add_argument(
"--dry_run",
action="store_true",
help="Optional: perform a dry run without making any changes (default: %(default)s). Example: --dry_run=true",
)
parser.add_argument(
"--model_names",
nargs="+",
default=[
"UVR_MDXNET_KARA_2.onnx",
"2_HP-UVR.pth",
"model_bs_roformer_ep_317_sdr_12.9755.yaml",
"MDX23C-8KFFT-InstVoc_HQ_2.ckpt",
],
help="Optional: list of model names to be used for separation (default: %(default)s). Example: --model_names UVR_MDXNET_KARA_2.onnx UVR-MDX-NET-Inst_HQ_4.onnx",
)
default_model_dir_unix = "/tmp/audio-separator-models/"
if os.name == "posix" and os.path.exists(default_model_dir_unix):
default_model_dir = default_model_dir_unix
else:
# Use tempfile to get the platform-independent temp directory
default_model_dir = os.path.join(tempfile.gettempdir(), "audio-separator-models")
parser.add_argument(
"--model_file_dir",
default=default_model_dir,
help="Optional: model files directory (default: %(default)s). Example: --model_file_dir=/app/models",
)
parser.add_argument(
"--output_dir",
default=".",
help="Optional: directory to write output files (default: <current dir>). Example: --output_dir=/app/karaoke",
)
parser.add_argument(
"--lossless_output_format",
default="FLAC",
help="Optional: lossless output format for separated audio (default: FLAC). Example: --lossless_output_format=WAV",
)
parser.add_argument(
"--lossy_output_format",
default="MP3",
help="Optional: lossy output format for separated audio (default: MP3). Example: --lossy_output_format=OGG",
)
parser.add_argument(
"--use_cuda",
action="store_true",
help="Optional: use Nvidia GPU with CUDA for separation (default: %(default)s). Example: --use_cuda=true",
)
parser.add_argument(
"--use_coreml",
action="store_true",
help="Optional: use Apple Silicon GPU with CoreML for separation (default: %(default)s). Example: --use_coreml=true",
)
parser.add_argument(
"--denoise",
type=lambda x: (str(x).lower() == "true"),
default=True,
help="Optional: enable or disable denoising during separation (default: %(default)s). Example: --denoise=False",
)
parser.add_argument(
"--normalize",
type=lambda x: (str(x).lower() == "true"),
default=True,
help="Optional: enable or disable normalization during separation (default: %(default)s). Example: --normalize=False",
)
parser.add_argument(
"--no_track_subfolders",
action="store_false",
help="Optional: do NOT create a named subfolder for each track. Example: --no_track_subfolders",
)
parser.add_argument(
"--intro_background_color",
default="#000000",
help="Optional: Background color for intro video (default: black). Example: --intro_background_color=#123456",
)
parser.add_argument(
"--intro_background_image",
help="Optional: Path to background image for intro video. Overrides background color if provided. Example: --intro_background_image=path/to/image.jpg",
)
parser.add_argument(
"--intro_font",
default="Montserrat-Bold.ttf",
help="Optional: Font file for intro video (default: Montserrat-Bold.ttf). Example: --intro_font=AvenirNext-Bold.ttf",
)
parser.add_argument(
"--intro_artist_color",
default="#ffdf6b",
help="Optional: Font color for intro video artist text (default: #ffdf6b). Example: --intro_artist_color=#123456",
)
parser.add_argument(
"--intro_title_color",
default="#ffffff",
help="Optional: Font color for intro video title text (default: #ffffff). Example: --intro_title_color=#123456",
)
parser.add_argument(
"--existing_instrumental",
help="Optional: Path to an existing instrumental audio file. If provided, audio separation will be skipped.",
)
parser.add_argument(
"--existing_title_image",
help="Optional: Path to an existing title image file. If provided, title image generation will be skipped.",
)
parser.add_argument(
"--end_background_color",
default="#000000",
help="Optional: Background color for end screen video (default: black). Example: --end_background_color=#123456",
)
parser.add_argument(
"--end_background_image",
help="Optional: Path to background image for end screen video. Overrides background color if provided. Example: --end_background_image=path/to/image.jpg",
)
parser.add_argument(
"--end_extra_text",
default="THANK YOU FOR SINGING!",
help="Optional: Extra text to display on the end screen video. Example: --end_extra_text='THANK YOU FOR WATCHING!'",
)
parser.add_argument(
"--end_font",
default="Montserrat-Bold.ttf",
help="Optional: Font file for end screen video (default: Montserrat-Bold.ttf). Example: --end_font=AvenirNext-Bold.ttf",
)
parser.add_argument(
"--end_extra_text_color",
default="#ff7acc",
help="Optional: Font color for end screen video text (default: #ffffff). Example: --end_extra_text_color=#123456",
)
parser.add_argument(
"--end_artist_color",
default="#ffdf6b",
help="Optional: Font color for end screen video artist text (default: #ffdf6b). Example: --end_artist_color=#123456",
)
parser.add_argument(
"--end_title_color",
default="#ffffff",
help="Optional: Font color for end screen video title text (default: #ffffff). Example: --end_title_color=#123456",
)
parser.add_argument(
"--existing_end_image",
help="Optional: Path to an existing end screen image file. If provided, end screen image generation will be skipped.",
)
parser.add_argument(
"--title_video_duration",
type=int,
default=5,
help="Optional: duration of the title video in seconds (default: 5). Example: --title_video_duration=10",
)
parser.add_argument(
"--end_video_duration",
type=int,
default=5,
help="Optional: duration of the end video in seconds (default: 5). Example: --end_video_duration=10",
)
parser.add_argument(
"--title_initial_font_size",
type=int,
default=500,
help="Optional: Initial font size for title video (default: 500). Example: --title_initial_font_size=600",
)
parser.add_argument(
"--title_top_padding",
type=int,
default=950,
help="Optional: Top padding for title video (default: 950). Example: --title_top_padding=1000",
)
parser.add_argument(
"--title_title_padding",
type=int,
default=400,
help="Optional: Title padding for title video (default: 400). Example: --title_title_padding=450",
)
parser.add_argument(
"--title_artist_padding",
type=int,
default=700,
help="Optional: Artist padding for title video (default: 700). Example: --title_artist_padding=750",
)
parser.add_argument(
"--title_fixed_gap",
type=int,
default=150,
help="Optional: Fixed gap for title video (default: 150). Example: --title_fixed_gap=200",
)
parser.add_argument(
"--end_initial_font_size",
type=int,
default=500,
help="Optional: Initial font size for end video (default: 500). Example: --end_initial_font_size=600",
)
parser.add_argument(
"--end_top_padding",
type=int,
default=950,
help="Optional: Top padding for end video (default: 950). Example: --end_top_padding=1000",
)
parser.add_argument(
"--end_title_padding",
type=int,
default=400,
help="Optional: Title padding for end video (default: 400). Example: --end_title_padding=450",
)
parser.add_argument(
"--end_artist_padding",
type=int,
default=700,
help="Optional: Artist padding for end video (default: 700). Example: --end_artist_padding=750",
)
parser.add_argument(
"--end_extra_text_padding",
type=int,
default=300,
help="Optional: Extra text padding for end video (default: 600). Example: --end_extra_text_padding=650",
)
parser.add_argument(
"--end_fixed_gap",
type=int,
default=150,
help="Optional: Fixed gap for end video (default: 150). Example: --end_fixed_gap=200",
)
parser.add_argument(
"--lyrics_artist",
help="Optional: Override the artist name used for lyrics search. Example: --lyrics_artist='The Beatles'",
)
parser.add_argument(
"--lyrics_title",
help="Optional: Override the song title used for lyrics search. Example: --lyrics_title='Hey Jude'",
)
parser.add_argument(
"--skip_lyrics",
action="store_true",
help="Optional: Skip fetching and processing lyrics. Example: --skip_lyrics",
)
args = parser.parse_args()
input_media, artist, title, filename_pattern = None, None, None, None
if not args.args:
parser.print_help()
exit(1)
# Allow 3 forms of positional arguments:
# 1. URL or Media File only (may be single track URL, playlist URL, or local file)
# 2. Artist and Title only
# 3. URL, Artist, and Title
if args.args and (is_url(args.args[0]) or is_file(args.args[0])):
input_media = args.args[0]
if len(args.args) > 2:
artist = args.args[1]
title = args.args[2]
elif len(args.args) > 1:
artist = args.args[1]
else:
logger.warn("Input media provided without Artist and Title, both will be guessed from title")
elif os.path.isdir(args.args[0]):
if not args.filename_pattern:
logger.error("Filename pattern is required when processing a folder.")
exit(1)
if len(args.args) <= 1:
logger.error("Second parameter provided must be Artist name; Artist is required when processing a folder.")
exit(1)
input_media = args.args[0]
artist = args.args[1]
filename_pattern = args.filename_pattern
elif len(args.args) > 1:
artist = args.args[0]
title = args.args[1]
logger.warn(f"No input media provided, the top YouTube search result for {artist} - {title} will be used.")
else:
parser.print_help()
exit(1)
log_level = getattr(logging, args.log_level.upper())
logger.setLevel(log_level)
if args.existing_instrumental:
args.model_names = ["Custom"]
logger.info(f"KaraokePrep beginning with input_media: {input_media} artist: {artist} and title: {title}")
kprep = KaraokePrep(
artist=artist,
title=title,
input_media=input_media,
filename_pattern=filename_pattern,
dry_run=args.dry_run,
log_formatter=log_formatter,
log_level=log_level,
model_names=args.model_names,
model_file_dir=args.model_file_dir,
output_dir=args.output_dir,
lossless_output_format=args.lossless_output_format,
lossy_output_format=args.lossy_output_format,
use_cuda=args.use_cuda,
use_coreml=args.use_coreml,
normalization_enabled=args.normalize,
denoise_enabled=args.denoise,
create_track_subfolders=args.no_track_subfolders,
existing_instrumental=args.existing_instrumental,
existing_title_image=args.existing_title_image,
existing_end_image=args.existing_end_image,
title_video_duration=args.title_video_duration,
intro_background_color=args.intro_background_color,
intro_background_image=args.intro_background_image,
intro_font=args.intro_font,
intro_artist_color=args.intro_artist_color,
intro_title_color=args.intro_title_color,
title_initial_font_size=args.title_initial_font_size,
title_top_padding=args.title_top_padding,
title_title_padding=args.title_title_padding,
title_artist_padding=args.title_artist_padding,
title_fixed_gap=args.title_fixed_gap,
end_video_duration=args.end_video_duration,
end_extra_text=args.end_extra_text,
end_background_color=args.end_background_color,
end_background_image=args.end_background_image,
end_font=args.end_font,
end_extra_text_color=args.end_extra_text_color,
end_artist_color=args.end_artist_color,
end_title_color=args.end_title_color,
end_initial_font_size=args.end_initial_font_size,
end_top_padding=args.end_top_padding,
end_title_padding=args.end_title_padding,
end_artist_padding=args.end_artist_padding,
end_extra_text_padding=args.end_extra_text_padding,
end_fixed_gap=args.end_fixed_gap,
lyrics_artist=args.lyrics_artist,
lyrics_title=args.lyrics_title,
skip_lyrics=args.skip_lyrics,
)
tracks = kprep.process()
logger.info(f"Karaoke Prep complete! Output files:")
for track in tracks:
logger.info(f"")
logger.info(f"Track: {track['artist']} - {track['title']}")
logger.info(f" Input Media: {track['input_media']}")
logger.info(f" Input WAV Audio: {track['input_audio_wav']}")
logger.info(f" Input Still Image: {track['input_still_image']}")
logger.info(f" Lyrics: {track['lyrics']}")
logger.info(f" Processed Lyrics: {track['processed_lyrics']}")
for model_name in args.model_names:
logger.info(f" Instrumental: {track['separated_audio'][model_name]['instrumental']}")
logger.info(f" Instrumental (Lossy): {track['separated_audio'][model_name]['instrumental_lossy']}")
logger.info(f" Vocals: {track['separated_audio'][model_name]['vocals']}")
logger.info(f" Vocals (Lossy): {track['separated_audio'][model_name]['vocals_lossy']}")
if __name__ == "__main__":
main()
+26
View File
@@ -0,0 +1,26 @@
import requests
def download_file(url, filename):
# Send a GET request to the URL
response = requests.get(url, stream=True)
# Check if the request was successful
if response.status_code == 200:
# Open a file with the specified filename in binary write mode
with open(filename, "wb") as file:
# Write the content of the response to the file
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)
print("Download completed.")
else:
print(f"Failed to download. Status code: {response.status_code}")
# URL of the file to be downloaded
url = "https://github.com/karaokenerds/karaoke-prep/releases/download/v0.8.3/ffmpeg.exe"
# Filename to save the downloaded file
filename = "platform/ffmpeg.exe"
# Call the function to download the file
download_file(url, filename)
Generated
+2657 -694
View File
File diff suppressed because it is too large. Load diff
+23 -11
View File
@@ -1,29 +1,41 @@
[tool.poetry]
name = "karaoke-prep"
version = "0.3.0"
description = "Prepare for karaoke video creation, by downloading audio and lyrics for a specified song or youtube playlist and separatung audio stems."
version = "0.22.4"
description = "Prepare for karaoke video creation, by downloading audio and lyrics for a specified song or playlist from youtube and separating audio stems. After syncing, finalise the video with a title screen!"
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
license = "MIT"
readme = "README.md"
packages = [{include = "karaoke_prep"}]
packages = [{ include = "karaoke_prep" }]
homepage = "https://github.com/karaokenerds/karaoke-prep"
repository = "https://github.com/karaokenerds/karaoke-prep"
documentation = "https://github.com/karaokenerds/karaoke-prep/blob/main/README.md"
[tool.poetry.dependencies]
python = ">=3.9"
requests = "^2"
beautifulsoup4 = "^4"
python = ">=3.10,<3.13"
requests = ">=2"
beautifulsoup4 = ">=4"
yt-dlp = "*"
lyricsgenius = "^3"
fetch-lyrics-from-genius = "^0.1"
audio-separator = "^0.8"
lyricsgenius = ">=3"
fetch-lyrics-from-genius = ">=0.1"
pillow = ">=10.1"
pyinstaller = ">=6.3"
google-api-python-client = "*"
google-auth = "*"
google-auth-oauthlib = "*"
google-auth-httplib2 = "*"
pyperclip = ">=1.8"
thefuzz = ">=0.22"
numpy = "^1"
audio-separator = { version = ">=0.17.5", extras = ["cpu"] }
lyrics-converter = ">=0.2.1"
[tool.poetry.group.dev.dependencies]
black = "^23"
black = ">=23"
poetry = "*"
[tool.poetry.scripts]
karaoke-prep = 'karaoke_prep.utils.cli:main'
karaoke-prep = 'karaoke_prep.utils.prep_cli:main'
karaoke-finalise = 'karaoke_prep.utils.finalise_cli:main'
[tool.black]
line-length = 140