Saravanan666/pypi-org huggingface dataset:
Package: playground-tutorials
playgroundthe fun cloud wrapper 🍬️ to deploy tutorial containers! 📦️Containers are a powerful unit of operation for moving around reproducible environments.
This power combined with Jupyter notebook served from a version-controlled GitHub
repository means we can easily deploy a cloud-based tutorial to test our your software!
This is the goal of playground - grab your repository, and easily deploy a tutorial
container to different clouds.⭐️View Documentation⭐️😁️ Contributors 😁️We use theall-contributorstool to generate a contributors graphic below.Vanessasaurus💻LicenseHPCIC DevTools is distributed under the terms of the MIT license.
All new contributions must be made under this license.SeeLICENSE,COPYRIGHT, andNOTICEfor details.SPDX-License-Identifier: (MIT)LLNL-CODE- 842614
Package: playingcards1598
playingcards.pyAn Advanced and Customisable Python Playing Card Module that makes creating playing card games and running simulations general, simple and easy!FeaturesEasy to use python interfaceEasy to Understand, general, Class ObjectsCard ComparisonsInstallationRequires Python 3.9 and aboveYou can install the module fromPyPIor by using pip.# Linux/MacOSpip3installplayingcards1598# Windowspipinstallplayingcards1598How To UseQuick StartTo quickly get started you can initiate a deckfromplayingcardsimportDeckdeck=Deck()Shuffle the deck usingshuffle()deck.shuffle()Draw cards from this deck by usingdraw_top_n()drawn_cards=deck.draw_top_n(5)# Draws 5 cardsprint(len(deck))# Prints 47print(len(drawn_cards))# Prints 5Return the deck to original form usingreset()deck.reset()print(len(deck))# Prints 52CustomizationCustom CardsThis module presents three class objects for creating custom cards:RankandSuitfor the building blocks, andCardfor the construction.You can construct custom classes as followsrank=Rank('J',num_value=11)# Creates a Jack ranksuit=Suit('s',pretty='♠')# Creates a spade suitcard=Card(rank,suit)# Creates the Jack of HeartsA full deck of custom cards can be created by passing it during theDeckinitiation.custom_deck=Deck([card])# A custom deck consisting of only the card the specified aboveAlternatively, a custom deck can be instantiated using thefrom_ranks_suits()class methodbig_red_deck=Deck.from_ranks_suits([Rank(value,num)forrank,numin[('A',14),('K',13),('Q',12),('J',11),('T',10)]],[Suit(suit,pretty)forsuit,prettyin[('h','♥'),('d','♦')]])Card CollectionsDeckis a subclass ofCardCollectionOtherCardCollection's are possible. For example, to create a Texas Holdem Poker hand (two cards), you could do the followingclassTexasHand(CardCollection):def__init__(self,cards:list[Card]):super().__init__(cards,maximum=2)Class ArgumentsRankArgumentsvaluestr- A string representation of the value of the ranknum_valueint(optional) - A numerical value of the card, used in games that consist of orderingSuitArgumentsvaluestr-  The desired value of the suit - s, h, c, d for a standard deckprettystr(optional) - A prettier representation of the suit - ♠, ♥, ♣, ♦ for a standard deckCardArgumentsrankRank-  The rank of the cardsuitSuit- The suit of the cardDeckandCardCollectionArgumentscardslist-  A list of the cards in the collectionmaximumint(optional) -  The maximum number of cards in the collection
Package: playlist2podcast
Playlist2Podcast is a command line tool that takes a Youtube playlist, downloads the audio portion of the videos on that
list, and creates a podcast feed from this.Playlist2Podcast:downloads and converts the videos in one or more playlists to opus audio only files,downloads thumbnails and converts them to JPEG format, andcreates a podcast feed with the downloaded videos and thumbnails.Install and run nativelyEasiest way to use Playlist2Podcast is to usepipxto install it from PyPi. Then you can simply useplaylist2podcaston the command line run it.Playlist2Podcast will ask for all necessary parameters when run for the first time and store them inconfig.jsonfile in the current directory.Docker ComposeThere is a docker-image published for playlist2podcast.You can use the below example docker compose to run playlist2podcast with a caddy frontend to publish the resulting podcast feed:---
version: "3.5"
services:

