Saravanan666/pypi-org huggingface dataset:
Package: playsound
Pure Python, cross platform, single function module with no dependencies for playing sounds.InstallationInstall via pip:$pipinstallplaysoundDone.If you insist on the (slightly) harder way of installing, from source,
you know how to do it already and don’t need my help.The latest version of the source code can be found at:https://github.com/TaylorSMarks/playsoundQuick StartOnce you’ve installed, you can really quickly verified that it works with just this:>>>fromplaysoundimportplaysound>>>playsound('/path/to/a/sound/file/you/want/to/play.mp3')DocumentationThe playsound module contains only one thing - the function (also named) playsound.It requires one argument - the path to the file with the sound you’d like to play. This may be a local file, or a URL.There’s an optional second argument, block, which is set to True by default. Setting it to False makes the function run asynchronously.On Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to work. Other file formats may work as well.On OS X, uses AppKit.NSSound. WAVE and MP3 have been tested and are known to work. In general, anything QuickTime can play, playsound should be able to play, for OS X.On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.If you’d like other Linux distros (or any other OS) to work, submit a PR adding in support for it, but please make sure it passes the tests (see below).TestingPlaysound includes a small set of tests - if you’re making a PR, please ensure that you have no regressions and all the tests pass on your local system.
Also make sure that Travis-CI, which runs these tests against Windows Server 2016, macOS 10.11 (El Capitan, 2015) and 11.3 (Big Sur, 2020), Ubuntu 14 (Trusty), and Ubuntu 18 (Bionic), for both Python 2.7 and 3.9, fully passes.
You can check the Travis-CI status for Playsound here:https://travis-ci.com/github/TaylorSMarks/playsound/buildsCopyrightThis software is Copyright (c) 2021 Taylor Marks <taylor@marksfam.com>.See the bundled LICENSE file for more information.
Package: playsound2
Pure Python, cross platform, single function module with no dependencies for playing sounds.InstallationInstall via pip:$pipinstallplaysoundDone.If you insist on the (slightly) harder way of installing, from source,
you know how to do it already and don’t need my help.The latest version of the source code can be found at:https://github.com/TaylorSMarks/playsoundQuick StartOnce you’ve installed, you can really quickly verified that it works with just this:>>>fromplaysoundimportplaysound>>>playsound('/path/to/a/sound/file/you/want/to/play.mp3')DocumentationThe playsound module contains only one thing - the function (also named) playsound.It requires one argument - the path to the file with the sound you’d like to play. This may be a local file, or a URL.There’s an optional second argument, block, which is set to True by default. Setting it to False makes the function run asynchronously.On Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to work. Other file formats may work as well.On OS X, uses AppKit.NSSound. WAVE and MP3 have been tested and are known to work. In general, anything QuickTime can play, playsound should be able to play, for OS X.On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.If you’d like other Linux distros (or any other OS) to work, submit a PR adding in support for it, but please make sure it passes the tests (see below).TestingPlaysound includes a small set of tests - if you’re making a PR, please ensure that you have no regressions and all the tests pass on your local system.
Also make sure that Travis-CI, which runs these tests against Windows Server 2016, macOS 10.11 (El Capitan, 2015) and 11.3 (Big Sur, 2020), Ubuntu 14 (Trusty), and Ubuntu 18 (Bionic), for both Python 2.7 and 3.9, fully passes.
You can check the Travis-CI status for Playsound here:https://travis-ci.com/github/TaylorSMarks/playsound/buildsCopyrightThis software is Copyright (c) 2021 Taylor Marks <taylor@marksfam.com>.See the bundled LICENSE file for more information.
Package: play-sounds
🔊 Play sounds in Python scriptsplay_soundsprovides a simple cross-platform API to play sounds in Python scripts. It includes asynchronous APIand an equivalentasynchronous APIthat is compatible withasyncioandtrio.For code examples, you can check outonholdandding, or scroll down to theUsage section.Whyplay_sounds?boomboxis great and 90% of the way there, however it is limited to only playing WAV files on Windows.playsoundwill play other formats than WAV on Windows, but it requires GStreamer andPyGObjectbindings on Linux, whileboomboxhas several playback backends for Linux other than, and including, GStreamer.Neitherboomboxorplaysoundprovideasyncioandasync/awaitcompatible APIs, butplay_soundsdoes.If you're targeting multiple desktop platforms and don't want to get mired down in the details of when and where to useplaysoundorboombox, or if your project usesasync/await, you can just reach forplay_soundsand call it a day.Installation$python3-mpipinstallplay_soundsUsageThis library usespathlib.Pathobjects when pointing to filenames and paths. It can useaiopath.AsyncPathobjects, too.There's a synchronous API and anasynchronous APIthat you can use with theasync/awaitsyntax andasyncio.Synchronous APIPlay a filefromplay_soundsimportplay_file,DEFAULT_SONGplay_file(DEFAULT_SONG)# blocks by default# play without blockingplay_file(DEFAULT_SONG,block=False)Play while work completesfromtimeimportsleepfromplay_soundsimportplay_while_running,DEFAULT_SONGWAIT:int=60withplay_while_running(DEFAULT_SONG):sleep(WAIT)Play a file after work completesfromtimeimportsleepfromplay_soundsimportplay_after,DEFAULT_SOUNDwithplay_after(DEFAULT_SOUND):# blocks by defaultsleep(WAIT)# play without blockingwithplay_after(DEFAULT_SOUND,block=False):sleep(WAIT)Ring theterminal bellfromplay_soundsimportbell,bell_after# play bellbell()# ensure the bell is played even if an exception is thrownwithbell_after():raiseException("Bye")Asynchronous APITo run the following examples with top-levelawaitexpressions,launch an asynchronous Python REPLusingpython3 -m asyncioor anIPython shell.Play a filefromplay_soundsimportplay_file_async,DEFAULT_SONGawaitplay_file_async(DEFAULT_SONG)# blocks by default# play without blockingawaitplay_file_async(DEFAULT_SONG,block=False)Play while work completesfromasyncioimportsleepfromplay_soundsimportplay_while_running_async,DEFAULT_SONGasyncwithplay_while_running_async(DEFAULT_SONG):awaitsleep(WAIT)Play a file after work completesfromasyncioimportsleepfromplay_soundsimportplay_after_async,DEFAULT_SOUNDasyncwithplay_after_async(DEFAULT_SOUND):# blocks by defaultawaitsleep(WAIT)# play without blockingasyncwithplay_after_async(DEFAULT_SOUND,block=False):awaitsleep(WAIT)SupportWant to support this project andother open-source projectslike it?CopyrightSeeCREDIT.md.LicenseSeeLICENSE.
Package: playsoundsimple-py
playsoundsimple.pyDescriptionLibrary for working with sound files of the format:MP3,WAV,OGG,FLAC,MIDI.Installationpip install playsoundsimple.pyAbout MIDI supportIn order to play MIDI files you need to install FluidSynth:Windows:ReleasesDownloada zip file suitable for your version of Windows.Unpack the archiveanywhere,but it is recommended to put it in a folderC:\Program Files\FluidSynthNext, openSettings>System>About the system>Additional system parameters>Environment variables>[Double click on Path]>Create>[Enter the full path to the folder with FluidSynth]That's it, FluidSynth is installed!Linux:Ubuntu/Debian:sudoapt-getinstallfluidsynthArch Linux:sudopacman-SfluidsynthMacOSWithFink:finkinstallfluidsynthWithHomebrew:brewinstallfluidsynthWithMacPorts:sudoportinstallfluidsynthMoreimport playsoundsimple as pss

