Saravanan666/pypi-org huggingface dataset:
Package: ytam
ytam - YouTube Album MakerA commandline utility that enables the creation of albums from Youtube playlists.Getting StartedPrerequisitesTo be able to use the mp4 to mp3 conversion feature, ffmpeg must be installed.Debian:sudo apt-get install ffmpegWindows:Download ffmpeg binaries fromhereAdd the bin\ directory to Windows PATHInstallingpip install ytamUsage:usage: ytam [-h] [-t TITLES] [-d DIRECTORY] [-s START] [-e END] [-A ALBUM]
            [-a ARTIST] [-i IMAGE] [-p PROXY] [-3 [MP3]] [-k [CHECK]]
            URL

positional arguments:
  URL                   the target URL of the playlist to download

optional arguments:
  -h, --help            show this help message and exit
  -t TITLES, --titles TITLES
                        a plain text file containing the desired titles and
                        artists of the songs in the playlist, each on a new
                        line. Format: title<@>artist
  -d DIRECTORY, --directory DIRECTORY
                        the download directory (defaults to 'music' - a
                        subdirectory of the current directory)
  -s START, --start START
                        from which position in the playlist to start
                        downloading (defaults to 1)
  -e END, --end END     position in the playlist of the last song to be
                        downloaded (defaults to last position in the playlist)
  -A ALBUM, --album ALBUM
                        the name of the album that the songs in the playlist
                        belongs to (defaults to playlist title)
  -a ARTIST, --artist ARTIST
                        the name of the artist that performed the songs in the
                        playlist (defaults to Unknown)
  -i IMAGE, --image IMAGE
                        the path to the image to be used as the album cover.
                        Only works when -A flag is set
  -p PROXY, --proxy PROXY
                        list of proxies to use. Must be enclosed in string
                        quotes with a space separating each proxy. Proxy
                        format: <protocol>-<proxy>
  -3 [MP3], --mp3 [MP3]
                        converts downloaded files to mp3 format and deletes
                        original mp4 file. Requires ffmpeg to be installed on
                        your machine
  -k [CHECK], --check [CHECK]
                        checks whether ytam is working as it should by trying
                        to download a pre-defined playlist and setting pre-
                        defined metadata. Setting this argument causes ytam to
                        ignore ALL othersTestsTODOBuilt Withpytube- Lightweight Python library for downloading videosmutagen- For MP4 metadata taggingargparse- For parsing commandline argumentsffmpeg- For mp4 to mp3 conversionAuthorsjayathungek-Initial work-jayathungek
