Saravanan666/pypi-org huggingface dataset:
Package: ytdlp-servustv
servustv.com support for yt-dlpNOTE:Since version 2023.01.06 yt-dlp supports plugins from python packages.
The ytdlp-plugins package is no longer necessary.For further details seehttps://github.com/yt-dlp/yt-dlp#pluginssupported domains:servustv.comandpm-wissen.comsupported live channels:HauptkanalWetterpanoramaKanal: NaturKanal: WissenKanal: SportKanal: Wintersportplaylist from topics (e.g.Servus NachrichtenorMotorsport)playlist from searches (e.g.search term 'Spielfilme')installationYou can install ytdlp-servustv via pip:UsePyPI package:python3 -m pip install --upgrade ytdlp-servustvInstall from GitHub branch:python3 -m pip install -U https://github.com/flashdagger/ytdlp-plugins/archive/refs/heads/servustv.zipNote that on some systems, you may need to usepyorpythoninstead ofpython3example: show all titles from channelpython3 -m yt_dlp --flat-playlist -e https://www.servustv.com/unterhaltung/b/spielfilme/aa-1u4ebfxk52111/yt-dlpyt-dlpis ayoutube-dlfork based on the now
inactiveyoutube-dlc. The main focus of this project is adding new features
and patches while also keeping up to date with the original projectNote thatallplugins are imported even if not invoked, and thatthere are no checksperformed on plugin code.
Use plugins at your own risk and only if you trust the code
Package: ytdlp-youmaker
NOTE:Since version 2023.01.06 yt-dlp supports plugins from python packages.
The ytdlp-plugins package is no longer necessary.For further details seehttps://github.com/yt-dlp/yt-dlp#pluginsyoumaker.com support for yt-dlpinstallationYou can install ytdlp-youmaker via pip:UsePyPI package:python3 -m pip install --upgrade ytdlp-youmakerInstall from GitHub branch:python3 -m pip install -U https://github.com/flashdagger/ytdlp-plugins/archive/refs/heads/youmaker.zipNote that on some systems, you may need to usepyorpythoninstead ofpython3example: show the 20 recent titles from channelpython3 -m yt_dlp -e --playlist-items :20 --flat-playlist https://youmaker.com/channel/ntdyt-dlpyt-dlpis ayoutube-dlfork based on the now
inactiveyoutube-dlc. The main focus of this project is adding new features
and patches while also keeping up to date with the original projectNote thatallplugins are imported even if not invoked, and thatthere are no checksperformed on plugin code.
Use plugins at your own risk and only if you trust the code
Package: ytdownloader
YoutubeDownloaderis an automated service to download multiple
youtube videos at a time.AboutYoutubeDownloaderis written inPython. It usesAsynchronous Python Multiprocessingat its heart which facilitates
user to download more than one video at a time.YoutubeDownloadermust use a configuration file. It supports a YAML
/ JSON format of configuration file. This configuration file gives
structure and usability to the service. It defines whatvideos/playlistsneeds to be downloaded and how they are going to be
stored.Configuration SyntaxYoutubeDownloadersupports YAML / JSON configuration formats.YoutubeDownloaderprefers YAML more than JSON. Below is the snippet
of sample configurations in YAML / JSON format.settings:
  process: 2
