Saravanan666/pypi-org huggingface dataset:
Package: projkit
projkitWelcome toprojkit, a Python library designed to simplify camera projection tasks and calculations,
particularly when working with image predictions and 3D point cloud data.
This library provides functions to effectively incorporate point cloud data with image predictions.InstallationpipinstallprojkitFeaturesCamera Projection to Image Coordinates: Easily project point cloud data onto image coordinates using provided camera parameters.fromprojkit.camopsimportproject_in_2d_with_K_R_t_dist_coefffromprojkit.imutilsimportto_image,filter_image_and_world_points_with_img_dimic,wc,z=project_in_2d_with_K_R_t_dist_coeff(K,R,t,d,wc)ic,wc,z=filter_image_and_world_points_with_img_dim(Nx,Ny,ic,wc)projection_on_image=to_image(Ny,Nx,ic,wc)Intersection with Binary Mask: Determine intersections between projected data and a binary mask.fromprojkit.imutilsimportintersectionbinary_mask=cv2.imread(file,cv2.IMREAD_GRAYSCALE)binary_mask[binary_mask>0.50]=255intersection_img,locations=intersection(binary_mask,ic,wc)Identifying Data Holes in Mask: Identify locations in the mask that require interpolation due to missing point cloud data.importnumpyasnpfromprojkit.imutilsimportdifference_missing_z_values_image=difference(Ny,Nx,ic,wc,binary_mask)x,y=np.where(_missing_z_values_image==255)locations=list(zip(y,x))Nearest Search Interpolation: Perform nearest search interpolation for dense regions in point cloud data.fromprojkit.imutilsimportnn_interpolationquery=nn_interpolation(ic,wc)points=query.generate_points_for_nn_search(Ny,Nx,binary_mask)ic,wc,dist=query.query(points,dist_thresh=15)For larger datasets, utilize batch processing:fromprojkit.imutilsimportnn_interpolationfromprojkit.pyutilsimportbatch_genquery=nn_interpolation(ic,wc)points=query.generate_points_for_nn_search(Ny,Nx,binary_mask)fori,batchinbatch_gen(points,batch_size=500):ic,wc,dist=query.query(batch,dist_thresh=15)
Package: projman
projman is a tool for project management and diagrams creation,
like Gantt diagrams and resources activities diagram.It includes many functionnalties:
* scheduling of a project,
* managing work-groups’actvities,
* Gantt diagrams generation,
* resources usage diagrams generation,
* generation of xml doc (under docbook dtd) to list tasks, evaluate costs.Input and output files are easily parseable XML files.
Package: projpicker
ProjPickerProjPicker(projection picker) is a
Python module that allows the user to select all coordinate reference systems
(CRSs) whose extent completely contains given points, polylines, polygons, and
bounding boxes using set-theoretic logical operators in a postfix notation. The
goal is to make it easy and visual to select a desired projection by location.
This project was motivated bya GRASS GIS feature request.
Seeits documentation.
The project uses a copy ofGetOSMto
download OpenStreetMap tiles.ProjPicker Web is online athttps://projpicker.pythonanywhere.com/.ForGRASS GIS, a new moduleg.projpickerthat wraps around this project is available.ProjPicker running on Android usingTermuxInstallTermuxfromF-DroidRun it from AndroidInstall Python:pkg install pythonInstall ProjPicker:pip install projpickerStart the ProjPicker web server:projpicker -SOpenhttp://localhost:8000/in the browserChange logSeehere.SubprojectsProjPicker ArcGIS Pro toolbox(Windows)ProjPicker GUI(Linux and macOS; replaced by the core wxPython-based GUI)ProjPicker JavaScript(not under active development)IdeasClient-only web application that doesn't require Python in the backendCRS hints: Crowdsourcing agency and product information? Is usage from PROJ enough?VersioningN(.N)*[{a|b|rc}N][.postN][.devN]PEP 440{a|b|rc|.dev}Ntowards and.postNaway from the releaseNot fully compatible withsemantic versioningNot using build numbers marching away from or towards a release, but check
thisinteresting
comment.SponsorThis project was kindly funded bythe Institute for Environmental and Spatial
Analysis(IESA) atthe University of North Georgia(UNG).LicenseCopyright (C) 2021Huidae ChoandOwen SmithThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: projpicker-gui
ProjPicker GUIProjPicker GUI is the wxPython GUI forProjPicker(projection picker).
ProjPicker is a Python module that allows the user to select all coordinate
reference systems (CRSs) whose extent completely contains given points,
polylines, polygons, and bounding boxes using set-theoretic logical operators
in a postfix notation. The goal is to make it easy and visual to select a
desired projection by location. This project was motivated bya GRASS GIS feature request.
A new GRASS GIS moduleg.projpickerthat wraps around this project is available. It is a work in progress; joindiscussions. See alsoits documentation.Change logSeehere.VersioningN(.N)*[{a|b|rc}N][.postN][.devN]PEP 440{a|b|rc|.dev}Ntowards and.postNaway from the releaseNot fully compatible withsemantic versioningNot using build numbers marching away from or towards a release, but check
thisinteresting
comment.SponsorThis project is kindly funded bythe Institute for Environmental and Spatial
Analysis(IESA) atthe University of North Georgia(UNG).LicenseCopyright (C) 2021Huidae ChoandOwen SmithThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: projplot
projplot: Utilities for Creating Projection Plotsprojplotprovides a set of tools to assess whether or not an optimization algorithm has converged to a local optimum.  Its main function does this by visualizing the "projection plots" of the objective functionf(x)-- that is, by plottingfagainst each coordinate ofxwith the other coordinates fixed at the corresponding elements of the candidate optimal solutionx_opt.This package has a similar goal to the R packageoptimCheck.InstallationThis package is available onPyPiand can be installed as follows:pipinstallprojplotDocumentationAvailable onRead the Docs.ExampleAn overview of the package functionality is illustrated with the following example. Letf(x) = x^TAx - 2b^Txdenote a quadratic objective function inx, which is in the d-dimensional real space. IfAis a positive-definited x dmatrix, then the unique minimum off(x)isx_opt =A^{-1}b.For example, suppose we haveimportnumpyasnpA=np.array([[3.,2.],[2.,7.]])b=np.array([1.,10.])Then we have that the optimal solution isx_opt = (-0.765, 1.647). Now,projplotallows us to complete a visual check. The following information will need to be provided:The objective function (obj_fun): This can be either a vectorized or non-vectorized function.Optimal values (x_opt): This will be the optimal solution for your function.Upper and lower bounds for each parameter (x_lims): This will provide an initial range of values to observe.Parameter names (x_names): These are the names of your parameters, i.e. theta, mu, sigmaThe number of points to plot for each parameter (n_pts): This is the number of points that each parameter will be evaluated at for their respective plot.# Optimal valuesx_opt=np.array([-0.765,1.647])# Upper and lower bounds for each component of xx_lims=np.array([[-3.,1],[0,4]])# Parameter namesx_names=["x1","x2"]# Number of evaluation points per coordinaten_pts=10importprojplotaspjpdefobj_fun(x):'''Compute x'Ax - 2b'x.'''y=np.dot(np.dot(x.T,A),x)-2*np.dot(b,x)returny# Obtain plots with vertical x linespjp.proj_plot(obj_fun,x_opt=x_opt,x_lims=x_lims,x_names=x_names,n_pts=n_pts,opt_vlines=True)Further ReadingSee documentation foradvanced use casesand anFAQ.
Package: proJSON
proJSONA python library to compress a dict into a bytearray.InstallpipinstallproJSONThe CrafterTypes# Format"name":{"type":type,# Types specified below with arguments...}"intExample":{"type":"int",# Set int type"byte":1# Set max int size to 1 byte (int8)}"stringExample":{"type":"string",# Set string type"maxlen":1# Set max size of string ( the max size of the string is calculated by (2^(8*n)-1). if n is 1 then the max size is 255) (optional defaults to 2)}"bytesExample":{"type":"bytes",# Set bytes type"maxlen":1# Set max size of string ( the max size of the string is calculated by (2^(8*n)-1). if n is 1 then the max size is 255) (optional defaults to 2)}"dirExample":{"type":"dir",# Set dir type"subdirs":{}# A dictionary of int, string and byte types in the format above.}"boolExample":{"type":"bool"# Set bool type}"listExample":{"type":"list",# Set list type"subtype":"int",# Set list contents type to an "int""maxlen":1# The "maxlen" parameter for bytes or str (for "int" maxlen is still used instead of "byte")}Don't put a dir in another dir. It won't workInitfromproJSONimportCrafterschema={# See the [types section](###Types) for how to make this."intExample":{"type":"int","byte":1},"stringExample":{"type":"string","maxlen":1},"bytesExample":{"type":"bytes","maxlen":1},"dirExample":{"type":"dir","subdirs":{"intExample2":{"type":"int","byte":1},"stringExample2":{"type":"string","maxlen":1},}}}crafter=Crafter(schema)Encoding dataexampledata={"intExample":7,"stringExample":"Hello World!","bytesExample":b"This is bytes","dirExample":{"intExample2":200,"stringExample2":"Hello Again!"}}encoded=crafter.encode(exampledata)print(encoded)# b'\x07\x0cHello World!\x00\rThis is bytes\xc8\x0cHello Again!' (43 bytes)Decoding datadata=b'\x07\x0cHello World!\x00\rThis is bytes\xc8\x0cHello Again!'decoded=crafter.decode(data)print(decoded)# {'intExample': 7, 'stringExample': 'Hello World!', 'bytesExample': b'This is bytes', 'dirExample': {'intExample2': 200, 'stringExample2': 'Hello Again!'}} (154 bytes)
Package: projx
alphaprojxprovides a simple and extensible API for interacting with graphs in Python. Its core functionality is built around making graph transformations using the NetworkX module and a DSL based on Neo4j’s Cypher query language. It also provides an extensible ETL pipeline that uses JSON configuration (roughly modeled after orientdb-etl) to translate graph data between various persistent and in-memory representations.Official DocumentationThanks to @versae for inspiring this project.
Package: prokie-fastapi-oidc-auth
OpenID Connect for FastAPIprokie-fastapi-oidc-authis an extension toFastAPIthat allows you to add OpenID
Connect based authentication for your endpoints within minutes.Installationpip install prokie-fastapi-oidc-authKeycloak settingsAdminadmin_username = "admin"
admin_password = "admin"
host = "http://localhost:8080"Realmrealm = "myrealm"ClientSet theAccess TypetoconfidentialandStandard Flow EnabledtoON. Make sure thatValid Redirect URIscontain the URI of your app
or*if you want to allow all URIs. Make sureClient Protocolis set
toopenid-connect.client = "myclient"
secret = "xZEIb4wGoWseNumHJ4Vb7pYvdX3SIQeg"Useruser_username = "myuser"
user_password = "myuser"How to useSee test.py for a complete example.TestingTo start a Keycloak instance for testing, run the following command:dockerrun-d-p8080:8080\-eKEYCLOAK_USER=admin\-eKEYCLOAK_PASSWORD=admin\-eKEYCLOAK_IMPORT=/opt/jboss/keycloak/imports/realm-export-16.1.1.json\-v$(pwd)/realm-export-16.1.1.json:/opt/jboss/keycloak/imports/realm-export-16.1.1.json\--namekeycloak\jboss/keycloak:16.1.1dockerrun-d-p8080:8080`-eKEYCLOAK_USER=admin`-eKEYCLOAK_PASSWORD=admin`-eKEYCLOAK_IMPORT=/opt/jboss/keycloak/imports/realm-export-16.1.1.json`-v${PWD}\realm-export-16.1.1.json:/opt/jboss/keycloak/imports/realm-export-16.1.1.json`--namekeycloak`jboss/keycloak:16.1.1To export the realm configuration, run the following command:dockerexec-itkeycloak/opt/jboss/keycloak/bin/standalone.sh\-Djboss.socket.binding.port-offset=100-Dkeycloak.migration.action=export\-Dkeycloak.migration.provider=singleFile\-Dkeycloak.migration.realmName=myrealm\-Dkeycloak.migration.usersExportStrategy=REALM_FILE\-Dkeycloak.migration.file=/tmp/realm-export-16.1.1.jsondockerexec-itkeycloak/opt/jboss/keycloak/bin/standalone.sh`-Djboss.socket.binding.port-offset=100`-Dkeycloak.migration.action=export`-Dkeycloak.migration.provider=singleFile`-Dkeycloak.migration.realmName=myrealm`-Dkeycloak.migration.usersExportStrategy=REALM_FILE`-Dkeycloak.migration.file=/tmp/realm-export-16.1.1.json
Package: proknow
ProKnow DS - Python SDKThe ProKnow DS - Python SDK library provides convenient access to the ProKnow API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.DocumentationComplete documentation is available onRead the Docs.DevelopmentMac OSXInitializing a Development EnvironmentInstall the latest version of Python. This will be installed alongside the version that your operating system provides.Run the following.$python3-mvenvenv
$sourceenv/bin/activate(env)$pipinstall--upgradepip(env)$pipinstall-rrequirements.txt(env)$pipinstall-e.Deactivate your virtual environment with thedeactivatecommand. As long as the environment is not removed, you may start sessions simply with the commandsource env/bin/activate.Note: Therequirements.txtfile contains transitive dependencies in addition to direct dependencies. To reconstruct the requirements from scratch, use the following commands to install the direct dependencies used for development, packaging, and releasing.(env) $ pip install pytest-cov requests nox sphinx sphinx-rtd-theme twine wheelNote: If you wish to update the requirements with new or updated packages, run the following.(env)$pipfreeze--exclude-editable>requirements.txtTestingThe tests require the ProKnow API service to be started with thePATIENTS_MIN_PAGE_SIZEenvironment variable set to1. To do this, at the top level of the the ProKnow directory, run$PATIENTS_MIN_PAGE_SIZE=1npmrunstartBefore you start testing, you'll need access to a ProKnow DS organization where you can generate anAPI tokenfor your project. Once you have your API token create a file calledpktestconfig.pyin the test directory with the following contents:#!/usr/bin/env python
base_url = "https://example.proknow.com"
credentials_id = "{{ id from credentials.json }}"
credentials_secret = "{{ secret from credentials.json }}"Make sure to put your actual base_url and the id and secret from yourcredentials.jsonfile in place of the placeholders above. Note that for testing against a local ProKnow instance, thebase_urlshould be set tohttp://localhost:3005and the environment must be configured to use Auth0 as the identity provider (and not Keycloak or OIDC).Next, run the tests with thenoxcommand from within your virtual environment. This command runs the tests against all of the supported Python versions. You may need to install these versions on the host.$noxTo run a specific test using python 3, use the following form:$pytesttests/{{filename}}::{{testname}}To run tests with the HTML coverage report, use the following:$pytest--cov=proknow--cov-branch--cov-reporthtmltestsBuilding the DocumentationWith the virtual environment, you can runmake clean && make htmlto build the documentation.$cddocs/
$makeclean&&makehtmlPackaging & ReleaseFirst, make sure the version has been updated in setup.py. Then run the following within the virtual environment.$rm-rfdistbuild*/*.egg-info*.egg-info
$python3setup.pybdist_wheel--universal
$python3-mtwineuploaddist/*
Package: proksee-batch
Proksee BatchFeaturesProksee Batchis a command-line tool for visualizing multiple prokaryotic
genomes via theProkseeweb application. Instead of manually uploading each
genome toProkseeand manually configuring the visualization,Proksee Batchallows you to, with a single command, upload multiple genomes with custom
configuration options, add features from additonal files, and obtain links toProkseeprojects for further analysis of each genome. Also,Proksee Batchis
designed to be included in bioinformatics workflows/pipelines for analyzing
hundreds of genomes efficiently and reproducibly.The main advantage over alternative command-line genome visualization tools is
thatProksee Batchprovides access to the genome information in the form of an
interactiveProkseemap that supports zooming to the nucleotide level and that
is linked to numerous additional tools for further genome analysis via the
graphical interface. The genome maps can also be easily customized withinProkseeand exported in a variety of formats.InstallationYou can simply installProksee BatchviapipfromPyPI:pip install proksee-batchOr, better yet, usepipxto installProksee BatchfromPyPIin an isolated environment:pipx install proksee-batchTo installProksee Batchin acondaenvironment, use a YAML file like this:name:proksee-batchchannels:-conda-forgedependencies:-python=3.11-pip-pip:-proksee-batchUsagePlease see theCommand-line Referencefor details.ContributingContributions are welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Proksee Batchis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was initially generated using@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: pro-lambda
Installpip3installpro_lambdaDocumentationYou can find documentationhereDescriptionpro_lambda make it possible to modify your functions with standart mathematical and logical operators:frompro_lambdaimportpro_lambdasome=pro_lambda(lambda:1)other=some+1# then we call result as if it was (lambda: 1)() + 1assertother()==2some=pro_lambda(lambdax,y:x+y)other=some+1# here we pass some argumentsassertother(1,2)==4# we can also use another function on the right sideother=some+(lambdaz,y:z-y)assertother(1,y=2,z=3)==4It also supports async functions:importasynciofrompro_lambdaimportpro_lambdaasyncdefmain():asyncdef_some(x):awaitasyncio.sleep(0.3)returnx_save=_somesome=pro_lambda(_some)other=some+(lambda:1)assertsome.is_asyncassertawaitother(1)==2some=pro_lambda(lambda:1)other=some+_someassertother.is_asyncassertawaitother(x=1)==2some=pro_lambda(_some)other=some+_someassertother.is_asyncassertawaitother(x=1)==2other=some==1assertother.is_logicalassertawaitother(1)assertnotawaitother(2)asyncio.run(main())
Package: proliantutils
proliantutilsis a set of utility libraries for interfacing and managing
various components (like iLO, HPSSA) for HPE Proliant Servers.  This library
is used by iLO drivers in Ironic for managing Proliant Servers (though the
library can be used by anyone who wants to manage HPE Proliant servers).Please uselaunchpadto report bugs and ask questions.InstallationInstall the module fromPyPI.  If you are using Ironic, install the module
on Ironic conductor node:pip install proliantutilsSome GNU/Linux distributions providepython-proliantutilspackage.UsageiLOFor interfacing with the iLO, useIloClientobject:>>> from proliantutils.ilo import client
>>> ilo_client = client.IloClient('10.10.1.57', 'Administrator', 'password')
>>> ilo_client.get_host_power_status()
'OFF'
>>>For operations supported on the client object, please referproliantutils.ilo.operations.
Package: prolice
DescriptionThis tool can be used for uploading generated bit-stream to etheriCE40HX1K-EVBoriCE40HX8K-EVB.Supported tools are:ARM-USB-OCD-HARM-USB-TINY-HHardware connectionConnect the flashing tool with the target board as shown:NameJTAGUEXTDescriptionVCC11Power supply (see Note)GND42GroundCDONE115iCE40 status indicationCRESET36iCE40 reset signalMISO137Serial data from the board to the PCMOSI58Serial data from the PC to the boardSCK99Serial clockCS710Chip selectNote: In order to work properly ARM-USB-OCD-H must have target voltage
feedback. One simple way is to solder3.3V_E1jumper, found on the bottom
of the board. If you're getting the voltage from somewhere else make sure
it's3.3V!InstallationThe recommended way is:pip3installproliceIf you chose building from sources:gitclonehttps://gitlab.com/stefan.mavrodiev/prolice.gitcdprolice
python3setup.pyinstallUsageAssuming you have bit-stream file called hardware.bin:prolice/path/to/file/hardware.binChangelogProlice 0.2.4Fix distribution bugEnable support for ARM-USB-TINY-HProlice 0.2.2Fix PyPi distributionProlice 0.2.1Updated documentationProlice 0.2.0Initial release
Package: prolif
DocumentationCIBuildsDependenciesLicenseDescriptionProLIF (Protein-Ligand Interaction Fingerprints) is a tool designed to generate
interaction fingerprints for complexes made of ligands, protein, DNA or RNA molecules
extracted from molecular dynamics trajectories, docking simulations and experimental
structures.DocumentationThe installation instructions, documentation and tutorials can be found online onReadTheDocs.IssuesIf you have found a bug, please open an issue on theGitHub Issuespage.DiscussionIf you have questions on how to use ProLIF, or if you want to give feedback or share
ideas and new features, please head to theGitHub Discussionspage.Citing ProLIFPlease refer to thecitation pageon the documentation.LicenseUnless otherwise noted, all files in this directory and all subdirectories are
distributed under the Apache License, Version 2.0Copyright 2017-2023 Cédric BOUYSSET

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: prolint2
ProLint v2: an optimized tool for the analysis of lipid protein interactions.ProLint2 calculates distance-based lipid-protein interactions from molecular dynamics trajectories of membrane protein systems.InstallationTo installprolint2we recommend creating a new conda environment as follows:condacreate-nprolint2python=3.8condaactivateprolint2Then you can installprolint2via pip:pipinstallprolint2Basic examples:Using the Prolint2's API:fromprolint2importPL2fromprolint2.sampledataimportGIRKtarget_system=PL2(GIRK.coordinates,GIRK.trajectory)target_system.contacts.compute(cutoff=7)target_system.contacts.export('results.csv')Using the Prolint2's command-line interface:prolint2coordinates.grotrajectory.xtc-c7-eresults.csvYou can find more details on how to useprolint2in thedocumentation.How to contribute?If you find a bug in the source code, you can help us by submitting an issue to ourGitHub repo. Even better, you can submit a Pull Request with a fix.We really appreciate your feedback!LicenseSource code included in this project is available under theMIT License.CopyrightCopyright (c) 2022, Daniel P. Ramirez & Besian I. SejdiuAcknowledgementsThe respository structure ofProLint2is based on theComputational Molecular Science Python Cookiecutterversion 1.6.