Package: ytApiTest
项目介绍此扩展包通过读取yaml文件配置接口请求参数
通过GET、POST方法获取接口返回值并断言安装和使用安装命令如下：pip install ytApiTest支持功能如下：支持 GET 请求支持 POST 请求支持 yaml文件内请求参数或断言数据使用JOSNPATH 语法获取接口返回值支持 断言接口返回值，字段某部分或某个键值对是否存在返回值中支持 断言接口返回值所有字段是否与断言值相等支持 断言失败发送对应错误接口信息到钉钉群支持 用例前置、后置操作支持 对用例指定用户做请求。使用：使用扩展包项目根目录下必须新建.yaml文件管理测试用例数据.yaml文件必须遵循以下格式并包含以下关键字YAML文件用例支持关键字：DING_TALK_URL:钉钉群机器人url此项必须配置OBJECT_HOST:项目host，可配置多个不同host例：OBJECT_HOST：host_key:hostinterface_name(你接口名称,可自己命名):url(接口路径,此关键字必须包含):值可为空assert_key(断言key,可自己命名):des(此关键字必须包含):用例说明，值可为空,用于断言错误时展示req_data(此关键字必须包含):接口请求参数,值可为空ast_data(此关键字必须包含):接口断言值,值可为空json_expr(此关键值必须包含):返回查找路径,值可为空setup：用例前置操作,以列表形式保存对应接口请求参数，支持传入interface_name,assert_key,host_keyteardown：以列表形式保存对应接口请求参数，支持传入interface_name,assert_key,host_key.yaml文件内使用JSONPATH语法示例interface_name:url:assert_key:des:req_data:key:$.interface_name.data.XXXast_data:key:$.interface_name.data.XXXjson_expr:$.interface_name.data.XXXsetup:[{interface_name:interface_name,assert_key:assert_key,host_key:host:key},{...}]teardown:[{interface_name:interface_name,assert_key:assert_key,host_key:host:key},{...}]方法说明及使用示例#POST 请求importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象response=ytApiTest.post(interface_name,assert_key)#参数说明：interface_name(.yaml你接口名称),assert_key(.yaml文件内与接口对应的assert_key值)#GET 请求importytApiTest#读取.yaml文件内对应的接口值并发送get请求到后台,返回response对象response=ytApiTest.get(interface_name,assert_key)#参数说明：interface_name(.yaml你接口名称),assert_key(.yaml文件内与接口对应的assert_key值)#获取接口断言数据importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象response=ytApiTest.get_interface_case_assert_data(interface_name,assert_key)#参数说明：interface_name(.yaml你接口名称),assert_key(.yaml文件内与接口对应的assert_key值)#获取接口请求数据importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象response=ytApiTest.get_interface_request_data(interface_name,assert_key)#参数说明：interface_name(.yaml你接口名称),assert_key(.yaml文件内与接口对应的assert_key值)#获取接口完整URLimportytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象response=ytApiTest.get_interface_url(interface_name,assert_key)#参数说明：interface_name(.yaml你接口名称),assert_key(.yaml文件内与接口对应的assert_key值)#执行相等断言方法importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象ytApiTest.assert_body_eq_assert_value(response,assert_value,json_expr)#参数说明：response(接口返回response对象),assert_value(.yaml文件内断言值),json_expr(.yaml文件内json_expr值)#断言返回值中URL状态是否为200方法importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象ytApiTest.assert_response_url_status(response）#参数说明：response(接口返回response对象)#修改请求参数importytApiTest#读取.yaml文件内对应的接口值并发送post请求到后台,返回response对象ytApiTest.update_case_req_data(interface_key=None,assert_key=None,new_request_data=None）参数：interface_key=接口名称,assert_key=断言值,req_data=请求字典
Package: yt-aspect
yt_aspectThis package is a plugin forytthat adds a frontend forASPECTunstructured mesh output in .pvtu format. It also includes a general .pvtu frontend.InstallationUse pip to install:pip install yt-aspectTo install a development version,  clone this repository,cdinto the clone and then install locally withpip install -e .A number of dependencies will be installed for you, includingytif you don't already have it.UsageTo load a single timestep:importytds=yt.load('output_convection_box_3d/solution/solution-00000.pvtu')From there, you can work with the dataset as a normal yt dataset (though not all functionality will work -- open an issuehereif something you need doesn't work!). Until there are ASPECT specific examples in this repository, check out themain yt documentationfor examples.Bugs and RequestsThis is still in an experimental stage, so you will likely find bugs and missing features! Feel free toopen an issue, contact us viaslackor submit pull requests.
Package: yt-astro-analysis
The yt Astro Analysis ExtensionThis is yt_astro_analysis, theytextension
package for astrophysical analysis. This package contains
functionality for:Halo finding and analysisLightconesPlanning cosmological simulations for making lightcones and lightraysExporting to the RADMC-3D radiation transport codeCreating PPV FITS cubesThis is primarily machinery that used to be in yt's
analysis_modules. These were made into a separate package to allow yt
to become less astro-specifc and to allow these modules to be
developed on their own schedule.InstallationFull installation documentation can also be foundhere.StableGet the latest release via pip aspython-mpipinstallyt-astro-analysisOr with conda, ascondainstall-cconda-forgeyt-astro-analysisNote, the package name is spelled with hyphens (yt-astro-analysis)
when installing from pip or conda. With pip, the package name can be
spelled with either hyphens or underscores, but with conda it must
always be hyphens.From sourceTo buildyt_astro_analysisfrom source, clone the git repository and install
asgitclonehttps://github.com/yt-project/yt_astro_analysiscdyt_astro_analysis
python-mpipinstall-e.Installing with Rockstar supportIn order to run the Rockstar halo finder from within yt_astro_analysis, it is
necessary to install yt_astro_analysis from source.
You will need to installrockstar-galaxiesfrom eitherJohn Wise's
repositoryorPeter
Behroozi's
repository. To
install Rockstar, do the following:git clone https://bitbucket.org/jwise77/rockstar-galaxies
cd rockstar-galaxies
make libThen, go into the yt_astro_analysis source directory and add a file called
"rockstar.cfg" with the path the Rockstar repo you just cloned.  Then, install
yt_astro_analysis.cd yt_astro_analysis
echo <path_to_rockstar> > rockstar.cfg
python -m pip install -e .Finally, you'll need to make sure that the location oflibrockstar-galaxies.sois in your LD_LIBRARY_PATH.export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_rockstar>Importing from yt_astro_analysisFor every module that was moved from yt's analysis_modules to yt_astro_analysis,
all imports can be changed simply by substitutingyt.analysis_moduleswithyt.extensions.astro_analysis.  For example, the followingfromyt.analysis_modules.ppv_cube.apiimportPPVCubebecomesfromyt.extensions.astro_analysis.ppv_cube.apiimportPPVCubeContributingWe really want your contributions!  As an officialyt-projectextension, everything in theyt Contributor Guideapplies
here.If you'd rather make your own standalone package, we want to support that, too!
Please, consider making your package ayt extension.ResourcesAs an extension of theyt-project, theyt resourcesare available for help.The latest documentation can be found athttps://yt-astro-analysis.readthedocs.io/
Package: ytb-downloader
IntroductionDownload youtube videos and convert them to mp3.User GuideHow to InstallTo installytb_downloaderby running:$ pip install ytb_downloaderHow to UseYou can use the command line tool fromytb_downloaderto download audios or videos
from Youtube.Download AudioStart downloading a single audio by calling:$ ytb_downloader "<your youtube video url>"If you want to specify the format of the downloaded video, you can use the option–formator-fwith the format as string, such as:$ ytb_downloader --format "mp3" "https://www.youtube.com/watch?v=nOubjLM9Cbc"For more details, please execute:$ ytb_downloader --helpDownload VideoStart downloading a single video by calling:$ ytb_downloader --video-only "<your youtube video url>"Download in bulkIf you want to download audios in bulk, please prepare acsvfile containing all
the urls of the audios. Here is an example about how does this csv file look like.example-url-only.csvurlhttps://www.youtube.com/watch?v=WqkjYKUXERQhttps://www.youtube.com/watch?v=nOubjLM9CbcHere is the content of the example-url-only.csv file:url
https://www.youtube.com/watch?v=WqkjYKUXERQ
https://www.youtube.com/watch?v=nOubjLM9CbcIn the csv file, you can also specify theformat,time_start,time_endandbitratefor each audio, such asexample.csvurlformattime_starttime_endfpsbitratehttps://www.youtube.com/watch?v=WqkjYKUXERQmp30441003000khttps://www.youtube.com/watch?v=nOubjLM9Cbcmp33100200500kHere is the content of the example.csv file:url,format,time_start,time_end,fps,bitrate
https://www.youtube.com/watch?v=WqkjYKUXERQ,mp3,0,,44100,3000k
https://www.youtube.com/watch?v=nOubjLM9Cbc,mp3,3,100,200,500kTo download all the audios from the urls listed in this file by calling:$ ytb_downloader_bulk example.csvIf you want to download the videos only, you need to provide a csv file with
one columnurl, and list all the urls you want to download in that column. Then
execute:$ ytb_downloader_bulk --video-only example.csvMaintainersZhiwei Zhang-Maintainer-zhiwei2017@gmail.com
Package: ytbot
YTBOT## THIS BOT GENERATES GENUINE YOUTUBE VIEWS ##How to install?pip install ytbotwhat are the requirements?python3.6 or abovechromium-browser(developer version)A few google accounts(this is important)
*a little bit of patienceI tried my best to make it as user friendly as possible. But you should find bugs here and there. I’m still testing the capabilities of this bot. So, I don’t know for sure if it would work for everyone. But it won’t be a garbage I assure you.How to use it?Once installed ytbot, go to the terminal and write “ytbot configure” then follow the instructions there.
You will need to provide the path to a chromium-browser that you installed(developer version of course)
after that, add a few google accounts(remember to give right infos) it’s necessary because of the way this bot works. The mechanics is like that you get 1 view per account every 10 minutes. So, 10 account means 10 views per 10 minutes. 20 account means 20 views per 10 minutes! and so on. Cool right?
But beware! It will eat alot of ram.
then it will ask for youtube video url. provide as many as you want.But keep the number less than 10 for better performance.When the configuration is complete, run the bot symply by “ytbot run” or “ytbot run -h” for headless.
Package: yt-cc-dl
Yt-cc-dl🚀 Command-line program to download cleaned up closed captions (subtitles) of channels from YouTube.com in JSON format.Requirements🐍python>=3.7⬇️ Installationpipinstall-Uyt-cc-dl⌨️ Usage➜ yt-cc-dl --help

