Saravanan666/pypi-org huggingface dataset:
Package: aytch
:small_red_triangle: AYTCH - Async YouTube Channels Scrapper :small_red_triangle:AYTCH is a Python library for extracting information about YouTube channels. It uses AIOHTTP library for best performance and concurrent fetching support. Library very lightweight (11KB) and return only extra nessesary information about any youtube channel.:pencil2: InstallationYou can install AYTCH using pip:pipinstallaytch:bookmark_tabs: UsageHere's an example of how to use AYTCH to get information about a YouTube channel:importasynciofromaytchimportget_channel_infoasyncdefmain():channel_url='https://www.youtube.com/channel/UCdX9ulb8u0oUf8pUzg9Z5Jw'channel_info=awaitget_channel_info(channel_url)print(channel_info)asyncio.run(main()):link: APIget_channel_info(channel_url:str,lang:'en'|'ru'='en')->dictRetrieves information about a YouTube channel.Parameters:channel_url (str):The URL of the YouTube channel to get information about.lang (str):The language of the YouTube page. Can be either 'en' or 'ru'. Defaults to 'en'.Returns:A dictionary containing the following information about the channel:author (str):The name of the channel's author.author_id (str):The external ID of the channel's author.author_url (str):The URL of the channel's author.author_thumbnail (str):The URL of the channel's author's thumbnail image.subscriber_count (int):The number of subscribers to the channel.description (str):The description of the channel.view_count (str):The total number of views on the channel.Example:{'author':'The Slow Mo Guys','author_id':'UCUK0HBIBWgM2c4vsPhkYY4w','author_url':'https://www.youtube.com/channel/UCUK0HBIBWgM2c4vsPhkYY4w','author_thumbnail':'https://yt3.ggpht.com/ytc/AAUvwnhRnI8Lr...','subscriber_count':14500000,'description':'The best slow motion on Youtube.\n\nWe shoot all of our...','view_count':'265308911'}:recycle: ContributingContributions to aytch are welcome! If you'd like to contribute, please fork the repository and make a pull request.:warning: Licenseaytch is licensed under the MIT License. See LICENSE for more information.Inspired byyt-channel-info
Package: ayto
AYTOA Python library for calculating couple probabilities for the TV showAre You the One?.Installationpip install aytoUsageFor a walkthrough of all ofayto's functionality, see thedemo notebook.fromaytoimportAYTOguys=["Albert","Bill","Carl"]girls=["Daisy","Emily","Faith"]season=AYTO(guys,girls)# "there are 6 possible scenarios"print(f"there are{season.num_scenarios}possible scenarios")# Al and Daisy go to the Truth Booth and get "NO MATCH"scenarios_left=season.apply_truth_booth("Albert","Daisy",False)# "4 scenarios remain"print(f"{scenarios_left}scenarios remain")# A matchup ceremony with 1 beamscenarios_left=season.apply_matchup_ceremony([("Albert","Emily"),("Bill","Daisy"),("Carl","Faith")],beams=1)# "2 scenarios remain"print(f"{scenarios_left}scenarios remain")print(season.probabilities)#         Albert  Billy  Carl# Daisy      0.0    0.5   0.5# Emily      0.5    0.0   0.5# Faith      0.5    0.5   0.0season.save("my_season")# ...later, to restore everything:loaded_season=AYTO.load("my_season")print(loaded_season.probabilities)#         Albert  Billy  Carl# Daisy      0.0    0.5   0.5# Emily      0.5    0.0   0.5# Faith      0.5    0.5   0.0
Package: ayuabtu
AllYourUnitAreBelongToUsInstallationpip install ayuabtuUsageCreating quantitiesCreate quantities with a given unit:>>> from ayuabtu.quantities import Length
>>> from ayuabtu.units import LengthUnit
>>> Length(2, LengthUnit.METER)
2 mOr you can use the unit specific factory methods:>>> from ayuabtu.quantities import Length
>>> Length.from_meters(2)
2 mYou can also access only the value with>>> from ayuabtu.quantities import Length
>>> Length.from_meters(2).value
2Converting unitsYou can convert a quantity to a quantity with another unit>>> from ayuabtu.quantities import Length
>>> from ayuabtu.units import LengthUnit
>>> distance_metric = Length.from_meters(2)
>>> distance_metric.to_unit(LengthUnit.FOOT)
6.561679790026246 ftIf you just need the numeric value of the quantity, but expressed in another
unit, use>>> from ayuabtu.quantities import Length
>>> from ayuabtu.units import LengthUnit
>>> distance_metric = Length.from_meters(2)
>>> distance_metric.as_unit(LengthUnit.FOOT)
6.561679790026246For this common usecase, there are also shorthand methods:>>> from ayuabtu.quantities import Length
>>> distance_metric = Length.from_meters(2)
>>> distance_metric.feet()
6.561679790026246Quantity arithmeticsComing soon ...Custom unitsComing soon ...
Package: ayuda
DescriptionCommand line program for save your notes and share between gitInstallpip install ayudaFor developmentpip3 install -e .For UpdatePre requisitospython3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twineUpdate commandspython3 setup.py sdist bdist_wheel
python3 -m twine upload --repository pypi dist/*
Package: ayv
youtube-wrapperOverviewA python library that wraps around the YouTube V3 API. You can use it find and manage YouTube resources including Videos, Playlists, Channels and Comments.The library is modelled afterGoogle's own documentation.RequirementsPython 3.10+Works on Linux, Windows, macOS, BSDInstallationpipinstallayvGet startedTo get started, you need a verified Google Account and Google API keys with the correct permissions.How to Get A Google API KeyFollow the instructions in this shortarticleto get an API key.To get a particular video using the videos' id:Create an instance of the YouTube API passing in the path to the downloaded client secret file:fromyoutubeimportYouTubeclient_secrets_file='/home/lyle/Downloads/secrets.json'youtube=YouTube(client_secrets_file)youtube.authenticate()Use the video id to find the video:video=youtube.find_video_by_id('rfscVS0vtbw')To find many videos using their id's:ids=['rfscVS0vtbw','TFa38ONq5PY']videos=youtube.find_videos(ids)To find the most popular videos in a given region e.g Kenya, pass in the region code:popular_kenyan_videos=youtube.find_most_popular_video_by_region('ke')To search for videos (this returns an iterator):query='Python programming'video_iterator=youtube.search_video('Python')videos=next(video_iterator)Documentation and TutorialsTo learn more about the library including the documentation and tutorials, check out thelibraries' documentation.How to ContributeTo contribute, chack out thecontribution guideline.LicenseThe API uses anMIT LicenseDeveloperLyle Okoth –@lylethedesigneron twitterlyle okothon mediumMy email islyceokoth@gmail.comHere is myGitHub ProfileYou can also find me onLinkedin
Package: ayx-blackbird
ayx-blackbird: Build fast tools, fast.What is it?ayx-blackbirdis a package for building new tools forAlteryx Designerin Python.Alteryx Designer is equipped with aPython SDK. This SDK is quite powerful, however it is convoluted and difficult to use for newcomers.ayx-blackbirdis an abstraction layer for the Python SDK that compromises on neither ease of use nor performance.Main FeaturesA suite of example tools to get you off the ground.CLI tools to set up your tool directory structure, assist with development, and packageYXIs.An extremely flexible development platform that by default, allows extremely fast development of new tools, and with small modifications, extremely fast performance.Where to get itThe source code is currently hosted on GitHub at:https://github.com/dme722/ayx-blackbirdBinary installers for the latest released version are available at the Python package index.pip install ayx_blackbirdDependenciesClickNumpyPandasxmltodictLicenseApache 2.0DocumentationThe official documentation is hosted on Github:https://github.com/dme722/ayx-blackbird/wikiContributingContributors are all welcome! Please see theContribution GuidelinesandCode of Conductbefore contributing.
Package: ayx-plugin-cli
Alteryx Plugin CLI (ayx-plugin-cli)OverviewThe AYX Plugin CLI is a command-line interface based on Typer, a tool that
helps you build and manage custom plugins for Alteryx Designer. This
top-level CLI oversees the creation and metadata of your plugins. It delegates
the tasks of creating and building YXIs.DisclaimerThe AYX Python SDK,AYX UI SDK,
andAYX Plugin CLIare intended for production use on Alteryx Product offerings.
The latest versions of these SDKs and CLIs require Designer version 2021.4 or later and Python 3.8.5+.
For more information go to developer.alteryx.com
Release Notes can be found here:https://help.alteryx.com/developer-help/ayx-python-sdk-release-notesLicensinghttps://www.alteryx.com/alteryx-sdk-and-api-license-agreement
Package: ayx-plugin-sdk
Alteryx Plugin SDK (ayx-plugin-sdk) for PythonOverviewThe Alteryx Plugin SDK can be used to extend the functionality of Alteryx Designer
by allowing developers to create custom tools/plugins.This package is currently in an alpha state of development, and the interfaces are
subject to change in subsequent releases.SupportCopyright 2020 Alteryx Inc.Permission 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.
Package: ayx-python-sdk
Alteryx Python SDK (ayx-python-sdk)OverviewThe Alteryx Python SDK can be used to extend the functionality of Alteryx Designer
by allowing developers to create custom tools/plugins.DisclaimerTheAYX Python SDK,AYX UI SDK,
and AYX Plugin CLI are intended for production use on Alteryx Product offerings.
The latest versions of these SDKs and CLIs require Designer version 2021.4 or later and Python 3.8.5+.
For more information go to developer.alteryx.com
Release Notes can be found here:https://help.alteryx.com/developer-help/ayx-python-sdk-release-notesLicensinghttps://www.alteryx.com/alteryx-sdk-and-api-license-agreement
Package: aza-api
aza_apiApi to fetch data from Avanza website.Package use chromedriver in order to render the Javascript from the page.Idea for the user:
Incorporate this package in a webapp with a REST api.
The data may then be fetched fully in Google slides.RequirementsInstallationPippip install aza_api  # Installing
pip install aza_api -U  # Upgrading already installed packageCondaconda install -c aza_apiUsageTheget_aza_fundamentalsmethod returns a pandas row.
Thus, it is easy to just append multiple stocks (tickers) to create a convenient dataframe.from aza_api.aza_api import get_aza_fundamentals
df = get_aza_fundamentals("CAST.ST")  # Castellum

print(df.T)

>>>

                               0
kortnamn                 CAST.ST
dividend_yield            0.0284
antal_aktier       84012900000.0
pe_ratio                    8.29
eps                         29.3
market_cap         84012900000.0
dividend/earnings            NaN
ncavps                       0.0
net_cash_ps                  0.0
price_book                     0
latest                     244.6DevelopmentWhile in root of this project.pip install -e .This will install the package in editable mode.Testingpytest tests/ -sPush project to Pip (PyPi) and CondaPyPihttps://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56Run in rootpython setup.py sdist
twine upload dist/*
Package: az-account-switcher
Switch Azure subscriptionsTypeBadgeWorkflowLatestActivityDeepSourceProblem: Switching subscriptions using theAzure CLIinvolves too much typing.# Type a lot...azaccountlist--outputtable# Use mouse to select the subscription-id in the console# Use ctrl-c to copy the text, this might be optional# Type a lot...azaccountset--subscription-id<pastesubscription-id>Solution: I simplified this task with the command-line utilityaz-switch! The active subscription is bold and green and selected as default argument. Just select the subscription you want to activate.Installpip install az-account-switcherUsageUsage:az-switch[OPTIONS]ShowallAzureSubscriptionsincurrentprofileusingthe`az`command-lineutility.Askuserinputforswitchingtoanothersubscription.

Options:-nINTEGERSwitchtothissubscriptionnumberdirectly.-v,--verboseVerbose:echotheazure-clicommands.-h,--helpShowthismessageandexit.ExampleCHANGELOGv1.4.0 (28-12-2023):Removedaz.cliwithazure-clidependencies in favor subprocess call to have a small installation. Assumingazin on your PATH.Drop Python 3.7 support, due to minimal version supported by (dev) dependencycommitizen.Switch topoetryfor dependency management.v1.3.0 (25-02-2022):Fixed:issue-8NotImplementedErrorby removing deprecatedget_azure_cli_credentialsinPR-6.Speed-up switchingby removing the online interaction pulling the Subscriptions through the Azure-CLI.PR-7Add--verboseflag as an alias to the-vflag.v1.2.0 (31-05-2021):Support Windows by changing interaction with Azure-CLI using Python package 'az.cli' instead of POpenDrop Python 3.6 support, due to dependent package 'az.cli'Unit tests running on latest versions of Unix, Windows and MacOsDepend onazure-cliinstead ofazure-cli-coreto auto includepackagingto fixissue-3v1.1.0 (04-05-2021):Don't switch when same subscription is selected.Add-vverbose flag to print Azure-CLI sub-commands.Add-has alias for--helpThanks to @tqorange for contributing.v1.0.0 (08-04-2021):Include Python 3.6, not only greater than.Add DeepSource code checker and resolve found issue (related to shell=true)Add aliases for command-line next to az-switch: + az-account-switch + az-account-switcher(the package name)Dump to v1.0.0, since it's working fine for a while and looks better!v0.0.6 (25-03-2021):Add support for disabled subscriptions.
Package: azaka
we are back!!LINKSWELCOME!FEATURESINSTALLATIONUSAGEDOCUMENTATION & TUTORIALTHANKSWELCOME!Welcome to Azaka, a work-in-progress asynchronous and thin API Wrapper around thevisual novel databasewritten in python.FEATURESFully Asynchronous- The library supports Async. communication and other jobs.Clean and Expressive- Azaka's syntax is
really clean and expressive with SQL like querying.Well Typehinted & Tested- Everything in the library is properly typehinted and checked with strict mypy type checking strategy. However there are few exceptions ;)INSTALLATIONYou can install Azaka using pip.soonUSAGEExample of getting some basic VN data.importasynciofromazakaimportClient,Node,selectquery=(select("title","image.url").frm("vn").where(Node("id")=="v17"))asyncdefmain()->None:asyncwithClient()asclient:resp=awaitclient.execute(query=query)vn=resp.results[0]print(vn.id,vn.title,vn.image["url"],sep="\n")asyncio.run(main())DOCUMENTATION & TUTORIALDocumentation will be available soon.THANKSThank you for your visit :)
Package: azalea
Azaleaplaying to learn to playAzalea is a reinterpretation of theAlphaZero game AIlearning algorithm for theHex board game.FeaturesStraightforward reimplementation of the AlphaZero algorithm except
for MCTS parallelization (see below)Pre-trained model for Hex board gameFast MCTS implementation through Numba JIT acceleration.Fast Hex game move generation implementation through Numba.Parallelized self play to saturate Nvidia V100 GPU during trainingAI policy evaluation through round robin tournament, also parallelizedTested on Ubuntu 16.04Requires Python 3.6 and PyTorch 0.4Differences to published AlphaZeroSingle GPU implementation only - tested on Nvidia V100, with 8 CPU's
for move generation and MCTS, and 1 GPU for the policy network.Only Hex game is implemented, though the code supports adding more
games. Two components are needed for a new game: move generator and
policy network, with board input and moves output adjusted to the
new game.MCTS simulations are not run in parallel threads, but instead,
self-play games are played in parallel processes. This is to avoid
the need for a multi-threaded MCTS implementation while still
maintaining fast training speed and saturating the GPU.MCTS simulation and board evaluations are batched according tosearch_batch_sizeconfig parameter. "Virtual loss" is used
as in AlphaZero, to increase search diversity.InstallationClone the repository and install dependencies with Conda:git clone https://github.com/jseppanen/azalea.git
conda env create -n azalea
source activate azaleaThe defaultenvironment.ymlinstalls GPU packages but you can chooseenvironment-cpu.ymlfor testing on a laptop.Playing against pretrained modelpython play.py models/hex11-20180712-3362.policy.pthThis will load the model and start playing, asking for your move. The
columns are labeled a–k and rows 1–11. The first player, playingX's,
is trying to draw a vertical connected path through the board, while the
second player, withO's, is drawing a horizontal path.O O O O X . . . . . . 
 . . . . . . . . . . . 
  . . . . . . . . . . . 
   . . . . X . . . . . . 
    . . . . . X . . . . . 
     . . . . . . . . . . . 
      . . . . X . . . . . . 
       . . . . . . . . . . . 
        . . . X . . . . . . . 
  x      . . . . . . . . . . . 
 o\\      . . . . . . . . . . . 
last move: e1
Your move?Model trainingpython train.py --config config/hex11_train_config.yml --rundir runs/trainModel comparisonpython compare.py --config config/hex11_eval_config.yml --rundir runs/compare <mode1> <model2> [model3] ...Model selectionpython tune.pyReferencesMastering the Game of Go without Human KnowledgeMastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm
Package: azapi
azapiA fast and secure API for AZLyrics.com to get lyrics easily :)FeaturesGet artist's songs list with Album, Year ...etcCan get results via Google* and Duckduckgo* for accurate results.Save lyrics in a .txt file or any format you like.Avoid BAN using proxy** and multiple user agents.Installationazapirequires Python 3.Usepipto install the package from PyPI:pipinstallazapiOr, install the latest version of the package from GitHub:pipinstallgit+https://github.com/elmoiv/azapi.gitUsageimportazapiAPI=azapi.AZlyrics('google',accuracy=0.5)API.artist='Tylor Swft'API.title='Bad Blods'API.getLyrics(save=True,ext='lrc')print(API.lyrics)# Correct Artist and Title are updated from webpageprint(API.title,API.artist)TestsHere are a few sample tests:Getting lyricsGetting lyrics (Custom Path)Getting songs listDownloading lyrics from a listGet Lyrics by title onlyUsing search engine with titlesUsing search engine with mistyped title and artistChangelogv3.0.7 03-01-2022#6[Re-Fixed] Single albums return relative urls.v3.0.6 12-02-2021#11Fixed proxy not used properly.v3.0.5 26-09-2020#10Fixed one-liner lyrics can't be retrieved.Direct lyrics URLs can now be passed without artist or title.Fixed minor bugs.v3.0.4 22-08-2020#9Update title and artist attributes with exact values from AZLyrics.com.Fixed minor bugs.v3.0.3 13-08-2020#8FixedgetSongsnot returning all songs.v3.0.2 25-07-2020#7Added the ability to use custom path withgetLyrics.Addedself.lyricsandself.songsto store last call.Addedself.lyrics_historythat stores all fetched lyrics.v3.0.1 07-07-2020#6Fixed single albums return relative urls.v3.0.0 15-06-2020Project re-done from scratch.Added the ability to use search engines.Fixed unicode issue with non-english lyrics.Fixed songs list not working for artists with single album.Removed search as it's no longer needed.Fixed NoneType bugs.v2.1.0 18-10-2019Added search feature togetSongsandgetLyrics.You can use search albums, songs and artists.v2.0.1 11-09-2019First ReleaseStargazers over timeContributingPlease contribute! If you want to fix a bug, suggest improvements, or add new features to the project, justopen an issueor send me a pull request.*It is adviced not to send too many requests to avoid IP ban by search engines.**Proxy is set by the user, defult is empty.
Package: azblob
Azure BlobOne-line CLI to download from Azure blob storage. Supports private blobs.InstallationTo install:$ pip install azblobCLIDownload blob (and authentication illustration)Anonymousaccess, account name from command line$ azblob -n account_url download my_container my_blobwhereaccount_urlis e.g.https://<storage name>.blob.core.windows.netAnonymousaccess, account name from environment$ export AZBLOB_ACCOUNTNAME=account_url
$ azblob download my_container my_blobPrivatecontainer, credentials from command line$ azblob -n account_url -k my_key download my_container my_blobPrivatecontainer, credentials from environment$ export AZBLOB_ACCOUNTNAME=account_url
$ export AZBLOB_ACCOUNTKEY=my_key
$ azblob download my_container my_blobList blobsSame authentication mechanism. List blobs inmy_containerazblob list my_containerand, as always$ azblob -h
$ azblob download -h
$ azblob list -h
Package: azcam
AzCamAzCam is a software framework for the acquisition and analysis of image data from scientific imaging systems as well as the control of instrumentation. It is intended to be customized for specific hardware, observational, and data reduction requirements.AzCam is based on the concept oftoolswhich are the interfaces to both hardware and software code.  Examples of tools areinstrumentwhich controls instrument hardware,telescopewhich interfaces to a telescope,linearitywhich acquires and analyzes images to determine sensor linearity, andexposurewhich controls a scientific observation by interfacing with a variety of other tools. As an example, theexposuretool may move a telescope and multiple filter wheels, control a camera shutter, operate the camera by taking an exposure, display the resultant image, and begin data reduction of that image.AzCam is not appropriate for consumer-level cameras and is not intended to have a common API across all systems. It's primary design principle is to allow interfacing to a wide variety of custom instrumentation which is required to acquire and analyze scientific image data.Theazcampackage currently supports Astronomical Research Cameras, Inc. Gen3, Gen2, and Gen1 CCD controllers, Magellan Guider controllers, STA Archon controllers, and CMOS cameras using ASCOM. It also supports some temperature contorollers, telecopes, and image displays.Seeazcam-toolfor a common extension package which implements a GUI used by many observers.DocumentationSeehttps://azcam.readthedocs.io.See alsohttps://github.com/mplesser/azcam-tool.gitfor the standard GUI used by most telescope observers.Installationpip install azcamOr download the latest version from from github:https://github.com/mplesser/azcam.git.You may need to installpython3-tkon Linux systems [sudo apt-get install python3-tk].Configuration and startupAnazcamserverprocess is really only useful with a customized configuration script and environment which defines the hardware to be controlled.  Configuration scripts from existing environments may be used as examples. They would be imported into a python or IPython session or uses a startup script such to create a new server or console application.An example code snippet to startazcamserverwhen using theazcam-itl environmentis:# server-side (azcamserver)importazcamimportazcam_itl.serverinstrument=azcam.db.tools["instrument"]exposure=azcam.db.tools["exposure"]instrument.set_wavelength(450)wavelength=instrument.get_wavelength()print(f"Current wavelength is{wavelength}")exposure.expose(2.,'flat',"a 450 nm flat field image")