Saravanan666/pypi-org huggingface dataset:
Package: yt-lib
yt_lib: Young YouTube libraryyt_lib is the unofficial library for YouTube, which supports operations with likes, subscriptions, comments.>>> from yt_lib import states
>>> from yt_lib import YoutubeClient
>>> client = YoutubeClient(cookies=cookies)
>>> client.init_session()
>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)
<ActResult.SUCCESS: 1>Feature SupportThe library begins to take its first steps, so the list is small.Rates (like, dislikes and take back)Subscriptions (and unsubscribes)Writing commentsInstallationTo install yt_lib, simply run this simple command in your terminal of choice:$ pip install yt_libyt_lib is actively developed on GitHub, where the code isalways available.You can either clone the public repository:$ git clone https://github.com/hairygeek/yt_lib.gitQuickstartFirst make sure thar yt_lib is installed.Let's get started with some simple examples.SubscribesBegin by importing theyt_libandyt_lib.statesmodules:>>> import yt_lib
>>> from yt_lib import statesNow let's create YouTubeClient, this requires youtube cookies. Cookies required to work: apisid,
consent, hsid, login_info, pref, sapisid, sid, sidcc, ssid, visitor_info1_live. Imagine that we already have them:>>> client = YoutubeClient(cookies=cookies)Now let's initialize the session. Nothing will work without it:>>> client.init_session()Now we can subscribe to the channel. for this we need a type of subscription (unsubscribe / subscription), we will take it from the modulestates:>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)
    <ActResult.SUCCESS: 1>We got an response. In our case, this is SUCCESS, which means that the subscription was successful.RatesIn the same way we can like:>>> client.rate('V6Y-ahQFQDA', states.LikeAction.LIKE)
    <ActResult.SUCCESS: 1>or dislike:>>> client.rate('V6Y-ahQFQDA', states.LikeAction.DISLIKE)
    <ActResult.SUCCESS: 1>or take action back:>>> client.rate('V6Y-ahQFQDA', states.LikeAction.TAKE_BACK)
    <ActResult.SUCCESS: 1>That's not all, but l'm too lazy to describe the rest. See the description of methods.
Package: ytlisten
ytlistenytlistenis a command-line based YouTube audio player that allows you to search and play YouTube videos as audio. This is a Python application that uses the YouTube API to search for and retrieve videos and uses the VLC media player to play the audio.InstallationInstall the VLC app# Linux
sudo apt-get install vlc # Linux