usage: yt-cc-dl [-h] [-o OUTPUT_DIR] [-l LANGUAGES] [-i INDENT] [-r] [-d]
              channel [channel ...]

positional arguments:
  channel               Single or multiple YouTube channel URL(s)

options:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory name or path (default: channel name)
  -l LANGUAGES, --languages LANGUAGES
                        Comma-separated list of languages to download (can be
                        regex). The list may contain "all" for all available
                        languages. The language can be prefixed with a "-" to
                        exclude it from the requested languages (e.g.,
                        all,-live_chat)
  -i INDENT, --indent INDENT
                        Indentation size in the output JSON files (None by
                        default)
  -r, --rich-data       Add a unique index and include the title and thumbnail
                        in every subtitle entry (useful for Meilisearch)
  -d, --disable-multithreading
                        Disable multithreading📝 TodoEnable downloading the cc of a single video.
Package: yt-channels-archive
yt-channels-archiveA CLI tool to backup multiple YouTube channels along with their associated metadata and thumbnails. In the highest available quality.Installationpipinstallyt-channels-archiveUsageyt_archive--output-dir./backuphttps://www.youtube.com/channel/UC7edjYPNhTm5LYJMT7UMt0Q/videoshttps://www.youtube.com/channel/UC6cMYsKMx6XicFcFm7mTsmAYou may notice this will also places a file in your backup folder called 'download_archive.txt'.Don't delete that as it's used to ensure videos are only downloaded once (if you remove it and re-run the above command existing videos will be re-downloaded).Running the testspipinstall-rrequirements-dev.txt
pytesttestsRunning the linterpipinstall-rrequirements-dev.txt
flake8Release History0.2.3 (2023-02-20)Use yt-dlp from Git source (to get latest bugfixes ASAP).0.2.2 (2023-02-20)Use yt-dlp.0.2.1 (2023-02-05)youtube_dl==2021.4.1.Connect via ipv4 only.0.2.0 (2021-02-01)Adds Channel images and other metadata to the archive.0.1.7 (2021-01-23)Revert previous 2.0.1.6 (2021-01-23)Force ipv6.0.1.5 (2021-01-23)Force ipv4.0.1.4 (2021-01-20)youtube_dl==2021.1.16.0.1.3 (2021-01-20)Fix 429 errors.0.1.2 (2021-01-09)Fix to prevent duplicate download work.0.1.1 (2020-11-30)Corrects some 4k files missing audio.0.1.0 (2020-11-28)Initial release.
Package: yt-channel-scraper
yt-channel-scraperAll in one Youtube Tool for Python.Helps you fetch the following things of a youtube channel:channel_idvideos (video_ids)video transcriptsdownload videoschannel_idfrom yt_channel_scraper import YoutubeScraper