download:
  mostlyinsane:
    dirname: '../mostlyinsane'
    videos:
      - 'https://www.youtube.com/watch?v=vcKPjDUc5EQ'
  trippling:
    dirname: 'trippling'
    playlists: 'https://www.youtube.com/watch?list=PLTB0eCoUXEraZe3d7fJRdB-znE5D0cMZ7'
  official-ceogiri:
    dirname: 'official-ceogiri'
    playlists:
        - 'https://www.youtube.com/watch?list=PLTB0eCoUXEraZe3d7fJRdB-znE5D0cMZ7'{
    "settings": {
        "process": 5
    },
    "download": {
        "mostlyinsane": {
            "dirname": "../mostlyinsane",
            "videos": [
                "https://www.youtube.com/watch?v=vcKPjDUc5EQ"
            ]

        },
        "trippling": {
            "dirname": "trippling",
            "playlists": "https://www.youtube.com/watch?list=PLTB0eCoUXEraZe3d7fJRdB-znE5D0cMZ7"

        },
        "official-ceogiri": {
            "dirname": "official-ceogiri",
            "playlists": [
                "https://www.youtube.com/watch?list=PLTB0eCoUXEraZe3d7fJRdB-znE5D0cMZ7"
            ]

        }
    }
}settingsdefines service level variables. -processto forceYoutubeDownloaderto useAsynchronous Python Multiprocessingand
tells how many processes should be deployed to downloadvideos/playlistsat a time.downloaddefines whatvideos/playliststo download. It tagsdirnameswithvideos/playlistsinternally and store the
downloadedvideos/playlistsin the respectivedirectory.dirnamerelative / absolute directory pathto store videos
in.videossingle / array of youtube videos linkto download.playlistssingle / array of youtube playlists linkto
download.InstallThis is a pure-Python package built for Python 2.6+ and Python 3.0+. To
set up:sudo pip install ytdownloaderOptionsytdownloader --helpconfigspecifies the location for the configuration file toYoutubeDownloader. If it omits,YoutubeDownloaderlooks in
the current directory for the configuration file.--versionspecifies the currect version ofYoutubeDownloader.--aboutabout text forYoutubeDownloaderUsageytdownloader --version    // latest version of ytdownloaderytdownloader --about      // about text for ytdownloaderytdownloader              // start the ytdownloader and search config file in current directoryytdownloader docs/config.yaml // start the ytdownloader and use docs/config.yaml as config file
Package: ytdvideo
YoutubeVideoThis is a python Package which can download all youtube videos and save it as Excel File
and also Json File. It allows user to get all Titles, Youtube URL and Images from their channelspecial Thanks to indianpythonistmore information visit :https://github.com/soumilshah1995/YoutubeVideoImport Libraryfrom ytdvideo import YoutubeVideoCreate a object and provide API keyobj = YoutubeVideo(api_key="YOUR KEY", channel_id="UC_eOodxvwS_H7x2uLQa")get the dataprint(obj.get_title)Get all Title Return Listprint(obj.get_title)Iterate over the Titlefor title in obj.get_title:
print(title)Get all Link Return Listprint(obj.get_video_url)Iterate over the Linkfor url in obj.get_video_url:
print(url)Get all Images Return Listprint(obj.get_image)Iterate over the Linkfor img in obj.get_image:
print(img)Get all Data return Tupleprint(obj.get_all)Iterate over the Linkfor data in obj.get_all:
print(data)save as Excel Fileobj.save_excelsave as JSONobj.save_json
Package: yte
YTE - A YAML template engine with Python expressionsYTE is a template engine for YAML format that utilizes the YAML structure in combination with Python expressions for enabling to dynamically build YAML documents.The key idea of YTE is to rely on the YAML structure to enable conditionals, loops and other arbitrary Python expressions to dynamically render YAML files.
Python expressions are thereby declared by prepending them with a?anywhere in the YAML.
Any such value will be automatically evaluated by YTE, yielding plain YAML as a result.
Importantly, YTE templates are still valid YAML files (for YAML, the?expressions are just strings).Documentation of YTE can be found athttps://yte-template-engine.github.io.Comparison with other enginesLots of template engines are available, for example the famous genericjinja2.
The reasons to generate a YAML specific engine areThe YAML syntax can be exploited to simplify template expression syntax, and make it feel less foreign (i.e. fewer special characters for control flow needed) while increasing human readability.Whitespace handling (which is important with YAML since it has a semantic there) becomes unnecessary (e.g. with jinja2, sometuningis required to obtain proper YAML rendering).Of course, YTE is not the first YAML specific template engine.
Others includeYgluEmrichenThe main difference between YTE and these two is that YTE extends YAML with plain Python syntax instead of introducing another specialized language.
Of course, the choice is also a matter of taste.
Package: yter
# yterVersion 3.1.1
2023, June 23Clever, quick iterator functions that make your smile whiter.This will work with versions of Python 2.6+ and 3.2+.## FunctionsThere are many functions that process data from iterators in efficient ways.yany– Extended version of the builtin any, test if any values are trueyall– Extended version of the builtin all, test if all values are trueylen– Complete an iterator and get number of valuesfirst– Get the first value from an iteraterablelast– Get the final value from an iteraterablehead– Get the first values from an iteraterabletail– Get the last values from an iteraterableminmax– Find the minimum and maximum values from an iterableisiter– Test if an object is iterable, but not a string typeuniter– Efficient copy of non sequence datarepeat– Efficient lazy copy of non sequence data## IteratorsThere are several iterators that wrap an existing iterator and process it’s output.call– Iterator that works with mixed callable typespercent– Iterator that skips a percentage of valuesflat– Iterator of values from a iterable of iteratorschunk– Iterator of lists with a fixed size from iterablekey– Iterator of pairs of key result and original valueschoose– Split into iterators for true and false valuesunique– Iterate only the unique valuesduplicates– Iterate only the duplicated valuesrecurse– Recurse values from a callable## KeysUtility functions that are useful to use as a key argumentformat– Create a function that formats given values into stringsnumeric– Split a string into string and integer sectionsgetter– Shorthand for attrgetter, itemgetter, and methodcaller operators[More documentation](https://gitlab.com/shredwheat/yter/blob/master/docs/docs/index.md) found in the repository.
Package: yTermPlayer
ytTerm player (BETA)Play youtube playlists as audio on linux terminalAboutytTerm player is a terminal youtube music player. It's completely written in python.UI: Made using a wrapper for curses calledurwidPlayer: Handled usingpython-mpvStream fetch: Audio streams from youtube are fetched usingpafyFeatures:Import and play youtube playlists on terminalSave playlists in libraryUse several playback modes such as repeat one, repeat list, randomDownload complete list (coming soon)InstallationSet up a virtual environment and install the dependencies:$pipinstall-rrequirements.txtpython3 pip :-$pipinstallytermplayer
$ytermor Git clone :-$gitclonehttps://github.com/TimeTraveller-San/yTermPlayer
$cdyTermPlayer/yTermPlayer/
$python__main__.pyDependenciesPython 3ytTerm player uses a number of open source projects to work properly:urwidpython-mpvpafypython3mpv player (sudo pacman -S mpv) or (sudo apt-get install mpv)ytTerm player itself is open source. Feel free to modify and distribute the codeKeyBindingsKeyFunctionssave current listenterselect option/play song at selectionnplay next songpplay previous songspacepause/play songuvolume updvolume downqquit1playback mode: Repeat one2playback mode: Repeat list3playback mode: Nonerplayback mode: Randommore features coming soonScreenshotsWorking video:https://youtu.be/rQpO1qBmxlYWorking video 2:https://youtu.be/bQrNtcIcHc0Start  screen :The UI will automatically use your terminal colors.FAQHow to fix out of range/url not found errors?YouTube keeps changing its structure so it's important you have installed the latest version of youtube-dl as follows:pip install --upgrade youtube_dlWhere are my playlists stored and how to delete playlists?Playlists are saved in$HOME/.yTermPlayer/playlistsas plain text. You may delete or add new playlists directly here.How to contact me?Email:time.traveller.san@gmail.comTwitter:https://twitter.com/timetravellerttKnown BugsBuggy / unexpected playback behaviorIt was caused because of race conditions and absence of critical section among the threads. Fixed it using semaphoresIf some VLC error starts showing up on the screen, just resize the terminal and it will be goneCompletely removed VLC and replaced it with much more minimal and faster mpv player. Thank topython-mpv by jaseg
Package: ytest
# InstructionA sample Python projectA sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile, an example of which is included in this project. You should edit this
file accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.Usageinstall:pip install ytestrun:ytest --help
 ytest http://ytest.com -q 2ouput:Description...
 Namespace(config=0, name='YT', quality=0, store=None, url=['http://ytest', 'ylanted.com'], verbose=0
 )
 http://ytest