##########################################################################
# C A D D Y - R E V E R S E   P R O X Y
##########################################################################
   caddy:
    image: lucaslorentz/caddy-docker-proxy:latest
    container_name: caddy
    ports:
      - 80:80
      - 443:443
    environment:
      - CADDY_INGRESS_NETWORKS=caddy
    networks:
      - caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - <path to folder where caddy can store ssl certs>:/data
      - <path to folder where caddy can write log files>:/logs
      - podcast-data:/publish:ro    # actual podcast feed data
    restart: unless-stopped

##########################################################################
# P L A Y L I S T 2 P O D C A S T
##########################################################################
  playlist2podcast:
    image: codeberg.org/pyyttools/playlist2podcast:latest
    container_name: playlist2podcast
    tty: true
    stdin_open: true
    environment:
      - DEBUG_LOG_FILE=debug.log    # Optional: If set will create a debug log file
      - UPDATE_INTERVAL=4h          # How long to wait between updates.
   volumes:
      - <path to directory containing config.json file>:/config
      - podcast-data:/publish       # podcast feed data will be saved here
    restart: unless-stopped
    networks:
      - caddy
    labels:
      caddy: <full hostname podcast>    # DNS for this needs to resolve before starting
      caddy.root: "* /publish"
      caddy.file_server:

##########################################################################
# N E T W O R K S
##########################################################################
networks:
  caddy:


##########################################################################
# V O L U M E S
##########################################################################
volumes:
  podcast-data:ChangelogSee theChangelogfor any changes introduced with each version.LicensePlaylist2Podcast is licences under theGNU Affero General Public License v3.0