# Mac
brew install vlcBefore installing ytlisten, you must first install the VLC media player. You can download it from the official VLC website athttps://www.videolan.org/vlc/#download. Make sure to install the version that corresponds to your operating system.Get a YouTube API Key from Google:Go to theGoogle Developers Console.Create a new project.In the left sidebar, click on "APIs & Services" and then "Library".Search for "YouTube Data API v3" and click on it.Click the "Enable" button.In the left sidebar, click on "Credentials".Click the "Create credentials" button and select "API key".Copy the generated API key.In your terminal, create a new environment variable calledYT_API_KEYand set its value to your API key:export YT_API_KEY="YOUR_API_KEY_HERE"Installylistenusing pippip install ylistenUsageOnce installed, you can use the ytlisten command to search for and play audio tracks from Youtube. Here's an example:ytlisten despacitoThis will search Youtube for the keyword "despacito" and play the audio from the first video in the search results. You can also specify a Youtube video URL directly:ytlisten https://www.youtube.com/watch?v=kJQP7kiw5FkThat's it! You should now be able to run ytlisten and search for and listen to YouTube videos from the command line.LimitationsPlease note thatytlistenis not an official YouTube client and is not affiliated with YouTube in any way. It's a simple command-line tool that uses the YouTube Data API to search for and play YouTube videos as audio files.Also, keep in mind that the YouTube Data API has certain usage limits and quota restrictions. If you exceed these limits, your API key may be temporarily or permanently blocked by Google. Please refer to the official documentation for more information.Contributions / DevelopmentContributions are welcome!python setup.py sdist bdist_wheel
# https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account
twine upload dist/*LicenseMIT License
Package: ytlog
ytlog - log module for humans============================We use logging everyday, bug it's easy to forget how to use buildinlogging module of Python, because the configuration looks complicated.So I copy log.py module from [Tornado(github)](https://github.com/facebook/tornado)pip install ytlogHow to use----------from ytlog import get_loggerlog = get_logger({"name": "app"})log.info("Mission starts.")Then we will see logging in console and log file under directory /data/logs/![screenshot](./screenshot.png)So easy!If you want to change log file path, just add arg "dir"e.g.log = get_logger({"name": "app", "dir": "./"})
Package: ytml
YTML: Write HTML using YAML while templating with YTEYTML allows to define HTML tags in YAML syntax, usually leading to significantly less code.
In combination withYTE, you can perform arbitrary templating.
Unlike other many approaches for templating, YTE/YTML is always valid YAML.Note: Unlike YTE which is mature and fully tested, YTML is a prototype and still mostly undocumented.
Nevertheless, it is stable and usable.Inspired byhttps://stackoverflow.com/questions/4121548/yaml-like-templating-language-for-html.
Package: ytm-ll-dl
ytm-ll-dlPython app to download 'Liked music' playlist from Youtube Music.UsageFor full help, runytm-ll-dl --help.Basic usage:$ytm-ll-dl--output./data/# Where to store downloaded music--limitINT# Limit how much tracks to fetch from the beginning of playlist--skipINT# Skip specified amount of tracks from the end of playlistOn first run, this will ask you to provide auth data from YTM.
Seeytmusicapi documentationfor details.ytm-ll-dlwill download all liked tracks with thumbnails and some meta-info
(author, album, name).You can interruptytm-ll-dl--- download state will be saved and restored on the next run.
Package: ytmurl
YtmUrlInstallationpip install ytmurlUsageytmurl [-h] [-l LOG] [-d FROM TO] query

searches youtube music and prints audio url

positional arguments:
  query                 query string containing title, artist, etc

optional arguments:
  -h, --help            show this help message and exit
  -l LOG, --log-file LOG
                        log file to append to
  -d FROM TO, --duration FROM TO
                        duration range of song in seconds, inclusive
Package: ytmusicapi
ytmusicapi is a Python 3 library to send requests to the YouTube Music API.
It emulates YouTube Music web client requests using the user’s cookie data for authentication.FeaturesBrowsing:search (including all filters) and suggestionsget artist information and releases (songs, videos, albums, singles, related artists)get user information (videos, playlists)get albumsget song metadataget watch playlists (next songs when you press play/radio/shuffle in YouTube Music)get song lyricsExploring music:get moods and genres playlistsget latest charts (globally and per country)Library management:get library contents: playlists, songs, artists, albums and subscriptionsadd/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artistsget and modify play historyPlaylists:create and delete playlistsmodify playlists: edit metadata, add/move/remove tracksget playlist contentsget playlist suggestionsPodcasts:get podcastsget episodesUploads:upload songs and remove them againlist uploaded songs, artists and albumsLocalization:all regions are supported (seelocations FAQ16 languages are supported (seelanguages FAQIf you find something missing or broken,
check theFAQor
feel free to create anissue.RequirementsPython 3.8 or higher -https://www.python.orgSetupSee theDocumentationfor detailed instructionsUsagefromytmusicapiimportYTMusicyt=YTMusic('oauth.json')playlistId=yt.create_playlist('test','test description')search_results=yt.search('Oasis Wonderwall')yt.add_playlist_items(playlistId,[search_results[0]['videoId']])Thetestsare also a great source of usage examples.ContributingPull requests are welcome. There are still some features that are not yet implemented.
Please, refer toCONTRIBUTING.rstfor guidance.
Package: ytool
A simple tool to set values in yaml files preserving format and comments.
This command line tool is based onruamel.yamlInstall:Ytool can be installed simply by running:$pipinstallytoolExample:$ytool-fsome.yaml-ssome.string.keyvalue-dfloat_key9.9-iint.key.path10Help:$usage:ytool[-h]--fileFILE[--set-stringpathvalue][--set-intpathvalue][--set-floatpathvalue][--outputOUTPUT][--edit-file][--verbose]Setvaluesinyamlfilepreservingformatandcomments.optionalarguments:-h,--helpshowthishelpmessageandexit--fileFILE,-fFILENameofthechartfiletochange--set-stringpathvalue,-spathvalueSetstringvalueforpath--set-intpathvalue,-ipathvalueSetintegervalueforpath--set-floatpathvalue,-dpathvalueSetfloatvalueforpath--outputOUTPUT,-oOUTPUTNameofoutputfile--edit-file,-eEditinputfiledirectly--verbose,-vPrintdebuginformationtostdoutWhat is Codacy?Codacyis an Automated Code Review Tool
that monitors your technical debt, helps you improve your code quality,
teaches best practices to your developers, and helps you save time in
Code Reviews.Among Codacy’s features:Identify new Static Analysis issuesCommit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab
(and also direct git repositories)Auto-comments on Commits and Pull RequestsIntegrations with Slack, HipChat, Jira, YouTrackTrack issues in Code Style, Security, Error Proneness, Performance,
Unused Code and other categoriesCodacy also helps keep track of Code Coverage, Code Duplication, and
Code Complexity.Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among
others.Free for Open SourceCodacy is free for Open Source projects.
Package: ytools3
Library for validating `yaml` files against schema and selectively dumping nodes from `yaml` (or `json`) documents in `yaml` or `json` format.This is a port ofytools(https://github.com/yaccob/ytools), which was Python 2 only, to Python 3.DocsTestsPyPIActivityOtherFeaturesOutputyamlasjsonorpythonOutputjsonasyamlorpython(provided that there are no duplicate mapping entry in thejsonsource)Extract particular nodes fromyamlandjsonfiles.Ifyamlis used as output format (default) the output is a validyamldocument.Validateyamlandjsondocuments.Thejson-schemacan be provided inyamlformat as well, which improves readability and writability.Preserve order of mapping-keys inyamlandjsonoutput.Multi-document supportMultiple input files… as well as multipleyamldocuments within a file… and a combination of bothInstallationytools3can be installed from PyPI.To install withpip:$python-mpipinstallytools3
Package: ytopt
What is Ytopt?TODODocumentationYtopt documentation is on :ReadTheDocsDirectory structuresearch/
    directory for search applicationsInstall instructionsgit clone https://github.com/ytopt-team/ytopt.git
cd ytopt/
pip install -e .How do I learn more?Documentation:https://ytopt.readthedocs.ioGitHub repository:https://github.com/ytopt-team/ytoptWho is responsible?The core Ytopt team is at Argonne National Laboratory:TODOHow can I participate?TODOAcknowledgementsTODOCopyright and licenseTBD
Package: ytpa-api-utils
ytpa-api-utilsDescriptionThis package contains utility functions used by the YouTube video predictive analytics (YTPA) system's API engine.
They support functionality for:requests:request_utils.pywebsockets:websocket_utils.pyother:misc_utils.pyThe filewebsocket_utils.pyimplements the send/receive logic for chunking a large pandas DataFrame,
sending the chunks through a websocket connection, and assembling them into a single DataFrame on the other side.
This allows for streaming DataFrames in a dynamic way while minimizing bandwidth per unit time.
It hides the websocket logic from both sides of the transaction, making it possible to set up the websocket
connection once and then deal only with DataFrame generators.InstallationInstall from PyPI withpip install ytpa-api-utils.Make commandsSeveral make commands are implemented inMakefile.TestingTests are implemented in thetest/directory, one file per module. Run them locally withmake test.Deploying a new package versionA new version of the package can be deployed by incrementing the version number inpyproject.tomland runningmake deploy.
A better practice is togit pushand allow the Github Actions pipeline to take care of running tests and deploying
the new version only when the entire pipeline succeeds.
Make sure to use the right version of the package in your other environments (update it in a requirements file and
update the environment).
Package: ytpa-utils
ytpa-utilsDescriptionThis package contains utility functions used by the YouTube video predictive analytics (YTPA) system.
They support extended functionality for:pandas:df_utils.pygensim (text processing):gensim_utils.pydata I/O:io_utils.pynumpy:np_utils.pySQL:sql_utils.pytiming:time_utils.pyobject type validation:val_utils.pyother:misc_utils.pyInstallationInstall from PyPI withpip install ytpa-utils.Make commandsSeveral make commands are implemented inMakefile.TestingTests are implemented in thetest/directory, one file per module. Run them locally withmake test.Deploying a new package versionA new version of the package can be deployed by incrementing the version number inpyproject.tomland runningmake deploy.
A better practice is togit pushand allow the Github Actions pipeline to take care of running tests and deploying
the new version only when the entire pipeline succeeds.
Make sure to use the right version of the package in your other environments (update it in a requirements file and
update the environment).
Package: yt-pld
yt_pld - YouTubeUploadThis app helps you automate uploading videos to your YouTube channel. Selenium is used for uploading.Installationpip install yt-pldExample of usefrom yt_pld import upload_multiple_videos


video_list = [
    {
        "video_path": 'your_video_path',
        "title_text": 'your_title_for_video',
        "description_text": 'your_description_for_video'
    },
    # Add more video entries as needed
]

login_data = {
    "chrome_driver_path": 'your_chrome_driver_path',
    "email": 'your_email',
    "password": 'your_password',
    "channel_name": 'your_channel_name'
}

upload_multiple_videos(login_data, video_list)Description of parameters to be transferredvideo_list- pass to this list as many dictionaries with video data as many videos you need to upload (currently you can upload a maximum of 10 videos per day)video_path- your path to the video you want to upload to your channeltitle_text- title for the videodescription_text- description for the video\login_data- pass to this dictionary the login data for your YouTube creative studiochrome_driver_path- path to your chrome driveremail- your email to log in to your google account, to which your YouTube channel is linked topassword- password for the google account to which your YouTube channel is linkedchannel_name- name of the channel you want to upload video to\Theupload_multiple_videosfunction will return unuploaded videos if an error occurs during upload. You can make this fault tolerant by handling it in the following way:response = True
while response:
    response = upload_multiple_videos(video_list=video_list, login_data=login_data)You can also limit the number of repeated downloads by setting a counter:response = True
counter = 3
while response and counter:
    response = upload_multiple_videos(video_list=video_list, login_data=login_data)
    counter -= 1
Package: ytproofreading
ytproofreadingA python module to use the proofreading support api of Yahoo! japanRequirementbeautifulsoup4certifichardetidnalxmlrequestssoupsieveurllib3Installation$pipinstallytproofreadingUsageimportytproofreadingappid="Client ID obtained from the Yahoo! japan Developer Network"kousei=ytproofreading.Kousei(appid)text="遙か彼方に小形飛行機が見える。"print(kousei.proofreading_support(text))"""[{'startpos': '0', 'length': '2', 'surface': '遙か', 'shitekiword': '●か', 'shitekiinfo': '表外漢字あり'},{'startpos': '2', 'length': '2', 'surface': '彼方', 'shitekiword': '彼方（かなた）', 'shitekiinfo': '用字'},{'startpos': '5', 'length': '5', 'surface': '小形飛行機', 'shitekiword': '小型飛行機', 'shitekiinfo': '誤変換'}]"""print(kousei.proofreading_support(text,1))"""[{'startpos': '5', 'length': '5', 'surface': '小形飛行機', 'shitekiword': '小型飛行機', 'shitekiinfo': '誤変換'}]"""print(kousei.proofreading_support(text,0,1))"""[{'startpos': '0', 'length': '2', 'surface': '遙か', 'shitekiword': '●か', 'shitekiinfo': '表外漢字あり'},{'startpos': '2', 'length': '2', 'surface': '彼方', 'shitekiword': '彼方（かなた）', 'shitekiinfo': '用字'}]"""NoteFor more information about arguments and errors, please refer to the following URL.arguments:https://developer.yahoo.co.jp/webapi/jlp/kousei/v1/kousei.htmlerrors:https://developer.yahoo.co.jp/appendix/errors.htmlAuthor6ast1an979email:6ast1an979@gmail.comtwitter:@6ast1an979License"ytproofreading" is underMIT license.
Package: ytps
YouTube Terminal Player and SearchYouTube Terminal Player and Search is a simple tools to searchyoutubefrom the terminal. It also gives you the url, so you can usempvto watch the video.
This bypasses the need to use youtube at all. Also, ytps doesn't use the youtube REST API, it only uses programs that scrape youtube. ytps uses many modules that scrap youtube.ytps doesn't on it's own provides no results. It only uses the below modules and compiles them to look beautiful and nice.3rd party modules used in ytps:youtube-search-python:website;youtube-search:website;rich:websiteUsageGeneral Usageytps"youtube_search_term"Open latest video in mpvytps-o"youtube_search_term"Open more relevant but slower resultsytps-l"youtube_search_term"Play Url or Most Relevant Result based on stringytps-p"youtube_search_term"Channel Infoytps-c"channel_name"Video Infoytps--info"video_url"Aboutytps-a"any_string"Helpytps--helpVersionytps--versionLicenseThe MIT License (MIT)Copyright © 2021 NoobSciencePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.GithubMade ByNoobScience
Package: yt-pull
DescriptionShort and ill written script for extracting a transcript of a YouTube Video. Too many unnecessary  dependencies, but does the job.Thank youyoutube-transcript-apiandclipboardfor saving my day!Installation$ pip install yt-pullUsage$ yt-pull "https://www.youtube.com/watch?v=some-ytvideo-id"Options:-o, --output:Path for saving the transcript to a file. (optional)-s, --separator:Seperator for joining lines. [default: '  ']-l, --lang:Transcript language; must be provided by the source otherwise, error will occur. [default: en]--help:Show help message.
Package: ytpy
ytpyPython wrapper to extract youtube data. Simpleasynchronouswrapper to get youtube video or playlist data.
The purpose of this project is to make it easier for developers to extract data from YouTube.RequirementsPython 3.xGet Google API' Credential 'API KEY'forYoutubeDataApiV3ClientonlyDependenciesurllibaiohttpInstallpipinstall--upgradeytpyUsageSearch Video byKeywordswithout api key.params:q, string. Search key. default: empty string.max_resultsExampleSearchmethod (Without api key)fromytpyimportYoutubeClientimportasyncioimportaiohttpasyncdefmain(loop):session=aiohttp.ClientSession()client=YoutubeClient(session)response=awaitclient.search('chico love letter')print(response)awaitsession.close()loop=asyncio.get_event_loop()loop.run_until_complete(main(loop))Search Video byKeywordswith YoutubeDataApiV3Clienthttps://developers.google.com/youtube/v3/docs/searchparams:q, string. Search key. default: empty string.part, string. Valid parts: snippet, contentDetails, player, statistics, status. default: snippet.type, string. Valid types: video, playlist, channel.ExampleSearchmethodimportosimportasyncioimportaiohttpfromytpyimportYoutubeDataApiV3Clientasyncdefmain(loop):session=aiohttp.ClientSession()# Pass the aiohttp client sessionayt=YoutubeDataApiV3Client(session,dev_key=os.environ["DEVELOPER_KEY"])# test searchresults=awaitayt.search(q="d&e lost",search_type="video",max_results=1)print(results)awaitsession.close()loop=asyncio.get_event_loop()loop.run_until_complete(main(loop))loop.close()ExamplesCheckexamplesfor the full code exampleContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests/examples as appropriate.
Package: yt-queue
yt-queueCLI to keep track of videos in Youtube playlistsclitl;dr:yt-queuecreate<name.ytq.json><url>
yt-queuerefresh<name.ytq.json>--only-if-older=1day
yt-queuefilter--no-status<name.ytq.json>
yt-queueread-field<name.ytq.json><video-id>url
yt-queueread-field<name.ytq.json><video-id>title
yt-queueset-status<name.ytq.json><video-id><status>
yt-queuefilter--status=<status><name.ytq.json>more filter options:yt-queuefilter--title"test video"<name.ytq.json>
yt-queuefilter--min-duration3<name.ytq.json>
yt-queuefilter--max-duration11<name.ytq.json>Seeyt-queue -horyt-queue <subcommand> -hfor details.outputMost cli subcommands' output (stdout) is parsable.stderris used for logging:get-no-statusandget-statusreturns the video ids, 1 per lineread-fieldreturns the value of the field for the given video idOther subcommands output should not be parsed - they contain either progress or verbose logging (including
fromyt-dlp)developmentpython3-mvenv.envsource.env/bin/activate
pipinstall-rrequirements.txt-rrequirements-dev.txt# orpipinstall--editable.
pipinstall'.[dev]'other dependencies:shellchecktests:./check.shtest the built packages:./dist-check.sh dist/...
Package: ytr
ytr — Yandex.Translate promptThis is a CLI for Yandex's translate service. At some point I got tired of opening the website, so I made a CLI.https://user-images.githubusercontent.com/75225148/166159403-a018d890-f1c5-42df-bab3-1d57f991d573.movInstallationpipx install ytrIf you don't usepipxyet, install withpip:pip install ytrUsageJust runytr.By default it usesenandrulanguage hints. You can override this behaviour with--hintsflag, for example,ytr --hints en de.That's it: enjoy!
Package: ytrans
Unofficial python client toYandex translator API.Javascript client written byEmmanuel Odekefor node.js you can findhere.InstallationNote: it runs on python versions >= 2.7:pip install ytransSettingsTo use this package, you need access to the Yandex translation service via an API key.You can get your key here:GET API KeyWith your API key, create a file and in it set your API key in this format:key=<API_KEY>To finish off, set the environment variable YANDEX_TRANSLATOR_KEY,that contains the path to this file. Do this in your shell, .bash_profile or .bash_rc file:export YANDEX_TRANSLATOR_KEY=path_to_keyUsageThis package provides a cli tool as well as an interactive translator.Cli tool usage:ytranslate.py-hInteractive translator:ytrans-interactive.py