Saravanan666/pypi-org huggingface dataset:
Package: playlist-stitcher
YouTube Playlist Downloader & StitcherA command-line tool that allows you to download all videos in a YouTube playlist and stitch them together into a single video.DependenciesFFmpegMacOSbrewupdate
brewupgrade
brewinstallffmpegInstallationYou can install playlist-stitcher directly from PyPI:pipinstallplaylist-stitcherUsageAfter installation, you can use the tool directly from your shell:playlist-stitcherstitch"PLAYLIST_URL"Replace PLAYLIST_URL with the URL of the YouTube playlist you want to download and stitch.How does it workDownloads all videos in a YouTube playlistStitches downloaded videos into a single videoDeletes the individual videosFeaturesEasy to install and useContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Making changesFeel free to use the makefile + Docker workflow that is providedmake container: builds and runs the docker containermake run: runs an existing built containermake build: builds the cli and installs itplaylist-stitcher: command to run the CLI after building it with make buildLicenseLicense
Package: playlist-sync
Playlist-syncplaylist-syncis a little command line tool to download and sync playlists from Deezer or Spotify to predefined folders. It reads playlists links and target folders from a JSON file.It usesdeemixunder the hood to actually download the playlists.What you will needPython >= 3.8 with pip (untested on earlier versions of Python)A Deeezer account. Sincedeemixdownloads songs from Deezer, it uses your Deezer account to access Deezer servers and download music. So even if you only want to download Spotify playlists, you willneedto have a Deezer account. Note that to download 320kbps MP3 or FLAC, you will need a Deezer Premium account. A free Deezer account only allow to download 128kbps MP3.A Spotify account if you want to download playlists from Spotify.InstallationPlaylist-sync can be installed withpipfromPyPI:pip install playlist-syncThe pip package adds theplaylist-synccommand to the command line.How to setup and usePlaylist-sync relies on two files,config.jsonandplaylists.json, which must exist in the current working directory.config.jsoncontains some general settings (Deezer ARL, Spotify API token, bitrate...), andplaylists.jsoncontains the links to your playlists as well as the target folders where you want them to be downloaded.playlist-synccan create templates for these two files so you only need to fill them. In your music library folder (where you want your playlists to be downloaded), run:playlist-sync initIt will create the 2 json files. Fill them both as explained in the wiki,hereandhere.
Once you've filled theconfig.jsonfile with your Deezer ARL (and Spotify API client ID and secret if you want to download Spotify playlists) and theplaylists.jsonfile with your playlists links, to download them all at once in the desired folders, simply run:playlist-sync syncHow to install and use easily on WindowsIf you don't have it installed already, download and installPython. During installation, make sure to choose to update the PATH environment variable.Open the command prompt (search for "cmd" in the search bar) and typepip install --user playlist-syncDownload the 2 scripts in thewindows_scriptsfolder in this repo, and put them in your music library folderDouble click onplaylist-sync_init.cmd. It will create two json files,config.jsonandplaylists.json, in the same folder.Fill the two json files as describedhereandhere.To download/update your playlists, simply double click on theplaylist-sync_sync.cmdfileTodoAdd support for SoundCloud and YouTube playlists, withyoutube-dlSync Serato/rekordbox crates with downloaded playlistsUse ISRC numbers to prevent downloading songs from different playlists twice, and make hardlinks between files instead
Package: playlistzip
Join two to four youtube playlists into combined viewsync links. Joining is accomplished either by episode numbers, collected from video titles, or by index pairing.Supports *nix and Windows.Usageplz"PL1O4GjhJgk40spOiTqpdh5rmp8z6lbpHQ""PLlwKCy51_4YjSUB4gshARQIdFKOQ7wIqR"Where positional arguments areplaylistIDs retrieved from youtube. These are “list” GET parameters, visible in URL when you browse to any playlist page on youtube.You can also specify regular expressions to be used to pick out episode numbers, directly via command line options. Useful for cases where default regex fail to get the correct episode number, or if you want to filter some videos out. All regular expressions have to contain one capturing group in them (specified by “([0-9]{1,2})” usually) – capturing the episode number.plz--third-regex="Mathas ([0-9]{1,2})"\"PL1bauNEiHIgyqZ2B_x9kJWVX_dlDKv1cF"\"PLrIoJm0QOWUp-KwSJHNGGODWZCpVnu6km"\"PLH-huzMEgGWD5f_ItXeqF-qBoxkhNUNex"Regular expression options can be specified several times, it will try them until it gets a match, in order, starting with the first one.plz--third-regex="#([0-9]{1,2})"\--third-regex="Mathas ([0-9]{1,2})"\"PL1bauNEiHIgyqZ2B_x9kJWVX_dlDKv1cF"\"PLrIoJm0QOWUp-KwSJHNGGODWZCpVnu6km"\"PLH-huzMEgGWD5f_ItXeqF-qBoxkhNUNex"Synopsis:plz [-h] [–first-regex FIRST_REGEX] [–second-regex SECOND_REGEX] [–third-regex THIRD_REGEX] [–fourth-regex FOURTH_REGEX] [–omit-title] [–json] [–join-by-index] playlists [playlists …]For each of joined episodes, output includes a title of the video of the first specified playlist, followed by viewsync URL.--omit-titleto get only viewsync URLs as an output.--jsonoutput JSON instead of space separated data.--join-by-indexjoin playlists by index instead of using regex to match up episode numbers.ContributeIssue Tracker: gitlab.com/rossvor/playlistzip/issuesSource Code: gitlab.com/rossvor/playlistzipCopyright and LicenseCopyright 2019, 2020 Ross VorotynskijThe project is licensed under the GPL-3.0+ license.
Package: playmate
Asynchronously scrapes and parses application data from the Google Play Store.(Fork of play-scraper, a synchronous Google Play Store scraper, https://github.com/danieliu/play-scraper)### InstallationInstall with pip.```pip install playmate```#### detailsFetch an application's details.```pythonasync with PlayMate() as mate:app_info = await mate.get_app_details(app_id)```* `app_id` the app id to get, e.g. `com.android.chrome` for Google Chrome.#### collectionFetch a list of applications from a collection, optionally filtered by category.```pythonasync with PlayMate() as mate:collection = await mate.get_apps(coln_id, catg_id, max_page=max_page)```* `coln_id` a [collection](https://github.com/Gulats/playmate/blob/master/playmate/lists.py#L3) to fetch.* `catg_id` a [category](https://github.com/Gulats/playmate/blob/master/playmate/lists.py#L12) to filter by.* `max_page` (default 1, max 5) the number of pages to fetch with each page containing 120 records.#### searchFetch a list of applications matching a search query. Retrieves `20` apps at a time.```pythonasync with PlayMate() as mate:search_results = await mate.search_apps(term, max_page=max_page)```* `term` query term(s) to search for.* `max_page` (default 1, max 5) the number of pages to fetch with each page containing 48 records.#### similarFetch a list of similar applications.```pythonasync with PlayMate() as mate:similar_apps = await mate.get_similar_apps(app_id)```* `app_id` the app id to get, e.g. `com.supercell.clashofclans` for Clash of Clans.#### custom settingsAdd customisation to the request```pythonasync with PlayMate(headers=dict(Origin='https://play.google.com'),timeout=180,hl='en', gl='us') as mate:app_info = await mate.get_app_details(app_id)```* `headers` the headers to be sent for each request* `timeout` the total timeout for each request in seconds* `hl` (default `en` for English) the language code to receive results in a specific language* `gl` (default `us` for United States) the country code to receive results based from a specific country#### manually close sessionManually close a persisted session```pythonmate = PlayMate()app_info = await mate.get_app_details(app_id)await mate.close()```### TestsRun test:```make test```Platform: UNKNOWNClassifier: Development Status :: 3 - AlphaClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: MIT LicenseClassifier: Natural Language :: EnglishClassifier: Operating System :: OS IndependentClassifier: Programming Language :: Python :: 3.7Description-Content-Type: text/markdown
Package: playment
InstallationYou don't need this source code unless you want to modify the package. If you just want to use the package, just run:pip install --upgrade playmentInstall from source with:python setup.py installRequirements:Python 3.5+DocumentationPlease visit theDocsto know more about Playment APIs.Using x-client-key [Deprecated]Usingx-client-keyis only supported till 30th October 2020, please use updated sdk andx-api-keyto use Playment APIs after the aforementioned date.x-api-keyis supported in latest SDK versions > 1.0.4X-Client-Key Usage instructionsUninstall the sdk (Only required if you upgraded to sdk version > 1.0.4, runpip show playmentto check).pip uninstall playmentInstall the latest version supportingx-client-keypip install -Iv playment==1.0.4Pass yourx-client-keyas shown below, and use as demonstrated in further examples.import playment
client = playment.Client(client_key="your-x-client-key-here")Please reach out todev@playment.inif you face any issues.Usageimport playment
client = playment.Client(api_key="your-x-api-key-here")It is a secret key required to call Playment APIs. The secret x-api-key ensures that only you are able to access your projects.
The x-api-key can be accessed from theSettings->API Keysin your Playment Dashboard.Usage InstructionsSummaryProject OverviewBatch SummaryProject's batches SummaryCreating aBatchConsist collection of jobs with similar characteristics.Creating a Single-Image BasedJob.A single image based job can be used for classification/annotation/segmentation.Creating a Sensor Based Job with Multiple Images with only camera sensor or multiple image basedJob.A multiple image based job can be used for classification/annotation, where all the images of the job are from a single camera and objects are needed to be tracked.Creating a Sensor Based Job with Multiple Images/PCDs or Sensor FusionJob.This can also be used for only LiDAR based jobs.Creating aJob with metadata.metadata: You can send any type of data in metadata which can be useful in the task or record of any other data related to               that job. metadata should be a typedict.GetJob Result.Job result will only populate if the job is completed else it will be empty.Create Jobs with High Priority and associating them with a batch.image_url = "https://example.com/image_url"
image_data = playment.ImageData(image_url=image_url)

try:
    job = client.create_job(reference_id="55", tag='image',
                            data=image_data, project_id="project_id",
                            priority_weight=10, batch_id="batch_id")
except playment.PlaymentException as e:
    print(e.code, e.message, e.data)
Package: playmobile
Introductionthis package helps to integrateplaymobile.uzand your application is built ondjango.InstallationUse the package managerpipto install.pipinstallrequests
pipinstalldjangorestframework
pipinstallplaymobileUsage# settings.pyINSTALLED_APPS=[...'playmobile','rest_framework',...]PLAY_MOBILE_SETTINGS={'API_URL':'','LOGIN':'','PASSWORD':'','PREFIX':'',# example : abc - Organization name. no more 20 characters.'ORIGINATOR':''# if this field is empty default 3700 or set your originator name}# urls.pyfromdjango.urlsimportpathfromplaymobile.viewsimportPlayMobileApiViewurlpatterns=[path('sender/',PlayMobileApiView.as_view(),name='send')]Documentationplaymobile.uzdocsdjango-rest-frameworkdocs
Package: playmobile-client
Python client for Playmobile.uz API (aka smsxabar.uz)This is Python HTTP Client forPlaymobile.uz(akasmsxabar.uz)
based onhttpx.Playmobile is a SMS broker which allows you to send messages throughout Uzbekistan.InstallationTo install playmobile-client, simply:$pipinstallplaymobile-clientThis package can be found onPyPI.Usageimporthttpximportplaymobileclient=playmobile.HttpClient(account=playmobile.Credentials(username="example",password="example",),base_url=httpx.URL("https://playmobile-example.uz"),session=httpx.Client(),)sms=playmobile.SMS(id="unique_string",sender="0001",recipient="998xx3332211",text="Hello world!",)# Single SMSclient.send_sms(sms)# SMS batchsms_batch=[playmobile.SMS(id="unique_string_1",sender="0001",recipient="998xx3332211",text="Hello world!",),playmobile.SMS(id="unique_string_2",sender="0001",recipient="998xx3332211",text="Yankee!",),]client.send_sms_batch(sms_batch)You can set up Timing settings:importplaymobilesms=playmobile.SMS(...)timing=playmobile.Timing(start_at=datetime(2023,1,1,12,0),end_at=datetime(2023,1,1,14,0),)# Single SMSclient.send_sms(sms,timing=timing)Advanced users can set up HTTPX session with custom parameters. For example:client=playmobile.Client(...,session=httpx.Client(timeout=httpx.Timeout(timeout=2.0),),)Package also have the test utils which will help you test your service:playmobile.generate_smsplaymobile.generate_error
Package: play-mqtt
play mqttpytest-playsupport for MQTT support.Thanks toplay_mqttyou can test the integration between a mocked IoT
device that sends commands on MQTT and a reactive web application with UI checks.You can also build a simulator that generates messages for you.More 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:- provider: mqtt
  type: publish
  host: "$mqtt_host"
  port: $mqtt_port
  endpoint: "$mqtt_endpoint"
  payload: '{
    "endpoint": "$mqtt_endpoint",
    "payload": {
      "obj_id_L": [0],
      "bin_value": [77251432],
      "measure_id": [100],
      "measureType": ["float"],
      "start_time": 1514911926114
    },
    "host": "$mqtt_host",
    "provider": "mqtt",
    "type": "publish",
    "port": "$mqtt_port"}'Subscribe command:test_data:
  - data: ciao1
