Saravanan666/pypi-org huggingface dataset:
Package: piefish
PieFishPieFish is a 2D graphics API that mimics the Processing API.InstallationDownload the repository as a .zip file.OR use pip to install it from PyPI (and skip all other installation steps, unless you want to try out the example):pip install piefishMake sure you've got all of the required pip packages installed:pygamecoloramaHow to useMain script setupFirst of all, you need to import piefish:importpiefishNote: since all functions for drawing are part of the piefish namespace, you might
want to useimport piefish as pfinstead.After that, you can initialize PieFish by calling the 'init()' method:piefish.init()The nice thing about PieFish is that the update loop is already setup for you.
The only thing you need to do is add your functions to the update loop by adding them
to afunction pool.Function poolsare lists of functions that get called
at a certain point in the kernel loop. For example, the"draw"-poolgets called
every frame, whilst the"setup"-poolonly gets called at the start of the program.You can add functions to a function pool as follows:@piefish.kernel.pool("draw",1)defyourFunction():# Do somethingThe number after the name of the draw pool indicates the priority of that function in the pool.
Functions with a higher priority will be executed before others.To start the kernel loop, add this line at the end of your main script:piefish.kernel.run()Your final script should look like this:importpiefishaspfpf.init()@pf.kernel.pool("setup",1)defonSetup():# do something@pf.kernel.pool("draw",1)defonDraw():# do somethingpf.kernel.run()All functionality is included in the example, and you can use it as a reference to create your
own application.PieFish 0.1.9aChange logChanged all occurences of pyvis to piefish. That's all.PieFish 0.1.8aChange logPieFish is now a PyPI package!Renamed package to PieFish to remove name conflicts (I had to come up with something..)Some other minor stuffHotfixes0.1.8a1updated this file0.1.8a2-a4very minor details including this filePieFish 0.1.5aChange logFurther improvements in kernel loop.Added splash screen.Expanded functionality in fps monitoring.Improved and added log messages.Command line colors! :DPieFish 0.1.3aChange logImproved kernel loop performance.Fullscreen now works properly.
Package: piefs
Python Instance Eikonal Function Solver (PIEFS)PIEFS is a library which solves the Eikonal Function for 2D and 3D instance masks, using the Fast Iterative Method.
It achieves memory efficiency through a fused kernel written in OpenAI Triton.
It also provides functionality to calculate gradients of the eikonal field.This implementation uses convolutions to calculate affinity masks, which may be faster and
can occur on cuda, however uses dense representations of the affinity masks and therefore is
memory intensive. It may be possible for much of the mask operations to occur with sparse tensors
for memory efficiency.A big thanks to Kevin Cutler (Original Omnipose Author) for helping me create this.Example:importtorchfrompiefsimportsolve_eikonal,gradient_from_eikonalimage=torch.load('path/to/my/image.pt')# An image with shape (B, C=1, X, Y, Z)eikonal=solve_eikonal(image,eps=1e-5,min_steps=200,use_triton=True)# A Distance map with shape (B, C=1, X, Y, Z)gradients=gradient_from_eikonal(eikonal)# A Gradient tensor with shape (B, C=3, X, Y, Z)
Package: piefuzz
[![Build Status](https://travis-ci.org/timeyyy/piefuzz.svg)](https://travis-ci.org/timeyyy/piefuzz)##### A python wrapper forjunegunn’s awesome [fzf](https://github.com/junegunn/fzf).This is a fork from pyfzf, the main difference is we operate in a non interactive mode.
We also work exclusivley on python3, instead of exclusivley on python2…RequirementsPython 3.4+[fzf](https://github.com/junegunn/fzf)Installationpip install piefuzzUsage>>> from piefuzz import Fzf
>>> fzf = Fzf()Defaults to searching the path for fzf, you may also specify a pathA SystemError is thrown if fzf cannot be found>>> fzf = Fzf(fzf_path='/here/fzf')To fuzz through a file with items seperated by newlines>>> result = fzf.fuzz(query, input_path='path/to/file.txt')otherwise an iterable of strings>>> result = fzf.fuzz(query, input_list=['abc', 'def'])output is a newline deliminated utf-8 stringLicenseMITThanksThis project makes use of [plumbum](http://plumbum.readthedocs.org/) to interact with [fzf](https://github.com/junegunn/fzf).Definitley check it out nice stuff!
Package: piehydra
A python wrapper for hydra (bruteforce tool)DescriptionScripts = easy profit. Scripts + hydra = more profit.Repository also includes a simple server to test the script on.UsagefrompiehydraimportHydraCommandBuilder,bruteforce,parse,LineTypecommand_builder=HydraCommandBuilder()command_builder.set_target("localhost")command_builder.set_method("ssh")command_builder.set_passwords("wordlist.txt")command_builder.set_usernames("test",list=False)command_builder.exit_on_found()defline_handler(line:str):parsed_line=parse(line)ifparsed_line.type==LineType.FOUND:print("Found: "+parsed_line.username+":"+parsed_line.password)elifparsed_line.type==LineType.ATTEMPT:print("Attempt: "+parsed_line.username+":"+parsed_line.password)# main methodbruteforce(command_builder,line_handler)Output:...
Attempt:test:s1aut11111
Attempt:test:111111!@
Found:test:testInstallNote you must have hydra installed for this to work.sudo apt install hydraNote that hydra itself is licensed under AGPL which can be foundherepipinstallpiehydra
Package: piel
PhotonicIntegratedELectronicsMicroservices to codesign photonics, electronics, communications,
quantum, and more.Free software: MIT licenseDocumentation:https://piel.readthedocs.ioSlack Channel:Join#pielin open-source-silicon.devTarget functionalityCo-simulation and optimisation between integrated photonic and
electronic chip design.System interconnection modelling in multiple domains.Chip and interposer design integration.Co-design components to circuits flow.Maintain a multi-tool dependency design environment.pielaims to provide an integrated workflow to co-design photonics and
electronics, classically and quantum. It does not aim to replace the
individual functionality of each design tool, but rather provide a glue
to easily connect them all together and extract the system performance.ExamplesFollow the manyexamples in the
documentation.Microservices ToolsetThis package provides interconnection functions to easily co-design
microelectronics through the functionality of the major python-integrated microelectronics projects and
photonics via theGDSFactory project.Some existing microservice dependency integrations are:amaranth- A modern hardware definition language and toolchain based on Python.cocotb- a coroutine based
cosimulation library for writing VHDL and Verilog testbenches in
Python.hdl21- Analog Hardware
Description Library in PythonGDSFactory- An open
source platform for end to-end photonic chip design and validationOpenLane v1- an
automated RTL to GDSII flow based on several components including
OpenROAD, Yosys, Magic, Netgen and custom methodology scripts for
design exploration and optimizationOpenlane v2- The next generation of OpenLane, rewritten from scratch in Python with a modular architecturesax- S-parameter based frequency
domain circuit simulations and optimizations using JAX.thewalrus-A library for
the calculation of hafnians, Hermite polynomials and Gaussian boson
sampling.qutip- QuTiP: Quantum Toolbox in
Pythonpielalso provides a common dependency-resolved environment for all these tools, so that you just get started with designing rather than manage dependencies (which is a massive pain). Full flow environment toolsets can usenix,docker, andlocalinstallations following the existing open-source design flows.ContributionIf you feel dedicated enough to become a project maintainer, or just
want to do a single contribution, let's do this together!
Package: pie-lock
Pie-lockAll lock module  using redis for control.InstallationWith Pypi:pipinstallpie-lockWith Github:pipinstallgit+https://github.com/bacsiTuan/pielock.gitUsage Distributed Lockkey="test1"success,msg=redis_lock.acquire(key)print(msg)ifnotsuccess:print(msg)redis_lock.release(key)Usage Optimistic Lockdeftest_optimistic_lock(self):is_locked1,msg=redis_lock.acquire("key1")ifnotis_locked1:print(msg)is_locked2,msg=redis_lock.acquire("key1")ifnotis_locked2:print(msg)is_locked3,msg=redis_lock.acquire("key1")ifnotis_locked3:print(msg)release,msg=redis_lock.release("key1")ifnotrelease:print(msg)is_locked4,msg=redis_lock.acquire("key1")ifnotis_locked4:print(msg)ConfigurationRedis configurationfrompie_lock.backendsimportDistributedLockredis_lock=DistributedLock(expires=5,timeout=5,retry_after=1,# seconds between retriestries=32,# max number of tries)redis_lock.get_client(host="localhost",port=19821,password="passsword",username="default")Note: all fields after the scheme are optional, and will default to
localhost on port 6379, using database 0.DEFAULT_TIMEOUT(default: 60)If another client has already obtained the lock, sleep for a maximum of
this many seconds before giving up. A value of 0 means no wait (give up
right away).The default timeout can be overridden when instantiating the lock.LimiterBased on sliding window algorithmfrompie_lock.backendsimportLimiter,TimeUnitredis=Limiter(host="localhost",port=19821,password="passsword",username="default",socket_timeout=2,)foriinrange(6):allow,msg=redis.allow(redis_key="mylist",per=TimeUnit.SECOND,count=2)ifnotallow:print(msg)time.sleep(1)allow,msg=redis.allow(redis_key="mylist",per=TimeUnit.SECOND,count=2)ifnotallow:print(msg)We consider any existing lock older than this many seconds to be invalid
in order to detect crashed clients. This value must be higher than it
takes the critical section to execute.

The default expires can be overridden when instantiating the lock.
Package: pi-eltakows-webthing
pi_eltakows_webthingA web connected Eltako windsensor measuring wind speed on Raspberry PiThis project provides awebthing APIto aEltako windsensorrunning on a Raspberry Pi. As a webthing, the Eltako windsensor can be discovered and used byhome automation systemsor custom solutions supporting the webthing API.The pi_eltakows_webthing package exposes an http webthing endpoint which supports reading the wind speed via http. E.g.# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7050/properties 
{
   "windspeed": 2.6
}Regarding the RaspberryPi/Eltako windsensor hardware setup and wiring please refer tutorials such asMeasure Wind Speed with Eltako Windsensor and Win10 IoT CoreTo install this software you may useDockerorPIPpackage manager such as shown belowDocker approachsudo docker run --privileged -p 7050:7050 -e gpio=25 grro/pi_eltakows_webthing:0.2.0PIP approachrequires python 3.xsudo pip install pi_eltakows_webthingAfter this installation you may start the webthing http endpoint inside your python code or via command line usingsudo eltakows --command listen --port 7050 --gpio 25Here, the webthing API will be bind ton port 7050 and be connected to the Eltako windsensor reed switchAlternatively to thelistencommand, you can use theregistercommand to register and start the webthing service as systemd unit.
By doing this the webthing service will be started automatically on boot. Starting the server manually using thelistencommand is no longer necessary.sudo eltakows --command register --port 7050 --gpio 25
Package: pieman
piemanThe package contains the utilities which are used byPieman, script for creating
custom OS images for single-board computers. The utilities are:apk_tools_version.py: fetches the latest version of the
apk-tools-static package.bsc.py: BSC (Build Status Codes)client.bscd.py: BSC (Build Status Codes)server.check_mutually_exclusive_params.py: checks if two specified
environment variables are defined.check_redis.py: checks if the Redis server, needed byBSC server
and
client,
is available.check_wpa_passphrase.py: checks if WPA passphrases are valid. A
passphrase is considered as valid when 1) it’s between 8 and 63
characters and 2) it doesn’t contain any special characters. These
two simple checks were borrowed from the original wpa_supplicant
codebase and rewritten in Python (seewpa_supplicant/wpa_passphrase.c).depend_on.py: sometimes one environment variable (A) can’t be
specified without another one (B), so this utility helps Pieman
explicitly say that A depends on B and check if B is set to true (if
bool) or simply specified (in other cases) when A is set to true (if
bool) or simply specified (in other cases).du.py: provides the disk usage of the specified directory. It was
developed primarily for estimating chroot environments disk usage. In
some cases the utility provides more accurate result thandufrom
GNUcoreutils.image_attrs.py: allows getting image attributes which are stored
in thepieman.ymlfiles. The utility is more high-level tool thanPyYAMLbecause it’s aware of thepieman.ymlspecifics.preprocessor.py: takes a YAML file and prints it to stdout,
substituting variables for their values. The preprocessor supports
the${VAR}syntax to reference variables values. There are three
types of variables:environment variables (for example,${USER}or${HOME});the${parent_node_name}builtin which contains parent nodes
names, as it’s seen from the name of the variable;every string type node.render.py: renders config templates (which areJinja2templates under the
hood).wget.py: very limited GNUWgetalternative.Installationsudo pip3 install pieman
Package: pie-manager
PIE Project ManagerPie is a loose structured python project manager.A Loose structured and easy to use python project manager. Different sets of
commands can be accessed by using the cli inside a project directory or
outside of it.InstallationInstall PIE Project Manager on pippipinstallpie-managerpip3installpie-managerChangelogsChangelogsUsagepie<cli-command><cli-arguments>-<cli-options>
pie<project-dir>## while outside project dirpierun<args>## while inside project dirpie<file>.py<args>## anywhereCLI CommandsGeneralCLI CommandDescription-V, --versionPrints the pie version number.--helpShows the help message for a certain command.changelogDisplays the changelog for the current version of PIE.Outside a projectCLI CommandDescriptioncfgEdits the config file.delete-projectDeletes a project.listprojLists all the projects in the current directory.newCreates a new python project.pkgPackages a project.unpkgUnpacks a project.Inside a project (Directory should contain a "project.json")CLI CommandDescriptionautoinstallAutomatically installs all modules to the venv, used in the project.installInstalls a package in the virtual environment.listDisplays pip list of the virtual environment.pipRuns pip commands from the virtual environment.pushPushes the repository to the specified remote and branch (Assuming Git repo is initialised).reqsGenerates a requirements.txt file for the project.runRun a project while inside it's directory.showDisplays pip package of the virtual environment.uninstallUninstall a package from the virtual environment.verDisplays or Changes the version of the python project.CLI Demonstrationhttps://user-images.githubusercontent.com/58636952/158674913-2b969a30-54db-447b-9541-78871ff18356.mp4
Package: pie-models
pie-modelsIMPORTANT: THIS PROJECT WAS MOVED TOpie-modules, NO FURTHER
DEVELOPMENT WILL HAPPEN HERE.Model and Taskmodule implementations forPyTorch-IE.Available models:SimpleSequenceClassificationModelSequenceClassificationModelTokenClassificationModelWithSeq2SeqEncoderAndCrfAvailable taskmodules:RETextClassificationWithIndicesTaskModuleSetuppipinstallpie-modelsTo install the latest version from GitHub:pipinstallgit+https://git@github.com/ArneBinder/pie-models.gitDevelopmentSetupThis project is build withPoetry. See here forinstallation instructions.Get the code and switch into the project directory:gitclonehttps://github.com/ArneBinder/pie-modelscdpie-modelsCreate a virtual environment and install the dependencies:poetryinstallFinally, to run any of the below commands, you need to activate the virtual environment:poetryshellNote: You can also run commands in the virtual environment without activating it first:poetry run <command>.Code Formatting, Linting and Static Type Checkingpre-commitrun-aTestingrun all tests with coverage:pytest--cov--cov-reportterm-missingReleasingCreate the release branch:git switch --create release mainIncrease the version:poetry version <PATCH|MINOR|MAJOR>,
e.g.poetry version patchfor a patch release. If the release contains new features, or breaking changes,
bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump
the patch version. SeeSemantic Versioningfor more information.Commit the changes:git commit --message="release <NEW VERSION>" pyproject.toml,
e.g.git commit --message="release 0.13.0" pyproject.tomlPush the changes to GitHub:git push origin releaseCreate a PR for thatreleasebranch on GitHub.Wait until checks passed successfully.Merge the PR into the main branch. This triggers the GitHub Action that creates all relevant release
artefacts and also uploads them to PyPI.Cleanup: Delete thereleasebranch. This is important, because otherwise the next release will fail.
Package: pie-modules
pie-modulesModel-, taskmodule-, and metric-implementations forPyTorch-IE.Available models:SimpleSequenceClassificationModelSequenceClassificationModelWithPoolerSimpleTokenClassificationModelTokenClassificationModelWithSeq2SeqEncoderAndCrfSimpleExtractiveQuestionAnsweringModelSimpleGenerativeModelAvailable taskmodules:RETextClassificationWithIndicesTaskModuleLabeledSpanExtractionByTokenClassificationTaskModuleExtractiveQuestionAnsweringTaskModuleTextToTextTaskModulePointerNetworkTaskModuleForEnd2EndREAvailable metrics:SpanLengthCollectorSQuADF1Setuppipinstallpie-modulesTo install the latest version from GitHub:pipinstallgit+https://git@github.com/ArneBinder/pie-modules.gitDevelopmentSetupThis project is build withPoetry. See here forinstallation instructions.Get the code and switch into the project directory:gitclonehttps://github.com/ArneBinder/pie-modulescdpie-modulesCreate a virtual environment and install the dependencies:poetryinstallFinally, to run any of the below commands, you need to activate the virtual environment:poetryshellNote: You can also run commands in the virtual environment without activating it first:poetry run <command>.Code Formatting, Linting and Static Type Checkingpre-commitrun-aTestingrun all tests with coverage:pytest--cov--cov-reportterm-missingReleasingCreate the release branch:git switch --create release mainIncrease the version:poetry version <PATCH|MINOR|MAJOR>,
e.g.poetry version patchfor a patch release. If the release contains new features, or breaking changes,
bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump
the patch version. SeeSemantic Versioningfor more information.Commit the changes:git commit --message="release <NEW VERSION>" pyproject.toml,
e.g.git commit --message="release 0.13.0" pyproject.tomlPush the changes to GitHub:git push origin releaseCreate a PR for thatreleasebranch on GitHub.Wait until checks passed successfully.Merge the PR into the main branch. This triggers the GitHub Action that creates all relevant release
artefacts and also uploads them to PyPI.Cleanup: Delete thereleasebranch. This is important, because otherwise the next release will fail.
Package: piencrypt
PiEncryptpip install piencryptEncrypt your crucial data into Image file.Minimal appfrompiencryptimportpier=pie.PiEncrypt('pic.png')r.get_data()r.hide_data("Hello my name is Sid")read=r.read_data()r.revert()print(read)Initialize and create a backup of the picture as bytesr=pie.PiEncrypt('pic.png')r.get_data()pic.jpg should be replaced by your picture name present in the root directoryHide the disired data into the picturer.hide_data("Hello my name is Sid")Read the hidden data from the pictureread=r.read_data()print(read)Revert the picture from the backup filer.revert()https://pypi.org/project/piencrypt/Repeat !
Package: pieoffice
PIE-Office: A terminal based script converter for ancient (Proto-)Indo-European languages.This application is a tentative to convert my editor-based keybinding plugins for typing ancient Indo-European languagespievimandpie-macsto a standalone application.
I am not much of a GUI person, so this comes as a terminal based converter, but it will hopefully be more useful for those not usingvimoremacs.
Generally, this project will lag behind thepievim, since it is being done in a rather hobbist fashion.So far, the mappings cover:Proto-Indo-European (pieoffice convert pie <text>)Indic:Vedic / Sanskrit:Devanagari (pieoffice vedic convert <text>orpieoffice sanskrit convert <text>)ISO (pieoffice vedic convert <text> -t isoorpieoffice sanskrit convert <text> -t iso)IAST (pieoffice vedic convert <text> -t iastorpieoffice sanskrit convert <text> -t iast)Iranic:Avestan:Script (pieoffice avestan convert <text>)Transliterated as in Hoffman (pieoffice convert avestan <text> -t translit)Old Persian Cuneiform (pieoffice convert oldpersian <text>)Celtic:Ogham Script (pieoffice convert ogham <text>)Italic:Oscan Script (pieoffice convert oscan <text>)Germanic:Gothic Script (pieoffice convert gothic <text>)Armenian:Script (pieoffice convert armenian <text>orpieoffice convert armenian <text> -t armenian)Script, Maiscules only (pieoffice convert armenian <text> -t maiscules)Romanized in ISO (pieoffice convert armenian <text> -t iso)Romanized in Classical (pieoffice convert armenian <text> -t maiscules)Greek:Polytonic Greek (pieoffice convert greek <text>)Mycenaean Linear B Script (pieoffice convert linearb <text>)Cypriot Syllabary (pieoffice convert cypriot <text>)Anatolian:Hieroglyphic Luwian (pieoffice convert luwian <text>)Lydian (pieoffice convert lydian <text>)Lycian (pieoffice convert lycian <text>)Carian (pieoffice convert carian <text>)InstallationThe easiest way so far is, if you have pip, to run:pipinstall--userpieofficeAnd to upgrade:pipinstall--upgradepieofficeUsageTo figure out what are the languages available:pieofficelistTo check the rules for a given language:pieofficerules<language>To convert:pieofficeconvert<language><text>TODOJSONIt could be better having the dictionary structures converted to json, since it would allow some fancier techniques, maybe?ContributeThis is a hobbist project, so please let me know if you would employ a different algorithm or make a pull request.
Any tinkering with the code is most welcome.
Package: pieoffice-gui
PIE-Office GUI: A GUI script converter for ancient (Proto-)Indo-European languages.This application is a GUI version of my previouspieofficefor those who are more into normal applications.
I hope it is easy to use in Windows and Mac platforms (I would be glad if someone tries and send me some feedback, please do so).
I strongly suggest having the Noto font family installed in your system, covering all the wanted scripts, otherwise some signs might become a little bit funky.
Nevertheless, if you copy and paste to a well setup working environment with the proper font support, it should work like a charm.So far, the mappings cover:Proto-Indo-EuropeanIndic:Vedic / Sanskrit:DevanagariIASTIranic:Avestan:ScriptTransliteratedOld Persian CuneiformCeltic:Ogham ScriptItalic:Oscan ScriptGermanic:Gothic ScriptArmenian ScriptGreek:Polytonic GreekMycenaean Linear B ScriptCypriot SyllabaryAnatolian:Hieroglyphic LuwianLydianLycianCarianInstallationThe easiest way so far is, if you have pip, to run:pipinstall--userpieoffice_guiAnd to upgrade:pipinstall--upgradepieoffice_guiUsageSimply run:pieoffice_guiAnd follow your intuition!TODOSome rules are poorly diagrammed and might be displayed awkwardly, I should find a way to render them correctly across multiples platforms.