s = pss.Sound("main.wav")
s.play()
s.wait()AuthorRoman SlabickyVkontakteGitHub
Package: play-sql
play sqlpytest-play support for SQL expressions and assertionsMore info and examples on:pytest-play, documentationcookiecutter-qa, seepytest-playin action with a working example if you want to start hackingFeaturesThis project defines a newpytest-playcommand:- type: sql
  provider: play_sql
  database_url: postgresql://$db_user:$db_pwd@$db_host/$db_name
  query: SELECT id, title FROM invoices
  variable: invoice_id
  variable_expression: results.first()[0]
  assertion: invoice_id == $invoice_idwhere:database_urlfollows the format describedhttp://docs.sqlalchemy.org/en/latest/core/engines.html#database-urlsvariable_expressionis a Python expressionresults.fetchone()returns an array whose elements matches with the next row’s
columns and it could be invoked many times until there will be no more rows (eg: first call(1,'first',), second call(2, 'second'))results.first()returns an array whose elements matches with the first row’s colums and it
can be invoked exactly one timeresults.fetchall()returns an array of tuples whose elements matches with the selected
colums (eg:[(1,'first'),(2,'second'),(3,'third')])Twitterpytest-playtweets happens here:@davidemoroCreditsThis package was created withCookiecutterand thecookiecutter-play-plugin(based onaudreyr/cookiecutter-pypackageproject template).CHANGES0.0.3 (2019-01-25)Supports new pytest-play >= 2.0 YAML based syntax (json no more supported)0.0.2 (2018-01-22)No more depends on play_python (deprecated)0.0.1 (2018-01-11)First release
Package: playstoreapi
Google Play Store Python APIThis project is fork ofgoogleplay-api.
It contains an unofficial API for google play interactions.This fork was created to have a better base for thegplaycrawler.The code was updated with the following changes:add (anonymous) login via token dispenseradd login via environment variablesupdated protobuf and device configuration (they are now the same as theGPlayApifrom AuroraOSS)remove python2 supportraise exceptions for bad HTTP status codesadd possibility to use a delay between requestsadd streamDetails (used for related apps)add support for next pages to search and streamDetailsSetupInstall playstoreapi using pip:$pipinstallplaystoreapiOr clone the repo and run:$pythonsetup.pybuildUsageCheck scripts intestandexamplesdirectory for more examples on how to use this API.fromplaystoreapi.googleplayimportGooglePlayAPImail='mymail@google.com'passwd='mypasswd'api=GooglePlayAPI('en_GB','Europe/London')api.login(email=mail,password=passwd)print(f'authSubToken:{api.authSubToken}gsfId:{api.gsfId}')result=api.search('firefox')fordocinresult:if'id'indoc:print('doc:{}'.format(doc['id']))forclusterindoc['subItem']:print('\tcluster:{}'.format(cluster['id']))forappincluster['subItem']:print('\t\tapp:{}'.format(app['id']))For first time logins, you should only provide email and password.
The module will take care of initalizing the api, upload device information
to the google account you supplied, and retrieving
a Google Service Framework ID (which, from now on, will be the android ID of your fake device).For the next logins youshouldsave the gsfId and the authSubToken, and provide them as parameters
to the login function or set them as environement variables. If you login again with email and password,
this is the equivalent of re-initalizing your android device with a google account, invalidating previous gsfId and authSubToken.Environment variables# for envLogin()exportPLAYSTORE_TOKEN='ya29.fooooo'exportPLAYSTORE_GSFID='1234567891234567890'exportPLAYSTORE_DISPENSER_URL='http://goolag.store:1337/api/auth'# requestsexportHTTP_PROXY='http://localhost:8080'exportHTTPS_PROXY='http://localhost:8080'exportCURL_CA_BUNDLE='/usr/local/myproxy_info/cacert.pem'
Package: play-store-scrapper
Play Store ScrapperUsing this package you can easily scrap data from Google Play Store.Installationpip install play-store-scrapperEnvironment VariablesSet the following Environment variables before running.GECKO_DRIVER_PATHPath to Gecko Web Driver  (You also need Firefox to run this. For now no other browser option is added)Usagefromplay_store_scapperimportPlayStorestore=PlayStore()# Get Dict containing list of categories for 'apps' and 'games' separatelyall_categories=store.get_categories()# Each category in 'apps' or 'games' is a dict containing 'slug' and 'label' for that categoryapps_in_category_0=get_apps_in_category(all_categories['apps'][0]['slug'])# Fetch App Details using the Google Play Store Id of the appstore.get_app_detail("com.cstayyab.beemy")
Package: playstvrecovery
Plays.tv RecoveryA simple tool to recover deleted Plays.tv clips. Plays.tv was shut down on December 15, 2019. Approximately 1/10 of the content was saved and archived by thePlays TV Archive team. Being made available through theWayback Machine. This simple tool queries the archive for a given username. Given an archive copy is available, it queries for all available videos and attempts to download them in the highest resolution available.Installation & UsageInstall the packagepip install playstvrecoveryCall the package from the shellplaystvrec --user=USERNAME --output-path=EXISTING_DIR
Package: play-takeout-to-plex
Google Play Music Takeout to PlexA tool for restructuring Google Play Music Takeout to a plex (and human)-friendly format.This tool comes with zero garuntees. I recommend testing on a small subset of audio files before attempting it on a full takeout library.The first step of the tool scrapes all of the google play CSV files and turns them in to one main csv. This will be output even during dry run, and can be used on its own in this way.Usagepython takeout_converter.py--takeout-tracks-directory'google_extract/Takeout/Google Play Music/Tracks/'OptionsOptionsnametyperequireddescription-i/–takeout-tracks-directorystringyesthe directory containing extracted takeout files (audio files and csv filesdry-runany valuenoskip actually operating on files if anything is passed. Will still output the main-csv file.move-filesany valuenomoves files instead of copying them. Useful if you have limited space.main-csvstringnofilepath to a csv that combines all play takeout files. Mostly for debugging. CSV that can be used here is output by the program.output-directorystringnoDirectory to which to move or copy the audio files. defaults to ‘out’OutputThe tool scrapes the google play music CSVs and the audio files’ metadata.Actual metadata is prioritized, but if metadata is missing but is present in the CSV (artist, album, track name), it will be added to the audio file.Files are then moved to directories underneathout, or the suppliedtakeout-tracks-directorylocation.The directory structure followsPlex music directory and file naming.Based on play csvs and file metadata, they will be structured to be:ArtistName/AlbumName/TrackNumber - TrackName.ext
Package: playtest
PyPlaytestA library for implementing framework to do virtual playtesting for
boardgames.Provide basic components to make it easy to create new prototypesWraps an API around the game you created to integrate withOpenAI gymor a default integration harness.A Quick DemoTo see a demo of this game, clone this repo and run:pipenv install
PYTHONPATH=. pipenv shell example/play.pyAnd you will be able to use our interactive harness to play the game.📢: Resetting game.

📢: Start of next round!

📢: Player 0 - it is your turn!

📢: Let's see your two card.

🤔: How much you want to bet?

Player 0 taking action...
{'discarded': [],
 'others': [{'bank': 10, 'bet': 0}],
 'self': {'bank': 10, 'bet': 0, 'hand': ['7h', '7s']}}
👀 Please enter action ([bet(0->10)]):And you can continue playing the prototype.You can observe the code that generates the game (in a few lines of python!)
inpt-blackjack/game.py.Creating the AIExperimental feature: this is a very basic generic game AI that we built!In play testing a game, one enemy is the problem with context switching between
different players. This makes it hard to understand your design from player's
prospective. This allows us to train a simple AI that is useful for testing the
game.To create the bot, do:PYTHONPATH=. pipenv shell example/train.pyWhich will then output the bot to the a weight file (<bot>.h5f) folder. You can then
play against the bot by doing:PYTHONPATH=. pipenv shell example/play.py --aiWhich then you can start the game against the AI from the loaded AI weight file.Getting startedTo get started, read the docs athere.pip install playtestThen can justimport playtestand get started in creating your prototype.
Package: play-video
PlayWhat is it?Play is a video player for the terminal. You can play videos from your computer running Play.How to install?Play is a python package. You can install it with the following command:$ pip install play-videoHow to use it?Play uses a command line interface:$ play <video> <video> <video> ...Example:$ play ~/Videos/video.mp4 ~/Videos/video2.mp4The videohttps://www.youtube.com/watch?v=u_jJkkxeE30will be reproduced as:
Package: playwbot
playwbotPlaywright-pythonwrapper forRobotFramework.InstallationFrom the repositoryclone the repoeasiest way is to usepoetryand runpoetry installand thenpoetry shellto be able to run the tests, install the package for the development bypython setup.py developRF tests are run by standard commandrobot <path>From the Pypiif using poetry, runpoetry add playwbotand thenpoetry installif using pip, runpip install playwbotImporting module into the RF suiteif you have the file directly accesible, just point directly to the location, like thisLibrary    /some/path/to/the/library/Playwbot.py    browser=<chromium|firefox|webkit>if you installed it from Pypi, then import it like thisLibrary    playwbot.Playwbot    browser=<chromium|firefox|webkit>RobotFramework-style documentationIs available herehttps://radekbednarik.github.io/playwbot/
Package: play-websocket
play websocketpytest-play support for websocketsMore info and examples on:pytest-play, documentationcookiecutter-qa, seepytest-playin action with a working example if you want to start hackingFeaturesThis project defines newpytest-playcommands.Connect- type: connect
  provider: play_websocket
  options:
    url: wss://echo.websocket.org/
    timeout: 2Send- type: send
  provider: play_websocket
  url: wss://echo.websocket.org/
  payload: Hello!Receive- type: recv
  provider: play_websocket
  url: wss://echo.websocket.org/
  variable: data
  variable_expression: response.upper()
  assertion: data == 'HELLO!'
  timeout: 10Receive untilIf you want to filter the data returned by the websocked
until you get what you expect:- provider: python
  type: wait_until
  expression: variables['data'] == 'HELLO!'
  timeout: 60
  poll: 0
  sub_commands:
  - type: recv
    provider: play_websocket
    url: wss://echo.websocket.org/
    variable: data
    variable_expression: response.upper()
    timeout: 60Twitterpytest-playtweets happens here:@davidemoroCreditsThis package was created withCookiecutterand thecookiecutter-play-plugin(based onaudreyr/cookiecutter-pypackageproject template).CHANGES0.0.2 (2019-01-25)Supports new pytest-play >= 2.0 YAML based syntax (json no more supported)0.0.1 (2018-01-25)First release.
Package: playwithML
PLAY WITH ML (An Intuitive way of implementing ML models).IndexDemoOverviewInstallationDirectory TreeUsageDeployement on HerokuBug / Feature RequestTechnologies UsedTeamLicenseDemoLink:http://playwithml.herokuapp.com/OverviewThis is a intuitive way of implementing Machine Learning models without writing even a single line of code.This is a supervised Machine Learning based Project in which you can Upload a Dataset of your choice,View the Charts and Bar graphs related to the Dataset,Select the type of model (Classification or Regression),Select which model to train on,Click on the TRAIN button,Finally get the Scores, Code and Report for your Model :)InstallationThe Code is written in Python 3.7. If you don't have Python installed you can find
ithere.
If you are using a lower version of Python you can upgrade using the pip package,
ensuring you have the latest version of pip.
To install the required packages and libraries, run this command in the project
directory:gitclonehttps://github.com/mystery2828/playwithML.git
pipinstall-rrequirements.txtDirectory Treeâ”‚   app.py
â”‚   classification.py
â”‚   LICENSE
â”‚   Procfile
â”‚   readme.txt
â”‚   regressor.py
â”‚   requirements.txt
â”‚   setup.sh
â”‚
â”œâ”€â”€â”€datasets
â”‚       abalone.csv
â”‚       Admission_Predict.csv
â”‚       ionosphere.csv
â”‚       iris.csv
â”‚       Placement_Data_Full_Class.csv
â”‚       pulse.xlsx
â”‚       sonar.csv
â”‚       winequality.csvUsagestreamlitrunapp.pyDeployement on Herokugitinit
gitadd.
gitcommit-m"< commit message >"gitpush
gitpushherokumasterBug / Feature RequestIf you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issuehereby including your search query and the expected result.Technologies UsedTeamAkash C-Ashwin SharmaLicenseCopyright 2020 Akash CLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: playwithmpv
PlayWithMpvA server to support playing videos with mpv. Currently this project mainly
supports for  bilibili.com based on Tampermonkey-scriptBilibili-Evolved(version2.1.3)You can also read theplaywithmpv文档in the ReadtheDocs.PreparationInstallMPVorMPV-lazy(If you're newer, strongly recommend MPV-lazy.)Install Tampermonkey-scripBilibili-Evolved(version2.1.3)Add “下载视频” 组件 inBilibili-EvolvedAdd “下载视频 - MPV 播放支持（列表）” 插件 inBilibili-EvolvedInstallPython3(>=3.8)InstallationJust runpip install playwithmpv --userUsageopen the terminal, runplaywithmpvto start the server.On Bilibili-Evolved:打开下载视频格式选flv(如若不可用，先选其他格式，再选回来)输出方式选MPV播放若mpv 命令路径已加入环境变量, 默认设置就好，不用更改Click开始and enjoy.AutostartLinux: copy the script to~/.config/autostartMacOs:methodWindows:methodBTWIf you are interest in watching bangumi with MPV, could see:A High-Quality Real Time Upscaler for Anime VideoMPV FOR ANIMEMPV-lazy小站How Do I Get The Best SVP4 Settings?Why use MPV?
BTW, I think MPV is a so strong and free tool that can be easily for stream vidoes,
user shaders and movement enhacement etc.
The last one using SVP4 as movement enhacement, if you config SVP as the article said and make it work.
Congratulation, a new world is there.Wooss.
Package: playwright
🎭Playwrightfor PythonPlaywright is a Python library to automateChromium,FirefoxandWebKitbrowsers with a single API. Playwright delivers automation that isever-green,capable,reliableandfast.See how Playwright is better.LinuxmacOSWindowsChromium 121.0.6167.57✅✅✅WebKit 17.4✅✅✅Firefox 121.0✅✅✅Documentationhttps://playwright.dev/python/docs/introAPI Referencehttps://playwright.dev/python/docs/api/class-playwrightExamplefromplaywright.sync_apiimportsync_playwrightwithsync_playwright()asp:forbrowser_typein[p.chromium,p.firefox,p.webkit]:browser=browser_type.launch()page=browser.new_page()page.goto('http://playwright.dev')page.screenshot(path=f'example-{browser_type.name}.png')browser.close()importasynciofromplaywright.async_apiimportasync_playwrightasyncdefmain():asyncwithasync_playwright()asp:forbrowser_typein[p.chromium,p.firefox,p.webkit]:browser=awaitbrowser_type.launch()page=awaitbrowser.new_page()awaitpage.goto('http://playwright.dev')awaitpage.screenshot(path=f'example-{browser_type.name}.png')awaitbrowser.close()asyncio.run(main())Other languagesMore comfortable in another programming language?Playwrightis also available inNode.js (JavaScript / TypeScript),.NET,Java.