Package: yt.formula.node
yt.formula.node is asprinterformula for installing node.js executables and npm packagesExample usage[node]
formula = yt.formula.node:git+https://github.com/toumorokoshi/yt.formula.node.git
version = 0.10.16
packages =
  grunt-cliOptionsversion: the version of node you want to install (in the format of X.X.X)packages: the npm packages you want to installAll intalled executables are automatically symlinked to your path.
Package: ytframedownloader
Download single frames from YT VideosfromytframedownloaderimportYT2Frames#Will download https://yt-dl.org/latest/youtube-dl.exe and save it your cache folder.#FFMPEG must be installed and in your pathytf=(YT2Frames(youtubeurl="https://www.youtube.com/watch?v=UNTE7TXhv9c",foldertosave="f:\\testyoutubedownload",force_yt_downloader_update=False,#deletes youtube-dl.exe and downloads it again).get_download_codes(desired_videoquality=640)#If the video quality is not available, will get the one that is closest.download_video().convert_video_to_frames(fps=1)#One frame per second)
Package: ytgrep
ytgrep is a CLI tool to search Youtube closed captions with a grep-like interface.RequirementsRequires python >= 3.5InstallationpipinstallytgrepNote: you must have pip’s bin folder on yourPATH.Purposeytgrep is particularly useful whilst looking for particular topic or keywords mentioned in a video.For example, searching for the word ‘topoloigcal sort’ inMIT’s Open Courseware Lecture on DFS and topological sort:Usageusage:ytgrep.py[-h][-e][-v][-links]patternurls[urls...]Flags-e <PATTERN> - specify a regular expression to match-v - verbose, print debug information-links - include the time shortcut link with each match (see example below)More examplesInclude timestamped links (e.g. <youtube URL>/&t=196s) to jump directly to part in video where keyword was mentioned.$ytgrep-links'potassium'https://www.youtube.com/watch?v=OIYOshsEqmQSearch with regular expressionytgrep-e'banana|potassium'https://www.youtube.com/watch?v=OIYOshsEqmQSearch multiple urlsytgrep'banana'https://www.youtube.com/watch?v=LH5ay10RTGYhttps://www.youtube.com/watch?v=zFQWVN4xip0DevelopmentRun TestsNote:Functional tests do download directly from Youtube## All testspython-munittestdiscover## Unit testspython-munittestdiscovertest/unit## Functional testspython-munittestdiscovertest/functionalRelated projectsyoutube-closed-captions - This project used this library as a starting pointhttps://github.com/mkly/youtube-closed-captionsvideogrep - get supercuts of video matching provided seach terms
Package: yt-helper
InstallInstall system av tools% sudo apt-get install -y ffmpeg sox rtmpdump