fy = YoutubeScraper("channel-link")
print(fy.get_channel_id())videosfrom yt_channel_scraper import YoutubeScraper

fy = YoutubeScraper("channel-link")
print(fy.get_video_ids(limit=20)) # limit is number of latest videos you needvideo transcriptsfrom yt_channel_scraper import YoutubeScraper

fy = YoutubeScraper("channel-link")
v_ids = fy.get_video_ids(limit=20)
print(fy.get_video_transcript()) # fetch video transcripts of all videos
print(fy.get_video_transcript(video_id="video-id")) # fetch video transcript of single videodownload videosfrom yt_channel_scraper import YoutubeDownloader

yd = YoutubeDownloader("video-link")
print(yd.get_download_streams()) # show the available streams to download with tags
yd.download_stream("tag") # give the tag from available streams whichever to download
yd.download_highest_resolution() # download highest resolution available
Package: ytcl
ytclytcl is a command-line frontend forytdl-server.Its syntax is based on youtube-dl/yt-dlp, and it shares many of the same
arguments.[TOC]Installationytcl requiresPython3.7+.If you're using an Arch-based distro, ytcl is available in theAUR.Install fromPyPI:pip3installytclInstall from source:gitclone'https://gitlab.com/adralioh/ytcl.git'pip3install./ytclIf you want color output to work on Windows, you can also optionally installColorama:pip3install'ytcl[windows_color]'UsageFirst, you must set the$YTDL_SERVERenv-var to the URL of the ytdl-server
so that ytcl can connect to it:exportYTDL_SERVER=http://ytdl-server.example.comCreate a jobDownload videos by creating a job:ytclcreate'https://youtu.be/dQw4w9WgXcQ'You can pass most arguments that youtube-dl accepts. Example:ytclcreate-f'bestaudio/best'--extract-audio'https://youtu.be/dQw4w9WgXcQ'You can also start a job without waiting for it to finish:ytcl-dcreate'https://youtu.be/dQw4w9WgXcQ'Runytcl create --helpfor an exhaustive list of arguments.Get the status of a jobYou can check the status of a job using the job ID:ytclget'b7cce5f7-9f7c-47ed-ae13-2acf7c32cc29'The job ID is obtained from the output of the command where you create the
job.The above command will run until the job finishes. If you just want to get the
complete current status of the job, you can change the output format:ytcl-fallget'b7cce5f7-9f7c-47ed-ae13-2acf7c32cc29'JSON output is also supported:ytcl-fjsonget'b7cce5f7-9f7c-47ed-ae13-2acf7c32cc29'Cancel a jobYou can also cancel a running job:ytclcancel'b7cce5f7-9f7c-47ed-ae13-2acf7c32cc29'The above command will wait until the job is cancelled. You can also exit
immediately without waiting:ytcl-dcancel'b7cce5f7-9f7c-47ed-ae13-2acf7c32cc29'Basic authenticationIf the ytdl-server uses basic authentication, you can provide the credentials
via the$YTDL_SERVER_USERNAMEand$YTDL_SERVER_PASSWORDenv-vars:exportYTDL_SERVER_USERNAME=userexportYTDL_SERVER_PASSWORD=passwordIf only the username is provided, you will be prompted for the password
interactively.Exit codesytcl exits with the following exit codes when an error occurs:CodeDescription2Invalid argument10Unspecified error11ytcl tried to use a ytdl_opt that is blacklisted by the ytdl-server when creating a job12ytcl tried to use a custom_opt that is blacklisted by the ytdl-server when creating a job13ytcl tried to cancel a job that has already completed14The job failed15ytcl received an error response from the ytdl-server16The URL of the ytdl-server wasn't provided. This can be set via the$YTDL_SERVERenv-var
Package: ytclip
ytclip - Quickly clip any video you see online and save it to your harddriveUsageMake sure python (>3.7) is installed on your system.>pipinstallytclip
>ytcliphttps://www.youtube.com/watch?v=dQw4w9WgXcQ# Follow the promptsAboutThis utility provides a command that will automate downloading files and creating clips out of them.Usesyt-dlpto do the downloading of files and usesstatic_ffmpegto do the actual cutting.WindowsFor easy use, just download therun_ytclip.batfile and place it into any folder you want. Now you have a double clickable icon for users that don't like going to the command line. Make sure you've installed thelatest python, checking the box that says "ADD TO PATH" during installation.Running# (Interactive)>cd<MY_DIRECTORY>
>ytclip
Addnewvideo:url:...start_timestamp:08:08end_timestamp:08:20output_name:my_file# (CMD-line)>cd<MY_DIRECTORY>
>ytcliphttps://www.youtube.com/watch?v=CLXt3yh2g0s--start_timestamp00:32--end_timestamp00:52--outnamemyoutputfile# Help file>ytclip--helpApiYou can also use it as an api:fromytclip.ytclipimportrun_download_and_cutrun_download_and_cut(url="https://www.youtube.com/watch?v=-wtIMTCHWuI",start_timestamp="1:10",end_timestamp="1:30",outname="myclip_withoutsuffix")You can also turn off logging like so:fromytclip.ytclipimportrun_download_and_cut,set_loggingset_logging(False)run_download_and_cut(...)ServerSee the server version:ytclip-serverReleases1.2.7: Brighteon downloads have been fixed, thanks to the brighteon plugin.1.2.6: Fix error where omitting length would cause error.1.2.5: Cleans youtube videos by removing the ?t= part of the url.1.2.4: Adds update warning for ytclip if out of date.1.2.3: Make yt-dlp use 1.2.3 or higher (fixes downloader).TODOAdd lossless cut to tool:https://github.com/mifi/lossless-cut
Package: ytclip-server
ytclip-serverDocker http server runningytclipDocker Production testgit clone https://github.com/zackees/ytclip-servercd ytclip-serverdocker-compose upNow open uphttp://127.0.0.1:80/Demopip install ytclip-serverytclip-server --port 1234Now open uphttp://127.0.0.1:1234in a browser.Full Testsgit clone https://github.com/zackees/ytclip-servercd ytclip-servertox
Package: ytcomment
ytcomment scrapperytcomment is a package to scrap all comments & title given a youtube video url.Dependencygoogle-api-python-client <br> <br>
==> pip install google-api-python-clientHow to use<br>
_After install the package, use following imports: <b>

