Saravanan666/pypi-org huggingface dataset:
Package: polybiblioglot
polybiblioglotA OCR tool to convert books scans into text and automatically translate them.Installation / SetupRequirementsTesseractpolybiblioglot uses tesseract for OCR, you will need to follow the steps describedhereto install tesseract.On macos, you may findthis gistuseful.PopplerPoppler is a pdf renderer. In this case, we use it to convert pdf's to images for processing.
If you are only converting images, it isn't needed. Please note that the program may crash if you don't install poppler
and attempt to convert a pdf.Thepdf2imagegithub explains how to install poppler depending on what platform you are on.
If you are on mac and have brew installed. It's as simple asbrew install popplerInstallationClone the repository:git clone https://github.com/bruno-robert/polybiblioglot.gitcd into it:cd polybiblioglot(optional) create a python virtual environment:python -m venv envthensource ./env/bin/activateinstall python dependanciespip install -r requirements.txtRunning polybiblioglotTo run polybiblioglot, simply execute the main.py filepython main.pyNotes and limitation (for now)LimitationsThe OCR method used is optimized for high acuracy and not speed. I might add the functionality to change this in the future.NotesAll computationally expensive or I/O intensive tasks are run asynchronously. This keeps the UI snappy. I'm currently using the DearPyGUI asynchronous call method wich will be depricated in the next version. A migration to python's out of the box threading library will be needed at that point.
Package: polybius-square-pro
Polybius square cipher ProPolybius square cipher, also known as chess-board cipher, has the advantage of being simple to understand, but the disadvantage is that the encryption strength is low and it is easy to crack.Therefore, chessboard ciphers are usually used for some simple encryption scenarios, and are not suitable for situations with high security requirements.In order to improve its encryption strength, the author made the following improvements:Key strengthening, the original 5×5 square matrix to 9×9Insert new random numbers into the encrypted password for interference to prevent the same plaintext from being cracked by word frequency analysis.Shift encryption, add a random digit from 0 to 9 to the head, and add a number of encrypted ciphertext length and a check code to the tail.Reverse scrambles, decrypts the newly generated password with the key in reverse order to obtain garbled codeGet startimportpolybius_square_proaspspinputwords='...'# The word you want to encode.ciphertext=psp.Core.encode(inputwords)print(ciphertext)plaintext=psp.Core.decode(ciphertext)print(plaintext)# Checkprint(inputwords==plaintext)# TrueFeatureThe same plaintext output ciphertext is differentDecrypt the text immediately after encryption for easy verificationPure string replacement interpretation, small calculation and high accuracyThe output ciphertext is highly complex and about twice as long as the plaintextThe key can be customized and there are many kinds of the same character 81! Combination modeInput plaintext length up to 1000+ characters (more parameters can be used, but not recommended)
Package: polyblur
# Polyblur Python packagePytorch-based implementation of “Polyblur: Removing mild blur by polynomial reblurring” [Delbracio2021] and detailed in “Breaking down Polyblur: Fast blind correction of small anisotropic blurs” [Eboli2022]. Any question atthomas.eboli@ens-paris-saclay.fr.Import the package as`shell import polyblur `In your Python script, run the functional interface`shell polyblur.polyblur_deblurring `or the torch.nn.Module interface`shell polyblur.PolyblurDeblurring `
Package: polychemprint3
# PolyChemPrint3
Free and Open Source 3D Printer control software targeted at
Research Users (Polymer/Paste/BioPrinting)
Written in/for Python 3.3+ (but may work on others)This software was initially written by Bijal Patel from 2017-2019 as
an object-oriented cross-platform tool and successor to
PolyPrint, a Perl script.Within our lab (Diao Group at the University of Illinoishttp://diao.scs.illinois.edu/Diao_Lab/Home.html)
we have succesfully used it to print solutions for organic
semiconductors/conductors, polymer photonics, hydrogels, chocolate, etc.The software is written to be convenient for researchers with
features like automatic data logging, parameterized shapes, and
convenient macros.Please cite the following papers if you make use of this software
in your research!
> [Paper Submitted]
>
Package: polychemprint3-beta
# PolyChemPrint3
Free and Open Source 3D Printer control software targeted at
Research Users (Polymer/Paste/BioPrinting)
Written in/for Python 3.3+ (but may work on others)This software was initially written by Bijal Patel from 2017-2019 as
an object-oriented cross-platform tool and successor to
PolyPrint, a Perl script.Within our lab (Diao Group at the University of Illinoishttp://diao.scs.illinois.edu/Diao_Lab/Home.html)
we have succesfully used it to print solutions for organic
semiconductors/conductors, polymer photonics, hydrogels, chocolate, etc.The software is written to be convenient for researchers with
features like automatic data logging, parameterized shapes, and
convenient macros.Please cite the following papers if you make use of this software
in your research!
> [Paper Submitted]
>
Package: polychromy
PolychromyDescriptionPolychromy is a Python script to manipulate the colors of a text.FeaturesFunctioncolorateprints text of a specified colour in a specified colour background.Functionshowprints out color details such as Hex and RGB values of a given colour in a square of the given colour.Latest Version 1.0.2Table of ContentsGetting StartedPrerequisitesInstallationUsageParametersExamplesContributingLicenseGetting StartedPrerequisitesThis script relies on the Python standard library andtextlinebreaker.InstallationInstall the package with pippipinstallpolychromyImport the selected package in your programfrompolychromyimportcolorateorfrompolychromyimportshowUsageCalling the functionshowyour program will print a square of the selected color with details about it.
Calling the functioncolorateinside your program will return a printable string of the desired color.ParametersThe function accept most color names, RGB values[0-255];[0-255];[0-255], Hex values#[00-FF][00-FF][00-FF], xterm color number in the formatx[0-255], and ANSI codes.[^Note][^Note]: The output color might differ from the desired one depending on terminal used.ExamplesHere are some examples of how to use polychromy.ShowUsing the functionshowyou can print out color details such as Hex and RGB values of a given colour in a square of the given colour.importsysfrompolychromyimportshow# If you run this program without any argument it asks you for a color and prints it out to the screen.iflen(sys.argv)==1:color_in=input("Enter a colour: ")show(color_in)# Giving a color as argument it prints it out directly to the screen# Accepted values are: Name colors, HEX and RGB values.else:show()Output 1ColorateUsing the functioncolorateyou can print text of a specified colour in a specified colour background.frompolychromyimportcolorate# Texts to printtext1="There are only 10 kinds of people in this world:"text2="Those who know binary and Those who don't."# Foreground (text) coorsforeground_1="#F5F5F5"foreground_2=90# Background colorsbackground_1="0;128;128"background_2="Cosmic Latte"print(colorate(text1,foreground_1,background_1))print(colorate(text2,foreground_2,background_2))Output 2ContributingIf you'd like to contribute to this project, please follow these steps:Fork the repository on GitHub.Clone the fork to your local machine.Create a new branch for your feature or bug fix.Make your changes and commit them.Push the changes to your fork on GitHub.Create a pull request to the original repository.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: polycircles
Polycircles: KML (WGS84) circle approximation using polygons with many vertices.Build Status[![Downloads](https://pypip.in/download/polycircles/badge.png)](https://pypi.python.org/pypi/polycircles/)[![Manhattan example]()Approximate a circle using a 36-vertices polygon:>>>frompolycirclesimportpolycircles>>>polycircle=polycircles.Polycircle(latitude=32.074322,longitude=34.792081,radius=100,number_of_vertices=36)>>>polycircle.to_lat_lon()((32.075223809870174,34.792081),(32.075210109219384,34.79226491831068),(32.07516942356622,34.792443248196115),(32.07510298915787,34.792610571051924),(32.075012824622526,34.79276180275308),(32.074901669628204,34.792892348145145),(32.07477290163153,34.792998240672475),(32.07463043324713,34.793076262899916),(32.074478593357114,34.79312404426628),(32.07432199557388,34.79314013310001),(32.0741653980537,34.79312404071046),(32.07401355892112,34.793076256217155),(32.07387109169717,34.79299823166882),(32.073742325123995,34.792892337906565),(32.073631171644536,34.79276179251449),(32.07354100853271,34.79261056204826),(32.073474575284784,34.792443241513354),(32.07343389038906,34.79226491475485),(32.07342019000133,34.792081),(32.07343389038906,34.791897085245154),(32.073474575284784,34.79171875848665),(32.07354100853271,34.791551437951746),(32.073631171644536,34.791400207485516),(32.073742325123995,34.79126966209344),(32.07387109169717,34.79116376833119),(32.07401355892112,34.79108574378285),(32.0741653980537,34.79103795928955),(32.07432199557388,34.791021866899996),(32.074478593357114,34.79103795573373),(32.07463043324713,34.79108573710009),(32.07477290163153,34.79116375932753),(32.074901669628204,34.79126965185486),(32.075012824622526,34.79140019724693),(32.07510298915787,34.79155142894808),(32.07516942356622,34.79171875180389),(32.075210109219384,34.79189708168933),(32.075223809870174,34.792081))Documentation:http://polycircles.readthedocs.org/en/latest/Code:https://github.com/adamatan/polycircles
Package: poly-classifier
DescriptionThis folder contains a program that decides round complexity of homogenous LCL problems on (binary) trees in the polynomial region.UsageInstall package using pip by runningpip3 install ..Runpython -m poly_classifierand describe (on standard input) configurations of a problem.
For example:Note that one needs to first run the classifier (python -m poly_classifier) and only afterwards provide an input
on a separate lines.> python -m poly_classifier 
Polynomial classifier for homogenous trees (currently for binary rooted & unrooted trees)
For unrooted case, use node configuration in form: 'A B C' and edge configurations in form 'A B'
For rooted case, use only node configurations in form 'A: B C'.
Node configurations: (each configuration on a new line and end with empty line)
a a a
b b b

Edge configurations: (each configuration on a new line and end with empty line)
a b

Complexity of the problem is Θ(n^(1/1)).TestsTo execute tests, run the following from the root directory:python -m unittest discover
Package: polyclean
polycleanClean up geospatial polygon datasets.This package provides utilities for cleaning up messy polygon data in geospatial datasets. It aims to provide solutions to common issues such as holes, gaps, and overlaps. Generally, functions expect ageopandas.GeoDataFrameas input and will return one as well. Polygons are thus always passed around as data frames, making it easy to translate them to and from commonly used geospatial file formats (e.g. OGC GeoPackage, ESRI Shapefile). This has the added benefit of mimicking the way vector workflows are done in QGIS or ArcGIS, making the package more intuitive to use (hopefully).This package relies heavily onGeopandasandShapely, so understanding how those packages handle vector data will aid with understandingpolycleanutilities.InstallationUNIX-like (Linux, MacOS)pip install polycleanThis should install the package and all necessary dependencies.WindowsMake sure you have the following packages installedfirst:Fiona >= 1.8GDAL >= 3.2Any recent version (compatible withShapely >= 1.8) should suffice.ExamplesFill HolesHoles in polygons can be filled in based on area. To fill in all holes in a dataset, set thethresholdvalue to a very large value (e.g.1e6).Fill GapsGaps between polygons can be identified and eliminated. A new field calledgapis created, with gap polygons given a value of 1 and non-gap polygons (i.e. the original polygons) given the valueNaN. These gaps can be automatically removed by folding them into the polygon with which they share the longest edge. This mimics the functionality of the theArcGIS Eliminate tool.Resolve OverlapsOverlapping regions between polygons can be identified, extracted, and, optionally, flattened.
Package: polyclonal
Model mutational escape from polyclonal antibodies using deep mutational scanning data.polyclonalis a Python package written bythe Bloom lab.SeeYu et al (2022)for an explanation of the approach implemented inpolyclonal.The source code ison GitHub.See thepolyclonal documentationfor details on how to install and usepolyclonal.To contribute to this package, read the instructions inCONTRIBUTING.rst.
Package: polycloud
Manage your open polycloud platform.The polycloud CLI includes all features to manage your polycloud setup including service template, UI templates, platform template and operation tasks. This means you save time developing and hava a higher convinince then using multiple scripts.Getting StartedInstall the cli usingpip install polycloud. Get an overview of all<objects>and<commands>usingpolycloud -h.PrerequisitesInstall Python and Pip.brewinstallpythonInstallcementframework and its dependenciespipinstall-rrequirements.txtInstallationInstall the python code for the CLIpipinstallsetup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run polycloud cli application

$ polycloud --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingPolycloud,
and can be built with the includedmakehelper:$ make docker

$ docker run -it polycloud --help
Package: polycomp
========Polycomp========This package provides a set of Python bindings to the libpolycomplibrary, as well as a stand-alone program which can be used tocompress/decompress FITS files into polycomp files (still FITS filesin disguise).Requirements------------1. Either Python 2.7 or 3.4 will work2. Libpolycomp (https://github.com/ziotom78/libpolycomp) must alreadybe installed3. The following Python libraries are required:- `click` (http://click.pocoo.org/5/);- `numpy` (http://www.numpy.org/);- Either `astropy` (version 0.4 or greater, http://www.astropy.org/) or`pyfits` (http://www.stsci.edu/institute/software_hardware/pyfits). (The`setup.py` script installs Astropy.)**Note**: Recent versions of NumPy (1.10) seem to be incompatible with PyFits3.3: saving files will lead to strange assertion errors. NumPy 1.8.2 and PyFits3.3 are fine.Basic usage-----------To use the bindings in your code, simply import ``pypolycomp`` in yourproject::import pypolycompThis package provides also a standalone program, ``polycomp``. Use the``--help`` flag to get some help about how to use it::$ polycomp --help
Package: polyconf
PolyConfCreditThepolyconf.core.deepmergemodule is a heavy refactor ofgh://toumorokoshi/deepmerge.
(More specifically, I based it on the tip ofmainat the time, which was commit33a078ac7a29b63dfb91fea806cc6b96ede3fd23.)
I don't want this library to have 3rd party dependencies, so I basically stripped the dynamic configurability ofdeepmerge,
such that the behavior ofalways_merge()became theonlybehavior.The keyword arguments are quite self-explanatory, so to concisely define the behavior, consider this snippet:always_merger=Merger(type_strategies=[(list,"append"),(dict,"merge"),(set,"union"),],fallback_strategies=["override"],type_conflict_strategies=["override"],)The refactor isheavy, indeed.  At the time of this writing,cloccalculates it at only22lines of code.
However, I still want to give credit where it's due because there are a couple lessons in recursion
and fallback behavior that would have been painful to work out myself.
It also serves as a reminder for future reference because if I ever reverse the moratorium on 3rd party libs,
I'll happily depend ondeepmergedirectly.
Package: polycraft-lab
Polycraft AI Lab (PAL)A tool to help train reinforcement learning models to handle novel environments.AboutPolycraft AI Lab consists of a wrapper for Polycraft World game environments.
These environments can used to train RL models that respond to novel tasks
and scenarios.Usage1a. Install via packageFirst, download Polycraft AI Lab using pip:pipinstallpolycraft-labThis downloads thepolycraft-labpackage from pip, which contains tools to
easily set up and manage the Polycraft game client.To install the most recent changes (experimental version):pipinstall--index-urlhttps://test.pypi.org/simple/--extra-index-urlhttps://test.pypi.org/simple/polycraft-lab1b. Local InstallationAlternatively, to install the latest version from source:gitclonehttps://github.com/PolycraftWorld/polycraft-ai-lab
pipinstall./polycraft-ai-labIf you installed PAL using method (1a), this isn't required.2. Import and UseNow train your agent like you would do with any other gym-style environment:frompolycraft_lab.envs.helpersimportsetup_envenv=setup_env('pogo_stick')observation=env.reset()for_inrange(1000):env.render()action=env.action_space.sample()# your agent here (this takes random actions)observation,reward,done,info=env.step(action)ifdone:observation=env.reset()env.close()Polycraft AI Lab also contains a wrapper [WIP] to start experiment creation from
the command line. The following begins the experiment creation process by
launching Minecraft:python-mpolycraft_lab.ect--createEXPERIMENT_NAME--launchRunningpython -m polycraft_lab.ect --create EXPERIMENT_NAMEwill allow you to
create simpler experiments, allowing configuration of more high-level domain
attributes, like action space and a preconfigured goal, such as finding
diamonds as quickly as possible.DevelopmentClone out the repository:gitclonehttps://github.com/PolycraftWorld/polycraft-ai-lab.gitOptionally, you can create a virtual environment to store dependencies.In any case, install the dependencies:pipinstall-rrequirements.txtAlternatively, a virtual environment can be created with the necessary
dependencies by running:cdpolycraft-ai-lab
pipenvinstallDistributionPolycraft AI Lab will be distributed using pip.The easy way to upload to upload to the test PyPI index:./release.shTo release to the live PyPI index:./release.sh--release
Package: polycube
polycubeA Python Package for Generating Polycube ModelsThis package can be used to easily generate models of polycubes that are appropriate for 3D printing.
It generate code in theopenscadformat (i.e..scadfiles).
These can be viewed and transformed usingOpenSCAD, which is a free software for creating solid 3D CAD objects.
These files can then be converted directly to.stlfiles via either the OpenSCAD GUI or from the command line.Installationpip install polycubeTutorialThe basic input to make a polycube is a list of triple indicating the coordinates of the cubes.
The assumption is that the coordinates will be integers.
The actual size is scaled up according to the size of the cubes.frompolycubeimportpolycubepc=polycube([[0,0,0],[0,0,1],[0,1,0],[1,0,0]])You can output to the scad file.scad_render_to_file(pc,'filename.scad')You can use the OpenSCAD commandline utility to convert this.scadfile to a.stlfile suitable for use with a 3D printing slicer.openscad -o outfilename.stl infilename.scad
Package: poly_decomp
Installation$pipinstallpoly_decompUsageimportpoly_decompaspdpolygon=[[0,0],[5,0],[5,5],[2.5,2.5],[0,5]]#           |\    /|#           | \  / |#           |  \/  |#           |      |#           |------|printpd.polygonDecomp(polygon)# --> [[[0, 0], [2.5, 2.5], [0, 5]], [[0, 0], [5, 0], [5, 5], [2.5, 2.5]]]#           |\   /|#           | \ / |#           |  /  |#           | /   |#           |/----|printpd.polygonQuickDecomp(polygon)# --> [[[5, 0], [5, 5], [2.5, 2.5]], [[2.5, 2.5], [0, 5], [0, 0], [5, 0]]]#           |\   /|#           | \ / |#           |  \  |#           |   \ |#           |----\|AboutImplementation based onSchteppe’spoly-decomp.js.Algorithms based onMark Bayazit’sPoly Decomp.Release Historydev0.0.1 (2016-10-25)Initial release.
Package: polydown
Batch downloader forpolyhaven.com. Download hdris, textures and models in any sizes you want. This project uses Poly Haven'sPublic API.Installationpip install polydownHow to Use$ polydown hdris

# download all available sizes of all hdris into current folder.
> 🔗(polyhaven.com/hdris['all sizes'])=>🏠$ polydown <asset_type>

# download all assets of this asset type to the current folder in all available sizes.
# asset types: "hdris", "textures", "models".$ polydown textures -c

# list of category in the given asset type.$ polydown hdris -f hdris_down -s 2k 4k

# download all hdris with given sizes into "hdris_down" folder.
# /if there is no such folder it will create it./
> 🔗(polyhaven.com/hdris['2k', '4k'])=>🏠(hdris_down)Example Usage$ polydown models -c decorative -f folder -s 1k

# download all "models" with "1k textures" in the "decorative" category into the "folder".Arguments:<asset_type>      "hdris, textures, models"
-h, --help        show this help message and exit
-f, --folder      target download folder.
-c, --category    category to download.
-s, --sizes       size(s) of downloaded asset files. eg: 1k 2k 4k
-o, --overwrite   overwrite if the files already exists. otherwise the current task will be skipped.
-no, --noimgs     do not download 'preview, render, thumbnail...' images.
-it, --iters      amount of iterations.
-t, --tone        Download 8K Tonemapped JPG (only HDRIs).
-ff, --fileformat file format for hdris (hdr, exr).
-v, --version     show program's version number and exitTo-DoUnit TestsProgressbar for current download task(s)Select the file format to downloadDownload a specific asset, "polydown hdris stuttgart_suburbs"RequirementsPython>3.7DependenciesrequestsrichLicenseMIT
Package: polyencryption
# polyencryption
this module allows for .txt file encryption and decryption through use of a key.Change Log0.0.1 (6/14/2020) - First release
0.0.2 (6/14/2020) - Made changes that actually allowed the module to be installed
0.0.3 through 0.0.9 - Me trying to make my first module work
1.0.1 (6/15/2020) - Fixed the set- 10 cycle through the keyfile when the key may be longer
1.1.0 (6/18/2020) - Vastly increased the security by not only adding to the letter values but subtracting as well-
effectively doubling the security