or

% brew install ffmpeg sox rtmpdumpInstall withpip% pip3 install yt-helperUsageTheyt-downloadscript is provided% venv/bin/yt-download --help
Usage: yt-download [OPTIONS] [ARGS]...

  Wrapper to 'av_from_url'

  - args: urls or filenames containing urls

Options:
  -o, --template TEXT       string representing generated filenames
  -h, --max-height INTEGER  maximum height of video (i.e. 1080, 720, 480,
                            240.. default 720)
  -p, --playlist            Allow downloading entire playlist
  -t, --thumbnail           Download thumbnail image of video
  -d, --description         Download description of video to a file
  -s, --subtitles           Embed subtitles in the downloaded video
  -a, --audio-only          Don't keep the video file if one was downloaded
  -m, --mp3                 Convert downloaded audio to MP3 file
  -v, --verbose             Show extra debugging output
  --help                    Show this message and exit.Optional InstallsCollections/models (QUERIES, URLS, FILES, COMMENTS)In order to make use of theQUERIES,URLS,FILES, andCOMMENTScollections, you must also install theredis-helperpackage and have a Redis server running.If the collections/models are available, some functions will save
relevant info to them.See:https://github.com/kenjyco/redis-helper#introIf you don’t havedockerinstalled, install Redis and start server% sudo apt-get install -y redis-server

or