---
- provider: mqtt
  type: subscribe
  host: iot.eclipse.org
  port: 1883
  topic: "home/bedroom/light"
  name: "messages"
- provider: mqtt
  type: publish
  host: iot.eclipse.org
  port: 1883
  endpoint: "home/bedroom/light"
  payload: $data
- provider: python
  type: wait_until
  timeout: 6
  expression: 'len(variables["messages"]) == 1'
  poll: 0.1
  sub_commands: []
- provider: python
  type: assert
  expression: 'len(variables["messages"]) == 1'
- provider: python
  type: assert
  expression: 'variables["messages"][0] == "$data"'Twitterpytest-playtweets happens here:@davidemoroCreditsThis package was created withCookiecutterand thecookiecutter-play-plugin(based onaudreyr/cookiecutter-pypackageproject template).CHANGES0.0.5 (2019-04-03)Implementsubscribecommand0.0.4 (2019-01-26)Fix pypi README rendering (rif #7)0.0.3 (2019-01-25)Supports new pytest-play >= 2.0 YAML based syntax (json no more supported)No more payload parmeter is json encodable0.0.2 (2018-01-10)Commands accept kwargs now0.0.1 (2018-01-04)First release
Package: play-music
play-music is a PyPi library which allows you to play wav files or numpy arraysInstallationUse the package managerpipto
install play-music.pipinstallplay-musicUsageplay music from wavfile:importplay-musicif__name__=="__main__":process=play-music.playMusic("alarm.wav",loop=False,threaded=False)play music on loop:importplay-musicif__name__=="__main__":process=play-music.playMusic("alarm.wav",loop=True,threaded=True)play music asynchronous:importplay-musicif__name__=="__main__":process=play-music.playMusic("alarm.wav",loop=False,threaded=True)stop all sounds:importplay-music,timeif__name__=="__main__":process=play-music.playMusic("alarm.wav",loop=True,threaded=True)time.sleep(1)play-music.stopAllSounds()stop specific sound:importplay-music,timeif__name__=="__main__":process=play-music.playMusic("alarm.wav",loop=True,threaded=True)process2=play-music.playMusic("alarm2.wav",loop=True,threaded=True)time.sleep(1)play-music.stopSpecificSound(process)stop specific sounds:importplay-music,timeif__name__=="__main__":sounds_to_stop=[]process=play-music.playMusic("alarm.wav",loop=True,threaded=True)sounds_to_stop.append(process)process2=play-music.playMusic("alarm2.wav",loop=True,threaded=True)sounds_to_stop.append(process2)process3=play-music.playMusic("alarm2.wav",loop=True,threaded=True)time.sleep(1)play-music.stopSpecificSounds(sounds_to_stop)ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: playoff-core
RequiresPython 3+Installpipinstallplayoff-coreUsingIn order to use this toolbox, you need:Playoff game;subscription plan that allows to make API calls;a configured client;create two files in the project directory:an.envfile containingClient_ID,Client_secretandhostnameof the corresponding game;asettings.inifile which is explained in a section below.Example:ORIGINAL_CLIENT_ID=Bf7dhMnM73EQtMjRjOGYyN2VmODhh
ORIGINAL_CLIENT_SECRET=MGMxYzQ0YzdCmD937tYjUyOWM1NWI3YjlhNTdiODY2MTAtOGE0MS0xS
ORIGINAL_HOSTNAME="playoff.cc"SettingsSettings available are:Version: game version;Player_id: a player id needed to certain API calls;Cycle: time lapse to obtain leaderboard, can have following values:daily;weekly;monthly;yearly;alltime.Level: log message level, can have following values:debug;info;warning.
Package: play-poker
General InfoCommand Line Single-player game of Texas Hold'Em poker.At the beginning of the game, you are asked to define how much cash each player will receive along with how many players you would like to play against. You can select from 1 to 4 players. Your competition is then randomly created and a player order is defined for the duration of the game. This order is used to control the blind and betting process.The game consists of the following stages:Preflop: two pocket cards are dealt to each player and big/small blinds are processedFlop: discard top card from the stack and deal three community cardsTurn: discard top card from the stack and deal one community cardRiver: discard top card from the stack and deal last community cardShowdown: player best hands are evaluated and winner is selectedAfter each of the above stages a round of betting takes place following the defined player order allowing players to check, call, raise or fold. If a player folds, they are simply removed from the player order and the game will continue with the remaining players. During the final stage of the game, the best hand for each player is selected, compared against other players and a winner is selected.Currently, logic for the following hands is supported:Three of a KindTwo PairPairHigh CardAdditionally, the game only supports use of white chips. I created issues for the remaining poker hands and chip denominations and plan to add them at a later date. While I have written and conducted a lot of testing to ensure a high quality experience, it's possible bugs do exist. Please report any you might experience and I will do my best to squash them promptly.Setup$ pip install play-poker
$ python -m poker
Package: playrandom
# playrandomThis tool is a command-line interface tomplayerthat uses directories as
playlists. Media files are played in random order until all files are
played, then successively the least recent files are released to enable a
loop in random order.# InstallThe fastest way to install playrandom is to use your systems tools:pip install playrandom## RequirementsAll python required packages are listed inenvironment.yaml. In case you
installed playrandom via a package management system like pip, anaconda,
miniconda, … all dependencies should already be installed automatically.
The only “external” dependency is [mplayer](http://www.mplayerhq.hu), which
is usually installable by your systems package manager (apt, yum, …).# Getting StartedAfter installation runplayrandom –helpto get a first overview of
command line options and usage.# Developing playrandomContributions are very welcome! Write issues for feature requests or
directly file a pull-request with your contribution and/or contact me
directly!## TestsThis project uses the [PyTest framework](https://docs.pytest.org/en/latest/)
with tests defined in the [tests/](tests/) sudirectory. It is added into the
setuptools config, so that it can be run withpython setup.py testThis automatically tests a temporarily packaged version.Alternatively you can runpytestmanually with all it [glory
details](https://docs.pytest.org/en/latest/usage.html).## ReleasesThe release workflow is mostly automated and is in the [release/](release/)
folder.
Package: playscript
playscript> English version概要台本を構造化データとして扱うためのパッケージです。PyPI :https://pypi.org/project/playscript/Doc :https://satamame.github.io/playscript/インストールPyPI からインストールする場合は、追加で fountain をインストールします。> pip install playscript
> pip install git+https://github.com/Tagirijus/fountain.git@7da5447abae640f34448dd36fee83f47a7415fcfGitHub からインストールする場合は、以下のコマンドでインストールされます。> pip install git+https://github.com/satamame/playscript.gitクラスPSc台本データのクラスです。PScLinePSc オブジェクトに含まれる各行を表すクラスです。"type" 属性により、セリフやト書きといった「行の種類」が決まります。PScLineTypePScLine の "type" を定義する enum 型です。例行を定義して台本を作るfromplayscriptimportPScLineType,PScLine,PSctitle=PScLine.from_text(PScLineType.TITLE,'ろくでなしの冒険')h1=PScLine.from_text(PScLineType.H1,'シーン１')direction=PScLine.from_text(PScLineType.DIRECTION,'六郎と七郎、登場。')dialogue1=PScLine.from_text(PScLineType.DIALOGUE,'六郎「どうする？」')dialogue2=PScLine.from_text(PScLineType.DIALOGUE,'七郎「帰って寝る」')endmark=PScLine.from_text(PScLineType.ENDMARK,'おわり')script=PSc(lines=[title,h1,direction,dialogue1,dialogue2,endmark,])Fountain (日本式) から台本を作るimporttextwrapfromplayscript.conv.fountainimportpsc_from_fountainfountain_str=textwrap.dedent('''\Title: ろくでなしの冒険Author: アラン・スミシ# 登場人物六郎七郎# シーン１六郎と七郎、登場。@六郎どうする？@七郎帰って寝る> おわり''')script=psc_from_fountain(fountain_str)Fountain (日本式) を読み込んで PDF にするfromplayscript.convimportfountain,pdfwithopen('example.fountain',encoding='utf-8-sig')asf:script=fountain.psc_from_fountain(f.read())pdf_stream=pdf.psc_to_pdf(script)withopen('out.pdf','wb')asf:f.write(pdf_stream.read())Fountain (日本式) を読み込んで HTML にするfromplayscript.convimportfountain,htmlwithopen('example.fountain',encoding='utf-8-sig')asf:script=fountain.psc_from_fountain(f.read())html_str=html.psc_to_html(script)withopen('out.html','w',encoding='utf-8')asf:f.write(html_str)
Package: playscripter
ScripterMake a script using Python!InstallingCurrently, you can do:git clone https://github.com/NCPlayz/Scripter
cd Scripter
python3 -m pip install -U .ExamplefromscripterimportScriptmy_script=Script("Macbeth","Shakespeare")act1=my_script.add_act()act1.add_scene("A Desert Place. Thunder and lightning. Enter three Witches.")act1.add_dialogue("When shall we three meet again\nIn thunder lightning, or in rain?",author="First Witch")# Rest of Act 1 Scene 1if__name__=='__main__':my_script.create("Macbeth")# Result in ./testsRequirementsPythonlanguage - version3.0.0+python-docxlibrary - version0.8.7
Package: playsh
playshA GLSL fragment shader playground, inspired byShadertoy.Builtin shader uniformsuniform vec3iResolutionuniform floatiTimeiuniform floatTimeDeltauniform intiFrameuniform vec4iMouseuniform Texture2DiChannel0uniform Texture2DiChannel1uniform Texture2DiChannel2uniform Texture2DiChannel3uniform vec3iChannelResolution[4]DependenciesglfwPyOpenGLPyGLMnumpypillowinjectorExamplefromplayshimportPlaySh,TextureDesc,Filter,Wrapapp=PlaySh(width=1920,height=1200,fragment_shader_path="examples/example.fs",channel0=TextureDesc(path="examples/noise.png",filter=Filter.LINEAR,wrap=Wrap.REPEAT),)app.run()