from ytcomment import youtubescrapper

link = "https://www.youtube.com/watch?v=QBasYIll0aw&t=532s"

comments, title = youtubescrapper(link)
Package: ytcomments
ytcommentsA simple tool to get Youtube comments and it's translationTable of ContentsDescriptionInstallationUsageAuthorLicenseDescriptionThis tool help you retrieve Youtube comments and if needed it fetches the translation of comments.This tool indented to use in terminal by calling the command 'ytcmts' only.InstallationInstall from pypipip install ytcommentsInstall from GitHubpip install git+https://github.com/dipson94/yt-commentsInstall requirespyperclip >= 1.8.2tqdm >= 4.65.0getch >= 1.0youtube_comment_downloader >= 0.1.68Usagecommand in terminalytcmtsAuthorDipsonLicenseGNU GPL V3
Package: ytcomment-trends
ytcomment_trendsDependenciesBefore install this library, you need to install mecab for NLP.For macOS, run this command to install mecab and ipadic dictionary. For other OS, please follow the instructions from mecab official documentation.brew install mecab mecab-ipadicHow to useGet YouTube API Client SecretPlease refer toGoogle's official documentationfor getting API keys. Make sure you create credentials with API Key (not OAuth 2.0 Client) with API restriction to the YouTube Data API.Run commandInstall this library with the following command:pip install ytcomment_trendsIf you are using virtual environment, please use the package manager of the virtual environment (e.g.,pipenv install,poetry add).After installation, run this command to analyze video.ytcomment_trends -v pR2E2OatMTQ -k hogefugaIf you are not sure about the arguments, run following command to check.ytcomment_trends -h