% brew install redis
% brew services start redisInstall withpip% pip3 install redis-helper
Package: ytho
ythoChange Python's prompt with ease. Because>>>is boring.InstallationpipinstallythoUsageDefine a file.ytho.pyin your home directory, with a classPrompt.This will define your prompt. For example:classPrompt:def__init__(self):self.counter=0defprompt(self)->tuple[str,str]:self.counter+=1ps1=f"\033[1;32mIn [{self.counter}]\033[m: "# The ANSI codes take up 10 chars, remove thoseps2=" "*(len(ps1)-10)returnps1,ps2And now you have IPython's prompt. And you can do a lot more than that if you want!.Local Development / TestingCreate and activate a virtual environmentRunpip install -r requirements-dev.txtto do an editable installRunpytestto run testsType CheckingRunmypy .Create and upload a package to PyPIMake sure to bump the version insetup.cfg.Then run the following commands:rm-rfbuilddist
pythonsetup.pysdistbdist_wheelThen upload it to PyPI usingtwine:twineuploaddist/*
Package: ython-NBS
Python-NBSA python library for reading NBS filesBased on NBS Version: 4(Current version used by Open Note Block Studio)What is NBSThe .nbs format (Note Block Song) was created to work with Minecraft Note Block Studio, and contains data about how note blocks are laid out in the program to form a song.Fromopennbs.org.InstallationpipinstallPython-NBSUsageimportpython_nbs.nbsasnbsimportpprintnbs_file=nbs.NBS("file.nbs")# print song nameprint(nbs_file.song_name)# print all note blockspprint(nbs_file.note_blocks)See docstring for the available instance variables.
Package: yt-idv
interactive volume rendering for ytThis package provides interactive visualization using OpenGL for datasets
loaded in yt.  It is written to provide both scripting and interactive access.Free software: BSD licenseDocumentation:https://yt-idv.readthedocs.io.Source code:https://github.com/yt-project/yt_idvFeaturesRendering of multi-resolution (AMR) volume dataRendering of unstructured mesh dataFully-traitlets-ized interface for controlling the rendering propertiesDearImGUI-based interactive controlsOn-screen rendering powered bypygletand off-screenEGLthroughPyOpenGLMultiple annotations:TextBoxesBlock and grid outlinesSupport for sub-selections of data via the yt data selection interfaceIntegration with theipywidgetsImagewidget.ExamplesCreditsThis package was initially created as part ofyt, with the first iteration written by
Chuck Rozhon.  The conversion to use traitlets, pyglet and a more flexible shader interface was done by Matthew Turk,
with contributions from Kacper Kowalik and Chris Havlin.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: ytkd-api
YTKDytkd-api is sponsored by:DescriptionA YouTube key word detection API that takes in video URL and key words and outputs each key word along with its time of occurrence in the video.InstallationDownload using pip via pypi.$pipinstallytkd-apiGetting startedImport YTKD:>>>fromytkd-apiimportYTKDAssign data.>>>url='https://www.youtube.com/watch?v=vW9edcLqND0'>>>keywords='and, to'Create an object of YTKD.>>>ytkd=YTKD(url=url,keywords=keywords)Get the expected processing time.>>>ytkd.get_expected_time()# returns the expected time in minutes e.g. 5Get the results for the given keywords.>>>ytkd.get_results()# returns the results in form of a dictionary of type {str: list}
Package: ytkubevault
ytkubevaultytkubevault is a light wrapper of abilities to read secrets
from HashiCorp Vault running in Kubernetes.When the microservice needs to fetch the secret value from
Vault, it has to read a token from its containing pod first.
Then this token is used to communicate with Vault in order to
obtain a second token. Your service uses the second token to
get the secrets. ytkubevault simplifies this process with one
functionget_secret_or_env(key: default:), which first tries
to obtain the secret from Vault, and if that didn't succeed,
reads it from the environment. A default value can be provided
as the last resort.This is especially convenient when you are developing locally,
or the application is being built in a CI/CD pipeline where
the first token is not available.InstallpipinstallytkubevaultUsageFirst define the following environment variables:VAULT_ENABLEDVAULT_ROLEVAULT_URLVAULT_SECRETS_PATHBy default,VAULT_ENABLEDis"false". To enable reading from Vault,
set it to be"true", case-insensitive. And then,fromytkubevaultimportget_secret_or_envdb_password=get_secret_or_env("DATABASE_PASSWORD")Since Version 0.2.0, aVaultClientis added, and you can explicitly create
such a client:fromytkubevaultimportVaultClientvault_client=VaultClient()# login firsttry:vault_client.login()exceptExceptionase:print(f"Failed to login:{e}")# Then you can do encryption, for example:vault_client.encrypt(encrypt_key="some_key",plaintext="my_secret_message")The old functions now use an implicitly created globalVaultClient. Note thatVaultClientis not multithread-safe.Fetching secrets from outside the clusterTo be able to fetch secrets from outside the Kubernetes cluster, you need to install
the package withpipinstall'ytkubevault[dev]'This will also installkubernetespackage, which allows us to get the service account
token. Additionally, 4 environment variables need to be set:VAULT_DEV_REMOTE_MODE: this needs to betrue, which isfalseby defaultVAULT_DEV_REMOTE_CLUSTER: the cluster string you want to connect toVAULT_DEV_REMOTE_NAMESPACE: the namespace the service is inVAULT_DEV_REMOTE_SERVICE_ACCOUNT: the service account name of the service