Saravanan666/pypi-org huggingface dataset:
Package: perception
perceptionperceptionprovides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use. Seethe documentationfor details.Backgroundperceptionwas initially developed atThornas part of our work to eliminate child sexual abuse material from the internet. For more information on the issue, check outour CEO's TED talk.Getting StartedInstallationpip install opencv-python perceptionHashingHashing with different functions is simple withperception.fromperceptionimporthashersfile1,file2='test1.jpg','test2.jpg'hasher=hashers.PHash()hash1,hash2=hasher.compute(file1),hasher.compute(file2)distance=hasher.compute_distance(hash1,hash2)ExamplesSee below for end-to-end examples for common use cases for perceptual hashes.Detecting child sexual abuse materialDeduplicating mediaBenchmarking perceptual hashesSupported Hashing Algorithmsperceptioncurrently ships with:pHash (DCT hash) (perception.hashers.PHash)Facebook's PDQ Hash (perception.hashers.PDQ)dHash (difference hash) (perception.hashers.DHash)aHash (average hash) (perception.hashers.AverageHash)Marr-Hildreth (perception.hashers.MarrHildreth)Color Moment (perception.hashers.ColorMoment)Block Mean (perception.hashers.BlockMean)wHash (wavelet hash) (perception.hashers.WaveletHash)ContributingTo work on the project, start by doing the following.# Install local dependencies for# code completion, etc.makeinit# Build the Docker container to run# tests and such.makebuildRunningmake initwill update this repository's dependencies and preserve the results inPipfile.lock. We strongly recommend including changes to the lock alongside any other changes that may have been made.You can get a JupyterLab server running to experiment with usingmake lab-server.To do a (close to) comprehensive check before committing code, you can usemake precommit.To view the documentation, usemake documentation-server.To implement new features, please first file an issue proposing your change for discussion.To report problems, please file an issue with sample code, expected results, actual results, and a complete traceback.AlternativesThere are other packages worth checking out to see if they meet your needs for perceptual hashing. Here are some
examples.dedupeimagededupImageHashPhotoHash
Package: perception-model
perception-model-toolWe present a model allowing inferences of perceivable screen content in relation to position and orientation of mobile or wearable devices with respect to their user. The model is based on findings from vision science and allows prediction of a value of effective resolution that can be perceived by a user. It considers distance and angle between the device and the eyes of the observer as well as the resulting retinal eccentricity when the device is not directly focused but observed in the periphery. To validate our model, we conducted a study with 12 participants. Based on our results, we outline implications for the design of mobile applications that are able to adapt themselves to facilitate information throughput and usability.To visualize the predictions of the model, we provide a tool that – given a display position and orientation in relation to the user’s eyes – renders a picture representing the effective display resolution, e.g. to assess text readability for different sizes or fonts. We distinguish whether a person is (a) directly looking at the display or (b) looking straight ahead and observing the display in the periphery. The tool takes a picture, e.g. a screenshot of a smartwatch application, converts it to the CIE Lab* space, and only the luminance information is further considered. A second-order Butterworth filter is used to remove frequencies that would not be visible according to our model.Please see here for the full paper:https://doi.org/10.1145/3173574.3174184Tool usageThe tool requires Python 3 in combination with numpy, scipy, click and colour-science. For the GUI version, Tkinter is used.GUI versionFirst, an input file (jpg, png) and an output file (jpg, png) to save the adjusted version to have to be specified. The parameters allow to specify characteristics of the device under investigation (display size and resolution) as well as the distance and orientation in respect to the observer. A selector gives the option to decide whether the observer is directly looking at the device or whether s/he is looking straight (peripheral observation).
By pressing the "Process" button, the image is being processed and the adjusted version is saved to the specified output file.Command-line interface (CLI)python filter_screenshot.py ./image.png ./out.png -d 0.4 -s 0.02 0.02 -r 200 200 -ha 10 -va 20For a full list of commands see the help pagepython filter_screenshot.py --help
Package: perceptor
perceptorModular image generation library.InstallpoetryaddperceptorOr, for the old timers:pipinstallperceptorCUDA 11.3 (Support RTX cards)poetryrunpipuninstalltorchtorchvision-y&&poetryrunpipinstalltorch==1.12.1torchvision==0.13.1--extra-index-urlhttps://download.pytorch.org/whl/cu113InterfaceShortlist of available features. See theAPI referencefor more information.perceptor.drawers.BruteDiffusion.DeepImagePrior.Raw.RuDALLE.StyleGANXL.models.AdaBinsDepth.DeepImagePrior.VelocityDiffusion(yfcc_2,yfcc_1,cc12m_1_cfg,wikiart).latent_diffusion.Text2Image.Face.SuperResolution.GuidedDiffusion(openai,pixelart).MidasDepth.MonsterDiffusion(all,tinyhero).StyleGANXL.RuDALLE.StableDiffusion.SuperResolution.losses# Text-image similarity.BLIP.CLIP.CLOOB.LiT.GlideCLIP.OpenCLIP.OWLViT.RuCLIP.SLIP# Other.AestheticVisualAssessment.LPIPS.Memorability.MidasDepth.SimulacraAesthetic.Smoothness.StyleTransfer.transforms.clamp_with_grad.resize.SuperResolution.utils.gradient_checkpoint
Package: perceptron-itsguptaaman
Perceptron Python packageRefrence[Official python docs for PYPY] (https://packaging.python.org/en/latest/tutorials/packaging-projects/)[Github Action file for PYPY] (https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries)To check packages list usepip listHow to usefrom mn.perceptron import Perceptron
Package: perceptron-linear-classifier
Perceptron-Linear-ClassifierA Python library to implement the perceptron algorithm and possibly visualize it.UsageExamples of How To UseCreating An Objectfromperceptron_linear_classifierimportPerceptronperceptron=Perceptron(data=data_train,labels=labels_train,data_test=data_test,labels_test=labels_test)# train the perceptron classifier to find the respective values of theta and theta_0perceptron.fit()# returns the score for the perceptron classifierperceptron.eval_classifier()# perform 1 step of the perceptron classifier to check if the value of theta and theta0 changesperceptron.singleStep()# perform 1 iteration of passing the entire data to the classifierperceptron.singleIteration()ContributingPlease read the CONTRIBUTIN.md file for more information about it.IssuesReport to Prabhav Khera.
Package: perceptron-pypi
PERCEPTRON_PYPIPERCEPTRON_PYPIHow to use thisfrom# oneNeuron_pypioneNeuron_pypi## How to use this```pythonfromPERCEPTRON.perceptronimportPerceptron## get X and y and then use below commandsmodel=Perceptron(eta=eta,epochs=epochs)model.fit(X,y)Reference -official python docsgithub docs for github actions.perceptron import Perceptronget X and y and then use below commandsmodel = Perceptron(eta=eta, epochs=epochs)
model.fit(X, y)# Reference -
[official python docs](https://packaging.python.org/tutorials/packaging-projects/)

[github docs for github actions](https://docs.github.com/en/actions/guides/building-and-testing-python#publishing-to-package-registries)
Package: perceptron-py-srivanoo21
perceptron_pypiperceptron_pypiHow to use thisfromoneneuron.perceptronimportPerceptron## get X and y and then use below commandsmodel=Perceptron(eta=eta,epochs=epochs)model.fit(X,y)Reference -[official python docs for pypi] (https://packaging.python.org/tutorials/packaging-projects/)[github docs for github actions] (https://docs.github.com/en/actions/guides/building-and-testing-python#publishing-to-package-registries)
Package: perceval-finos
perceval-finosBundle of Perceval backends for FINOS ecosystem.BackendsThe backends currently managed by this package support the next repositories:FINOS meetings attendanceRequirementsPython >= 3.4python3-requests >= 2.7grimoirelab-toolkit >= 0.1.9perceval >= 0.12.12InstallationTo install this package you will need to clone the repository first:$ git clone https://github.com/Bitergia/grimoirelab-perceval-finos.gitThen you can execute the following commands:$ pip3 install -r requirements.txt
$ pip3 install -e .In case you are a developer, you should execute the following commands to install Perceval in your working directory (option-e) and the packages of requirements_tests.txt.$ pip3 install -r requirements.txt
$ pip3 install -r requirements_tests.txt
$ pip3 install -e .ExamplesFINOS meetingsLocating via URL$ perceval finosmeetings https://gist.githubusercontent.com/maoo/27db80e0dba349caf95cd3f2af909fe8/raw/d8bdc91ed1ac2c0e5b8e0dc95d5248527c88260d/finos-meetings.csvLocating via file path$ perceval finosmeetings file:///Users/m/w/projects/metadata-tool/roster-data.csvLicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-mozilla
perceval-mozillaBundle of Perceval backends for Mozilla ecosystem.BackendsThe backends currently managed by this package support the next repositories:CratesKitsuneMozillaClubReMoRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-mozilla on your system: packages or source
code using Poetry or pip.PyPIperceval-mozilla can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-mozillaSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/chaoss/grimoirelab-perceval-mozilla
$ cd grimoirelab-perceval-mozillaThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-mozilla in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-mozilla and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplesCrates$ perceval cratesKitsune$ perceval kitsune --offset 373990Mozilla Club Events$ perceval mozillaclubReMo$ perceval remoLicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-opnfv
perceval-opnfvBundle of Perceval backends for OPNFV ecosystem.BackendsThe backends currently managed by this package support the next repositories:FunctestRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-opnfv on your system: packages or source
code using Poetry or pip.PyPIperceval-opnfv can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-opnfvSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/chaoss/grimoirelab-perceval-opnfv
$ cd grimoirelab-perceval-opnfvThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-opnfv in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-opnfv and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplesFunctest$ perceval functest http://testresults.opnfv.org/test/ --from-date 2017-06-01 --to-date 2017-06-02LicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-pontoon
perceval-pontoonPerceval backend for Pontoon.BackendsThe backend currently managed by this package support the next repository:PontoonRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-pontoon on your system: packages or source
code using Poetry or pip.PyPIperceval-pontoon can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-pontoonSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/bitergia-analytics/grimoirelab-perceval-pontoon
$ cd grimoirelab-perceval-pontoonThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-pontoon in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-pontoon and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplePontoonTranslationsTo download the entities and translations provided by users from a Pontoon backend
you need the URL of the server and the locales you want to obtain.Run perceval with the Pontoon URL and the locale to fetch the entities and
translations. For example:$ perceval pontoon "https://pontoon.example.com" esYou can also specify from what date you want to obtain the translation suggestion
with--from-dateand--to-date.LocalesTo obtain the list of locales available in a server, run Perceval in the following way:$ perceval pontoon "https://pontoon.example.com" --category localeLicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-public-inbox
perceval-public-inboxPerceval backend for public-inbox repositories.BackendsThe backend currently managed by this package support the next repository:public-inboxRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-public-inbox on your system: packages or source
code using Poetry or pip.PyPIperceval-public-inbox can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-public-inboxSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/bitergia-analytics/grimoirelab-perceval-public-inbox
$ cd grimoirelab-perceval-public-inboxThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-public-inbox in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-public-inbox and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplePublic InboxDownload the mirror repositories from any public-inbox archive. For example, for
the case of the Linux Kernel there are14 repositories.
You can group all the repositories into a single repository using thegit
alternates mechanism.Finally, run perceval with the mailing-list URL and the directory with the
repository. For example:$ perceval public_inbox https://lore.kernel.org/lkml/ /tmp/lkml.gitLicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-puppet
perceval-puppetBundle of Perceval backends for Puppet ecosystem.BackendsThe backends currently managed by this package support the next repositories:Puppet ForgeRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-puppet on your system: packages or source
code using Poetry or pip.PyPIperceval-puppet can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-puppetSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/chaoss/grimoirelab-perceval-puppet
$ cd grimoirelab-perceval-puppetThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-puppet in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-puppet and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplesPuppet Forge$ perceval puppetforgeLicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-quandela
PercevalThrough a simple object-oriented python API, Perceval provides tools for building a circuit with linear optics components,
defining single-photon sources and their error model, manipulating Fock states, running simulations, reproducing published experimental papers results,
and experimenting a new generation of quantum algorithms.It is interfaced with the available QPUs on
theQuandela cloud, so it is possible to run computations on an
actual photonic computer.Perceval aims to be a companion tool for developing discrete-variable photonics circuitswhile simulating their design, modeling their ideal and real-life behaviour;and proposing a normalized interface to control photonic quantum computers;while using powerful simulation backends to get state-of-the-art simulation;and also allowing direct access to the QPUs of Quandela.Perceval has been developed as a complete toolkit for physicists and quantum computational students, researchers and
practitioners.Key FeaturesPowerful Circuit designer making use of predefined componentsSimple python API and powerful simulation backends optimized in CMisc technical utilities to manipulate State Vector, Unitary Matrices, and circuit ParametersTransversal tools for visualization compatible with notebooks or local development environmentsNumerical and symbolical computationModular architecture welcoming contributions from the communityInstallationPerceval requires:Above Python 3.8 and below Python 3.12PIPWe recommend installing it withpip:pipinstall--upgradepip
pipinstallperceval-quandelaIf you are looking to use our qiskit, qutip or myqlm bridges you can specify it:pipinstallperceval-quandela[qiskit_bridge]#install qiskit and seabornpipinstallperceval-quandela[qutip_bridge]#install qutippipinstallperceval-quandela[myqlm_bridge]#install myqlmpipinstallperceval-quandela[qiskit_bridge,qutip_bridge,myqlm_bridge]#install all aboveGitHubgitclonehttps://github.com/quandela/Percevalthen to install Perceval:pipinstall.Or for developpers:pipinstall-e.Or to use converters:pipinstall.[qiskit_bridge,qutip_bridge,myqlm_bridge]Running tests and benchmarksUnit tests files are part of the repository intests/and can be run with:pip install -r tests/requirements.txt
pytestAdditionally, you can see a coverage report with the command:pytest --cov=percevalBenchmark tests for computing-intensive functions are inbenchmark/and can be run with:pytest benchmark/benchmark_*.pyComparison benchmarks for different platforms are also commit in.benchmarks/- seepytest-benchmark documentationfor more information.Documentation and ForumThedocumentationTheCommunity Forum
Package: perceval-topicbox
perceval-topicboxPerceval backend for Topicbox.BackendsThe backend currently managed by this package support the next repository:TopicboxRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-topicbox on your system: packages or source
code using Poetry or pip.PyPIperceval-topicbox can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-topicboxSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/bitergia-analytics/grimoirelab-perceval-topicbox
$ cd grimoirelab-perceval-topicboxThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-topicbox in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-topicbox and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExampleTopicboxYou need anaccount_idand a group URL to fetch the messages.To obtain theaccount_id, open Network tab in the browser Devtool and identify theaccountIdin any/jmaprequest made by the browser.Run perceval with the Topicbox group URL and the account id to fetch the messages. For example:$ perceval topicbox "https://mytopicbox.topicbox.com/groups/example" --account-id <account_id>It can be run from a specific date using the--from-dateparameter.LicenseLicensed under GNU General Public License (GPL), version 3 or later.
Package: perceval-weblate
perceval-weblateBundle of Perceval backends for Weblate.BackendsThe backends currently managed by this package support the next repositories:WeblateRequirementsPython >= 3.8You will also need some other libraries for running the tool, you can find the
whole list of dependencies inpyproject.tomlfile.InstallationThere are several ways to install perceval-weblate on your system: packages or source
code using Poetry or pip.PyPIperceval-weblate can be installed using pip, a tool for installing Python packages.
To do it, run the next command:$ pip install perceval-weblateSource codeTo install from the source code you will need to clone the repository first:$ git clone https://github.com/chaoss/grimoirelab-perceval-weblate
$ cd grimoirelab-perceval-weblateThen use pip or Poetry to install the package along with its dependencies.PipTo install the package from local directory run the following command:$ pip install .In case you are a developer, you should install perceval-weblate in editable mode:$ pip install -e .PoetryWe usepoetryfor dependency management and
packaging. You can install it following itsdocumentation.
Once you have installed it, you can install perceval-weblate and the dependencies in
a project isolated environment using:$ poetry installTo spaw a new shell within the virtual environment use:$ poetry shellExamplesWeblate$ perceval weblateLicenseLicensed under GNU General Public License (GPL), version 3 or later.