Saravanan666/pypi-org huggingface dataset:
Package: plex-default-settings
RequirementsPython 3.8+Installation$pipinstallplex_default_settings---> 100%Successfully installed plex_default_settingsUsageCommands$plex_default_settings--helpUsage: plex_default_settings [OPTIONS] COMMAND [ARGS]...Options:--verbose / --no-verbose        [default: False]--install-completion [bash|zsh|fish|powershell|pwsh]Install completion for the specified shell.--show-completion [bash|zsh|fish|powershell|pwsh]Show completion for the specified shell, tocopy it or customize the installation.--help                          Show this message and exit.Commands:dub  Set the default dubs for every episode of the show.sub  Set the default subtitles for every episode of the show.Setting default subtitles for every episode of a show$plex_default_settingssub--helpUsage: plex_default_settings sub [OPTIONS] SHOW LANGSet the default subtitles for every episode of the show.Arguments:SHOW  Show title  [required]LANG  Language code is defined by the ISO-639-1 (2-letter) or ISO-639-2/B(3-letter) standard. See links belowhttps://en.wikipedia.org/wiki/List_of_ISO_639-1_codes,https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes  [required]Options:--username TEXT    Your Plex username  [required]--password TEXT    Your Plex password  [required]--servername TEXT  Plex server name  [required]--help             Show this message and exit.Setting default dubs for every episode of a show$plex_default_settingsdub--helpUsage: plex_default_settings dub [OPTIONS] SHOW LANGSet the default dubs for every episode of the show.Arguments:SHOW  Show title  [required]LANG  Language code is defined by the ISO-639-1 (2-letter) or ISO-639-2/B(3-letter) standard. See links belowhttps://en.wikipedia.org/wiki/List_of_ISO_639-1_codes,https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes  [required]Options:--username TEXT    Your Plex username  [required]--password TEXT    Your Plex password  [required]--servername TEXT  Plex server name  [required]--help             Show this message and exit.ExampleSet jpn dubs for every episode in the show "Hokuto No Ken Fan-Kai"$plex_default_settingsdub\--username"${USERNAME}"\--password"${PASSWORD}"\--servername'Linux Media Server'\'Hokuto No Ken Fan-Kai'jpnUpdating episodes  [####################################]  100%Success!Set eng subs for every episode in the show "Hokuto No Ken Fan-Kai"$plex_default_settingssub\--username"${USERNAME}"\--password"${PASSWORD}"\--servername'Linux Media Server'\'Hokuto No Ken Fan-Kai'engUpdating episodes  [####################################]  100%Success!
Package: plex_download
Plex Version Downloader is tool designed to allow the quick and easy downloading of the latest version of Plex software fromplex.tv.$plex_download-sserverubuntuubuntulinux-ubuntu-x86_64(1.2.6.2975-9394c87)ubuntulinux-ubuntu-i686(1.2.6.2975-9394c87)$plex_downloadserverubuntulinux-ubuntu-x86_64plex_download:startingdownload...plex_download:downloadcomplete$plex_download-husage:plex_download[-h][-v][-V][-s][-S][-uUSERNAME][-pPASSWORD][-dDESTINATION][PLATFORM][DISTRO][BUILD]PlexVersionDownloaderpositionalarguments:PLATFORMtheplatformoftheversiontodownload(possiblevalues:server,theater,player,player_embedded)DISTROthedistrooftheversiontodownloadBUILDthebuildoftheversiontodownloadoptionalarguments:-h,--helpshowthishelpmessageandexit-v,--verboseenableverboseoutput(usetwiceformore)-V,--versionprintversioninformationandexit-s,--show-versionsshowserverversionswithoutdownloading-S,--show-versions-onlyshowserverversionswithoutdownloadingandwithoutextrametadata-uUSERNAME,--usernameUSERNAMEsetplexaccountusername-pPASSWORD,--passwordPASSWORDsetplexaccountpassword-dDESTINATION,--destinationDESTINATIONsetdownloadlocationshowingalistofthelatestnormalserverversions:plex_download-sservershowingalistofthelatestplexpassserverversions:plex_download-s-u"AzureDiamond"-p"hunter2"serverdownloadingnonplexpassserverversion:plex_downloadserverubuntulinux-ubuntu-x86_64downloadingplexpassserverversion:plex_download-u"AzureDiamond"-p"hunter2"serverenglishwindows-i386downloadingthelatestservertoaspecificdirectory:plex_download-d~/downloadsservermacosxdarwin-x86_64downloadingthelatestservertoaspecificpath:plex_download-d~/downloads/plex.debserversynologylinux-synology-i686
Package: plexflo
"PlexfloPlexflo offers a comprehensive ecosystem of tools and libraries that lets you build Deep Learning powered applications for effective management of grid with accurate forecasting and analytics.Plexflo's Open-Source libraryWe have built an Open-Source library datastream that aids researchers and engineers to try our Deep Learning models for detection of EVs (Electric Vehicles) charging events from smart home meter data.datastreamdatastream helps researchers and engineers to try our Deep Learning models for detection of Electric Vehicles charging events from smart home meter data.connectconnect helps users to leverage our easy-to-use socket programming wrapper for hassle free client-server use-cases.loadprofilesloadprofiles helps researchers and engineers to try our pre-defined 24-hour load profiles for various scenarios in their load forecasting use-cases.utilsutils helps users take advantage of our easy-to-use mathematical and statistical functions.
Package: plex-footage-sorter
Plex Footage SorterA simple script to process android phone footage default names into plex-friendly filenamePlex Footage SorterDescriptionRenaming phone footage as date-based seriesCaveat - Part NamingRenaming Movpilot downloads as season-based seriesDescriptionThis package bundles a set of tools for renaming and/or moving files from various sources into plex-friendly patterns.
Most of these are highly specific.Renaming phone footage as date-based seriesAndroid phones (and possible iPhones, we haven't checked) name video files in the formatYYYYMMDD_SSSSSS.EXT.
Plex can interpret video files as a date-based tv series if they are named in the formatSERIESNAME-YYYY-MM-DD[ - PartX].EXT.
This tool is designed for the case where you take a lot of phone footage that you want to organise into a chronological series.
We use it for organising our videos of our progress at learning various activities.To use this utility, dump all of the relevant footage into a folder, and runplex-footage-sorterdate-basedSERIESNAMECaveat - Part NamingWe number parts consecutively for a single day.
If there are more videos for that day that are not in the folder, the part numbering will be wrong.
We might fix this at a later date.Renaming Movpilot downloads as season-based seriesMovpilot downloads of series episodes do not fit plex structures.
For example, downloads from Amazon Prime follow the structure:root
└── Castlevania
    ├── 1
    |   ├── Witchbottle
    |   |   └── S01E001_witchbottle.mp4
    |   └── Necropolis
    |       └── S01E002_necropolis.mp4
    |       └── S01E002_necropolis.srt
    └── 2
        └── Old Homes
            └── S02E002_old_homes.mp4and netflix downloads:root
└── Castlevania
    ├── Season 1
    |   └── Witchbottle
    |       └── S01E001_witchbottle.mp4
    └── Season 2
        └── Old Homes
            └── S02E002_old_homes.mp4whereas Plex would expect these to look like:root
└── Castlevania
    ├── Season01
    |   ├── Castlevania - S01E01 - witchbottle.mp4
    |   ├── Castlevania - S01E02 - necropolis.mp4
    |   └── Castlevania - S01E02 - necropolis.srt
    └── Season02
        └── Castlevania - S02E02 - old homes.mp4Renaming these by hand is tedious, so we have developed themovpilot-seriesutility.To use this utility, runplex-footage-sortermovpilot-seriesin the root directory.
Package: plex-fuse
Plex FUSE FilesystemAn attempt to create fuse filesystem to access Plex Media Server.DevelopmentThis project is in very early development.Currently implemented:Listing of root directoryConnecting to PMS via python-plexapiListing of library types in root directoryListing library titles in library type sub-directoryListing titles from a libraryListing of Movie filesReport file size for media partReport accurate nlink for directoriesMemoize readdir and getattr callsFix "/" in directory namesDownload movie files to cache, serve read operations from cacheAdd-o cache_pathoptionTest that Plex Media Server allows requesting file by rangeUse chunked read for file cacheListing of Show seasonsListing of Season episodesListing of Episode filesDownloading episode filesUnicode normalize titlesSupport .plexmatch for MoviesSupport timestamps for MoviesSupport .plexmatch for Show directoriesAdd movie timestamps to .plexmatch filesAdd timestamps to directoriesAdd subtitle files for MoviesAdd subtitle files for EpisodesCache PlexAPI requests using requests-cache (-o http_cache)Publish package to pypiAdd docker volume driverAdd cache management (max size?)Add cache purge option (special file?)Detect need to refresh cache (add event listener)Handling of "artist" library typeUsageInstall Python >= 3.11Install fuse, macfuse, osxfuse,fuse-tdepending on your OSInstallpipenvClone this project:git clone https://github.com/glensc/plex-fuseChange toplex-fusedirectoryInstall project dependenciespipenv installCreateconfig.iniforpython-plexapiMount the configured PMS somewhere, i.eplex-server:mkdir plex-server; pipenv run python -m plexfuse plex-server -fAccess theplex-serverdirectory from another terminalumountorfusermount -uthe directory to remove theplex-servermountPlex ConfigCreate Plexconfigurationfile:# ~/.config/plexapi/config.ini[auth]server_baseurl=http://127.0.0.1:32400server_token=XBHSMSJSDJ763JSm
Package: plexiglass
PlexiglassWondering if your AI model is safe enough to use? Plexiglass is your sparring partner to bolster your model's defenses!What is Plexiglass?Plexiglass is a Python toolbox which supports pentesting against adversarial attacks in machine learning. It has two modules: LLMs and DNNs. For LLMs, plexiglass useslitellmunder the hood.We are working tirelessly to include more frameworks and attack/ defense mechanisms for testing. Please read our docs for the latest updates.[!IMPORTANT]
We are looking for contributors! Fork the repo to get started. Contribution guide is coming soon.[!NOTE]
Plexiglass is open-source: Please leave a star to support the project! ⭐What is Adversarial Machine Learning?Adversarial machine learning involves manipulating input data to deceive machine learning models. In deep neural networks (DNNs) and large language models (LLMs), attacks include adding subtly modified inputs that cause incorrect model predictions or responses. These attacks exploit model vulnerabilities, testing their robustness and security.InstallationThe first experimental release is version0.0.1.To download the package from PyPi:pip install --upgrade plexiglassGetting StartedLLM Module: Simple UsageWe support a variety of LLMs usinglitellm. Alternatively, you can also test your ownhuggingfacemodels.fromplexiglass.LLM.evaluateimportevaluatefromplexiglass.modelimportModelimportosos.environ["OPENAI_API_KEY"]="YOUR_OPENAI_API_KEY"model=Model("openai","gpt-3.5-turbo")evaluate(model,metrics=["toxicity"],attacks=["prompt_injection","gcg"])DNN Module: Simple UsageHere is an example on how to test a model's robustness on FGSM attacks:fromplexiglass.DNN.evaluateimportevaluatefromplexiglass.modelimportModelimportos# load your pytorch model heremodel=Model("torch",your-model)evaluate(model,metrics=["accuracy"],attacks=["fgsm"])Feature RequestTo request new features, please submit anissueLocal DevelopmentTo get startedmakedevelopthis will clean, build, and install the package locally for development purpose.ContributorsMade withcontrib.rocks.
Package: plex.metadata.py
Metadata extension for plex.pyLicenseThe MIT License (MIT)Copyright (c) 2014 Dean GardinerPermission 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: plexo
pyplexopyplexois the Python implementation ofplexo. It aims to be an opinionated, reactive, schema-driven, distributed,
and
strongly-typed message passing framework with messages as types. Any type of data interchange format is supported and
can be transmitted both to in-process and inter-process listeners.plexoplexois an architecture in which data is transmitted across the network in a way where the receiver is able to
understand the correct type to decode the data into. It does so by assigning type names to a predefined namespace to
create a topic for receivers to subscribe to.Whileplexois relatively stable and in production use between Python and Rust (
seepodping.cloudandpodping-hivewriter), the paradigm remains experimental.
Contributions and suggestions are encouraged.Why does this exist?The goal of the project is to allow data structures to be shared across the network by their type instead of server
endpoints.plexoimplementations receive data structures and sends them to any interested parties subscribed to the
data structure's type.It was originally created and developed for a tiny sake brewing operation. The development of this project enabled us to
plug in new hardware sensors and data logging devices without the need to reconfigure multiple projects across a variety
of hardware.This was born out of a frustration of spending too much time writing data transformation and validation layers with
unstructured and/or weakly typed data (JSON without schemas) across multiple languages.plexotries to solve this
problem without controlling the entire stack while avoiding protocol implementation details such as HTTP "REST" APIs.ExamplesCheck theexamplesfor how to use the library -- particularlyaxon/inprocessfor
multiple examples of codec options andaxon/tcp_pairfor an example of how to send a python
class between two networked python processes with pickle or JSON. Note that, while supplying the pickle codec is
required, theplexusis smart enough to avoid the expensive process of encoding/decoding for in-process receivers;
codecs are only used for external transmission where serialization is required.ganglion/plexo_multicastprovides a basic example of sending a python class
across the network over multicast. Each type in is assigned a dedicated multicast address within the239.255.0.0/16CIDR block as a means to provide generalized, zero configuration network communication without saturating a single
socket with unnecessary traffic. An adaptation of the Paxos consensus algorithm is used for the network to agree on
which type is assign to which multicast group.
Package: plex.py
Python interface for the Plex Media Server API.UsageQuick example(connects to your local server):frompleximportPlexforiteminPlex['library'].recently_added():print'[%s]%s'%(item.type,item.title)Connect to a remote server:frompleximportPlexwithPlex.configuration.server(host='192.168.1.110'):recently_added=Plex['library'].recently_added()foriteminrecently_added:print'[%s]%s'%(item.type,item.title)TestingInstall requirements:$pipinstall-rrequirements.txt$pipinstall-rrequirements_test.txtUnit tests:$py.testUnit tests (viacoverage.py):$coveragerun-mpy.testLicenseThe MIT License (MIT)Copyright (c) 2014 Dean GardinerPermission 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: pl-extension
# pl-extension[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pl-extension)](https://pypi.org/project/pl-extension/) [![PyPI](https://img.shields.io/pypi/v/pl-extension)](https://pypi.org/project/pl-extension)PytorchLightningis awesome, we love using pl.pl-extensionis some useful extensions for pl.There are many pl-extension-like project:[lightning-flash](https://github.com/PyTorchLightning/lightning-flash)[lightning-transformers](https://github.com/PyTorchLightning/lightning-transformers)[lightning-bolts](https://github.com/PyTorchLightning/lightning-bolts)
Package: plexurl
Browse Plex from CLI. Returns transcoding streaming urls to stdoutUsageusage: plexurl [-h] [-m] [-s] [--name NAME] [-e EPISODE] [-S SERVER]
               [-u USERNAME] [-p PASSWORD] [--servername SERVERNAME]

optional arguments:
  -h, --help            show this help message and exit
  -m, --movie           Specify movie.
  -s, --show            Specify show.
  --name NAME           Name of movie or show. Use with -m or -s respectively.
                        Omit to produce listing
  -e EPISODE, --episode EPISODE
                        Specify episode. Get list of episodes by specifying
                        show. Supports either full episode name (which may
                        conflict) or SnnEnn (i.e S12E34)
  -S SERVER, --server SERVER
                        Specify server. Defaults to http://127.0.0.1:32400
                        $PLEX_SERVER
  -u USERNAME, --username USERNAME
                        Specify username. Used for Plex authentication.
                        $PLEX_USERNAME
  -p PASSWORD, --password PASSWORD
                        Specify password. Provided for convenience only,
                        preferred method is to omit this and enter password at
                        the prompt. $PLEX_PASSWORD
  --servername SERVERNAME
                        Specify server name. Used with -u above, for Plex
                        authentication. $PLEX_SERVERNAMEInstallationViapip:pip3 install plexurlAlternatively:Clone the repository,cd plexurlRunpython3 setup.py installorpip3 install-e
Package: plex_version
Plex Version API is a Python library designed to the allow quick and easy retrieval of the latest version of Plex software fromplex.tv.importplex_version# Create a new client for the APIclient=plex_version.Client()# Get a list of all PMS versionsversions=client.get(plex_version.version.PLEX_MEDIA_SERVER)# Print the list of versionsprint(versions)
Package: plex-watched-sync
plex-watched-syncplex-watched-syncis a small tool which helps you synchronize
the watched status of items on one Plex server to another Plex server.The target is to provide a tool which can be used to synchronize watched
status information when copying contents to a new Plex instance.Usagepip3installplex-watched-sync
plex-watched-syncorgitclonehttps://github.com/speijnik/plex-watched-sync.gitcdplex-watched-sync
poetryinstall
poetryrunplex-watched-sync
Package: plexwebsocket
python-plexwebsocketAsync library to react to events issued over Plex websockets.Example useimportasyncioimportloggingfromplexapi.serverimportPlexServerfromplexwebsocketimportPlexWebsocket,SIGNAL_CONNECTION_STATElogging.basicConfig(level=logging.DEBUG)baseurl='http://<PLEX_SERVER_IP>:32400'token='<YOUR_TOKEN_HERE>'plex=PlexServer(baseurl,token)defprint_info(msgtype,data,error):ifmsgtype==SIGNAL_CONNECTION_STATE:print(f"State:{data}/ Error:{error}")else:print(f"Data:{data}")asyncdefmain():ws=PlexWebsocket(plex,print_info,subscriptions=["playing","status"])awaitws.listen()if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: plezmo-ble-driver-py
A Python interface and library for pc-ble-driver. This allows Python applications to interface with a Nordic Semiconductor IC (both nRF51 and nRF52 series) over a serial port to obtain access to the full serialized SoftDevice API. Forked ofhttps://github.com/NordicSemiconductor/pc-ble-driver-pyfor supporting Nordic SoftDevice version 6.
Package: pl-face-recognition
Face RecognitionThis library provides out-of-the box facial recognition training and inference based onFacenetandPytorchImportant Requirementspython >= 3.6
torch >=1.0.0Quick startInstall with pip.pipinstallpl-face-recognitionThis project was designed to minimize the amount of false positives, for that
it requires two sets of data, one with pictures of the people you want to recognize,
and other with examples of other random people (a public dataset likelfwshould suffice).So given a dataset structure like this (we follow thetorchvision ImageFolderstructure, for both sets of data separately):dataset/
__good_faces/
____hugh_jackman/
______hugh_1.jpeg
____ryan_reynolds/
______ryan_1.jpeg
__bad_faces/
____some_random_person/
______random_person_1.jpeg
____some_random_other_person/
______dude.jpegYou may do insta train and inference like this:fromface_recognition.face_recognizersimportOneNeighborRecognizerfromPILimportImageIMAGES_PATH='./dataset/good_faces'ADVERSARY_IMAGES_PATH='./dataset/bad_faces'TEST_IMAGE_PATH='./ryan_2.jpeg'clf=OneNeighborRecognizer()# finds a match via 1 closest neighborclf.fit(IMAGES_PATH,ADVERSARY_IMAGES_PATH)test=[Image.open(TEST_IMAGE_PATH)]# predict receives an array/batch of imagespredicted_id=clf.predict(test)print(predicted_id)print(clf.ids_to_class(predicted_id))>>1>>'ryan_reynolds'Custom behaviorThe library works by doing nearest neighbor search on FaceNet generated
embeddings of the known images. If you want to have direct access to the embeddings
you can do so via the FaceSpace class:fromface_recognition.face_spaceimportFaceSpaceIMAGES_PATH='./dataset/good_faces'TEST_IMAGE_PATH='./ryan_2.jpeg'test=[Image.open(TEST_IMAGE_PATH)]fs=FaceSpace()embeddings,class_names=fs.get_embeddings(IMAGES_PATH)# get embeddings from a datasetimage_embeddings=fs.get_embedding_from_images(test)# or from array of imagesThe library will provide different methods for using the embeddings for classification.
For know it only has theOneNeighborClassifierclass:fromface_recognition.classifiersimportOneNeighborClassifierclassifier=OneNeighborClassifier()classifier.fit(embeddings,labels)# labels are integer indexes for target classes and -1 for adversarialclassifier.predict(other_embeddings)You may implement your own distance based classifiers by inheriting fromclassifiers.DistanceClassifierand defining the predict method.fromface_recognition.classifiersimportDistanceClassifierimportrandomclassStupidClassifier(DistanceClassifier):defpredict(self,target_embeddings):'''here you define how to get the correct labels by somehow comparingself.embeddings and target_embeddingsSee OneNeighborClassifier for an example'''return[random.choice(self.labels)for_inrange(len(target_embeddings))]# and you return labelsContributingIf you want to add functionality, fork the repo and feel free to open a pull request.CreditsThank youcontributors!face-recognition is maintained byplatanus.Licenseface-recognition is © 2020 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.