Package: playlist-along
🧐 AboutHave you ever wanted to take your favorite offline playlist along?
—I have.This script makes it easier to do that.
It converts your playlist with absolute paths
to playlist with relative paths,
and copies audio files to one folder with converted playlist.
The only thing that remains to be done is to move this folder
to your Android smartphone and open the playlist
(or let a player to discover media for you).Although, there is only one conversion way
“DesktopAIMP->VLC for Android” for now,
but who knows what the future holds for us?🚀 FeaturesConversion fromAIMP(desktop).m3u / .m3u8 playlists
into playlists suitable for playback inVLC for Android(with relative paths,
replaced square brackets[]andhash#in songs filenames)Copying songs from .m3u / .m3u8 playlists into destination folder
(after playlist conversion and only.mp3and.flaclocal files, for now)Displaying only tracks from playlist(without M3U tag lines / comments)Displaying a full content of playlist fileCreating a playlist from tracks of specified folder
(with relative or absolute paths)Injecting (appending) one playlist into another
(top or bottom)Creating an empty playlist fileTBD:Copying and conversion paths to relative, without replacing characters
(“make relative playlist”)🛠️ RequirementsPython 3.9 and higherInstalling Python is no different than installing other apps for your OS.
Go to downloads page onpython.org.
Download the latest version for your OS or any version higher than3.9.2.
Then run Python installer and follow its steps.💻 InstallationYou can installPlaylist AlongviapipfromPyPI:$pipinstallplaylist-alongI do recommend you to usepipxfor any CLI Python package.
It let you install and run Python applications in isolated environments.$python-mpipinstall--userpipx$pipxinstallplaylist-along$playlist-along--version🕹 UsagePlease see theUsage Examplesor theCommand-line Referencefor details.✊ ContributingIf you want to suggest a new feature or to ask questions about this project,
you can open anew discussion.Want to implement or fix something? - contributions are very welcome.
To learn more, see theContributor Guide.📝 LicenseDistributed under the terms of theMIT license,Playlist Alongis free and open source software.🐞 IssuesIf you encounter any problems,
please seeproject discussionsfirst
orfile an issuealong with a detailed description.🙏🏻 CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.Script uses the following packages / libraries under the hood:Click, of course (BSD-3-Clause License)charset_normalizer, for auto encoding detecting of playlist files (MIT License)single-source, for getting project version from anywhere (MIT License)natsort, to get tracks order as you see in File Explorer (MIT License)mutagen, to handle audio metadata (GPL-2.0 License)and other amazing Python packages for development and testing.See a full list of dev dependencies inpyproject.tomlhere.
Package: playlist-creator
playlist-creatorOverviewOur API is was created as part of the course "Introduction to Optimization" with Ariel Rosenfeld at Bar-Ilan University.You should run the following with the flags below: python  {PATH TO SITE-PACKAGES}/playlist-creator/run.pyYou are able to run our API by providing the following as args:-h, --help            show this help message and exit-s SONGS_PATH, --songs_path SONGS_PATH Path to songs in a directory-r ARTISTS_LIST, --artists_list ARTISTS_LIST Path to artists file list-l ALBUMS_LIST, --albums_list ALBUMS_LIST Path to albums file list-g GENRES_LIST, --genres_list GENRES_LIST Path to genres file list-d DOWN, --down DOWN  Minimum time for playlist-u UP, --up UP        Maximum time for playlist-m MINIMUM_SONGS, --minimum_songs MINIMUM_SONGS Minimum songs required from input-c COUNTRY, --country COUNTRY  Country name to base playlist onSONGS_PATHShould be a path to songs in the following format: "ARTIST NAME - SONG NAME"ARTISTS_LISTtxt file like follows:Elton JohnDavid BowieQueenPink FloydRod StewartEric ClaptonPrinceJohn LennonBob DylanLed ZeppelinALBUMS_LISTtxt file like follows:After Hours,The WeekndEvolve,Imagine DragonsGENRES_LISTjson file like follows:{"pop": 2,"rock": 1,"metal": 2}The numbers are the number of songs you want from each genre.
Package: playlistdb
When following multiple series, keeping track of which episodes were
watched can become a tedious task. This project aims to offload this
task to a database.InstallationViaPyPI:pip install playlistdbFrom source:git clone https://github.com/jfjlaros/playlist.git
cd playlist
pip install .UsageThe programplaylistis used to add and remove files and to set
configuration options per directory, i.e., for every directory a new
entry is added to the database.Theaddcommand can be used to add files, any configuration specific
for these files can be added with theconfigsubcommand.playlist add *.mkv
playlist config '-sid 1'This adds all files with extension.mkvto the database. The
configuration-sid1, a command line option formplayer, is added for the current
directory.An overview of the database contents for the current directory can be
seen with theshowsubcommand.$ playlist show
Playlist:
* 00 - Credits.mkv
  00 - Intro.mkv
  01 - Episode 1.mkv
  02 - Episode 2.mkv
  03 - Episode 3.mkv

Config: -sid 1The*marks the current file, this file is next in line to be
played.Entries can be removed by using theremovesubcommand:playlist remove '00 - Credits.mkv'The current file can be retrieved with thecurrentsubcommand and
set to a specific file with thesetsubcommand. The configuration
can be retrieved withshow_config:$ playlist current
00 - Intro.mkv
$ playlist set '01 - Episode 1.mkv'
$ playlist current
01 - Episode 1.mkv
$ playlist show_config
-sid 1Finally, thenextsubcommand will show the current file and will set
the current file to the next entry.$ playlist next
01 - Episode 1.mkv
$ playlist next
02 - Episode 2.mkvThe output of these commands can be passed to any program. It may be
convenient to make an alias for particular application, for example:alias playnext='mplayer $(playlist show_config) "$(playlist next)"'DatabaseThe database is stored in$HOME/.cache/playlist/db.yml. Since it is
stored inYAMLformat, it can
easily be modified using any text editor.The database entry for our example looks as follows:/media/Show:config:-sid 1files:-00 - Intro.mkv-01 - Episode 1.mkv-02 - Episode 2.mkv-03 - Episode 3.mkvoffset:3The top-level key/media/Showis also the name of the directory that
contains the files to be played, the configuration for this directory is
stored in theconfigvariable, the file list is stored infiles.
Theoffsetvariable contains the index of the current file. If this
index is larger or equal to the length of the list, then the playlist is
finished.
Package: playlist-dl
# playlist-dlYoutube playlist downloader. Based on the majestic [youtube-dl](http://youtube-dl.org/)### Features* Resumable downloading* Video resolution, video format, audio bitrate, audio format can be configured* Video Output format (via conversion) can also be specified* Other [youtube-dl options](https://github.com/rg3/youtube-dl/blob/master/README.md) are also supported### InstallationPython 3 only.Get it from pip```pip install playlist-dl```or download the zip and execute the following```python setup.py install```### Tutorial* To start a new playlist download, create a new folder and open terminal (cmd) in it.* Then run `playlist-dl`* Give the playlist link and playlist-dl (actually youtube-dl) will start scanning the playlist.* After that it will create a config.json file in that folder. Edit that if needed.* Videos will start downloading one by one.* You can close the terminal any time. Reopening the terminal in that folder and running `playlist-dl` will resume the downloads.### Config.json* `start` - The item in playlist from where the download will be started.* `end` - The item in playlist till where downloading will be done.* `output_format` - The format to convert the downloaded video to. (eg > mkv,mp4,flv,webm)* `download.resolution` - The height of the video to download. If set to 0, then bestvideo will be downloaded.* `download.video_format` - The format of the video stream to download. Note that this is different from `output_format` (eg > flv,webm,mp4).* `download.bitrate` - The bitrate of the audio to download. If set to 0, then bestaudio will be downloaded.* `download.audio_format` - The format of the audio stream to download. (eg > webm,m4a)* `download.more_options` - More download options. See [youtube-dl README](https://github.com/rg3/youtube-dl/blob/master/README.md) for the complete list.**NOTE** - If the program finds no match with your `download.` audio/video settings, then it will automatically settle with the most preferable audio/video options. So if you leave `video_format` blank and just specify resolution, it will look in all formats for that resolution. Therefore it is recommended to specify `output_format` for consistency.##### Example of a config.json```json{"start": 37,"output_format": "mkv","url": "https://www.youtube.com/watch?v=6m44ul3fzH4&list=PLfP-5ohlBRxXUWCJRrR0i4Eft02OB_XkE&index=1","download": {"video_format": "webm","more_options": "-o \"%(title)s.%(ext)s\" --external-downloader aria2c --external-downloader-args \"-x 16 -s 16 -k 5M\"","audio_format": "webm","bitrate": 128,"resolution": 480},"end": 49}```
Package: playlistfromsong
================playlistfromsong================.. image:: https://img.shields.io/pypi/v/playlistfromsong.svg:target: https://pypi.python.org/pypi/playlistfromsong.. image:: https://img.shields.io/travis/schollz/playlistfromsong.svg:target: https://travis-ci.org/schollz/playlistfromsong.. image:: https://readthedocs.org/projects/playlistfromsong/badge/?version=latest:target: https://playlistfromsong.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/schollz/playlistfromsong/shield.svg:target: https://pyup.io/repos/github/schollz/playlistfromsong/:alt: UpdatesGenerate an offline playlist from a single song.Features---------- Similar song matching using last.fm or Spotify- Automatic downloading of songs- Builtin music server for webhooksQuickstart------------First install `ffmpeg`_:::sudo apt-get install ffmpeg    (DEBIAN)brew install ffmpeg            (MAC).. _ffmpeg: https://ffmpeg.org/download.htmlInstall with ``pip``::pip install playlistfromsongDownload a playlist of 5 songs similar to Miles Davis' *Blue In Green*::playlistfromsong --song 'Miles Davis Blue In Green' --num 5 -f /path/to/save.. image:: http://i.imgur.com/ldVHZcc.gif:target: http://i.imgur.com/ldVHZcc.gif:alt: Demo1Use a bearer token ``--bearer`` to use Spotify to find suggestions::playlistfromsong --song 'Miles Davis Blue In Green' --num 5 -f /path/to/save -b 'BEARER'.. image:: http://i.imgur.com/uzEEEFh.gif:target: http://i.imgur.com/uzEEEFh.gif:alt: Demo1For more complete usage, see the docs.=======History=======2.0.0 (2017-07-04)------------------* New ``--server`` option for starting a music server1.0.0 (2017-06-25)------------------* Move to cookiecutter for improved packaging and tests0.21.0 (2017-03-29)------------------* First stable release
Package: playlistjockey
Unlock innovative ways to experience playlists.Currently supporting:With the following mixing algorithms::control_knobs:"dj": songs with compatible keys, speeds, and energy levels are placed next to each other:tada:"party": build the energy levels to a peak at the halfway point, then gradually calm things down:guitar:"setlist": kick off with some of the most popular songs, saving lower-energy songs for the halfway point, then build back up to the finale:musical_note:"genre": group and smoothly transition through the various genres in your playlistDescriptionSince the inception of music players, we've always had 3 methods of playback: shuffle, repeat, and repeat once. Frankly, we can do better.playlistjockeyunlocks a variety of new ways you can sort and experience your playlists. Select a playlist from your streaming platform of choice, choose a mixing algorithm, and upon reviewing
your playlist's new track order, immediately update and listen to your enhanced playlist. DJs can utilize this package to instantly prepare setlists in Tidal.Happy mixing!SetupTo utilize this module, you will first need to create a Spotify developer account:Visithttps://developer.spotify.com/and create a free account (Spotify Premium is not required)Once in your dashboard, click on Create App, and provide a name and descriptionOn the overview page for your app, go to settingsSave your client ID and client secret, and create a redirect URIInstall the package:pip install playlistjockeyUsageImport the package:importplaylistjockeyaspjInitialize the Spotify object, and if you use another streaming service, initialize it as well:sp=pj.Spotify('<Client ID>','<Client Secret>','<Redirect URI>')td=pj.Tidal(sp)The following will need to be done when first initializing these streaming platform objects:Spotify: Return the callback link automatically opened by your browser into the input prompted by your IDETidal: Your browser will automatically open a window prompting you to log into your Tidal account[!NOTE]
If you experience any connection-related errors, try reinitializing your streaming platform objects.Once the connections to your streaming platforms are established, you can pull in one of your playlists:playlist_id='https://open.spotify.com/playlist/7kIvZ3p234OPRRgibzNoQS?si=9d743a7caec143b9'playlist_df=sp.get_playlist_features(playist_id)Next, utilize aplaylistjockeysorting algorithm to mix your playlist:sorted_df=pj.sort_playlist(playlist_df,"dj")Preview the new track order, and rerun as many times as you'd like. Once you're ready, push it back to update your playlist:sp.update_playlist(playlist_id,sorted_df)PlaybackWhen experiencing a playlist that has been sorted byplaylistjockey, enable to following suggested playback settings:Turn off shuffleto ensure songs are played in the order in which they were sorted inMaximize theCrossfadevalue for dance and pop playlists, or set to around 4 seconds for rock or other genresIf you're using Spotify's mobile app, enableGapless Playbackto minimize quiet moments while a playlist is playing
Package: playlist-kreator
Create playlists easily from a list of artists, using their top songs.Currently supported: Spotify, Google Music.RequirementsThis project requires python 3+Installationpip install playlist-kreatorExampleplaylist-kreator artists big_four_thrash.txt "Big Four of Thrash" --max-songs-per-artist=10This will create a playlist called “Big Four of Thrash”.
The playlist will be composed of 10 top songs for each artist listed in the filebig_four_thrash.txt.
Content ofbig_four_thrash.txt:Anthrax
Megadeth
Metallica
SlayerYou can find more examples in theexample_artistsfolderKnown limitationsGoogle Music needs an application password, you can set it here:https://myaccount.google.com/apppasswordsGoogle Music has a limit of 1000 songs per playlistTHe search can be wrong sometimes, a better solution is in progressContributingPull requests are welcome!Running locallypip install -r requirements.txtInspirationKreator is amazing. 🤘
Package: playlist-length
Playlist LengthA command-line tool to calculate the length of all the audios/videos in a directoryPrerequisitesffmpegpackage is required for this package to work, so you need to get it installed on your systemTo install ffmpeg on ubuntusudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install frei0r-pluginsFor other OS read instructionhereInstallinghit up your terminal and type following command$ pip install --user playlist-lengthor$ pip install --user -e git+https://github.com/karansthr/playlist-length#egg=playlist-lengthif your ~/.local/bin/ is not in PATH then run$ export PATH=$PATH:${HOME}/.local/bin/you may add above line of code in ~/.zshrc or ~/.bashrc etc. to repeat above step every time a terminal is opened.To get length of all the videos in a directory, Give the path to directory as arguement$ playlistlen path_to_directoryor use following command for current directory$ playlistlenBy default, it will look for videos in given directory and it's sub-directories recursively, if you want it to look in the given directory only, then use--no-subdirflag, for example:$ playlistlen path_to_directory --no-subdirBy default the media-type it will look for isvideobut you can specifyaudioorboth$ playlistlen path_to_directory --media-type audio
$ playlistlen path_to_directory --media-type bothfor help use -h or --help, for example$ playlistlen --helpAuthorsKaran Suthar(https://github.com/karansthr)Mohit Solanki(https://github.com/mohi7solanki)LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: playlistparser
PlaylistparserTool for parsing DJ software playlists. Currently supports Engine DJ, Rekordbox, Serato, Traktor, and VirtualDJ. Part ofSlipmat.iotools.Live demo of this parser in action:https://playlists.slipmat.ioContributingContributions are welcome! Please follow thecode of conductwhen interacting with others.ElsewhereFollow @uninenon TwitterRead my continuously updating learnings from Python / TypeScript and other Web development topics from myToday I Learned siteLicenceCopyright © 2022, Ville Säävuori. Released under the GNU Affero General Public License v3.0. Commercial licenses are also available.