Saravanan666/pypi-org huggingface dataset:
Package: pyrepr
pyreprPretty-printing serializable objects for humans. This is based onMarkdownifyandTOML.UsagefrompyreprimportReprprint(Repr(obj))Example output:[[mid]]
1358629116480

[[mod]]
1481117769

[[usn]]
3491

[[tags]]
 CostanzoEndocrine EndocrinePhysiology 

[[flds]]
Peptide and Protein Hormone Synthesis:   
Translation of a **preprohormone ***begins* in the **{{c1::cytoplasm}} **with a **signal** **peptide** at the N terminusx1f![](paste-417251777839638.jpg)

[[sfld]]
Peptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus

[[csum]]
1963658058

[[flags]]
0You can also make output as pure Markdownprint(Repr(obj).to_str('markdown'))## mid1358629116480## mod1481117769## usn3491## tagsCostanzoEndocrine EndocrinePhysiology## fldsPeptide and Protein Hormone Synthesis:   
Translation of a**preprohormone ***begins*in the**{{c1::cytoplasm}} **with a**signal****peptide**at the N terminusx1f![](paste-417251777839638.jpg)## sfldPeptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus## csum1963658058## flags0Installationpip install pyrepr
Package: pyrepresent
representA module for object and model representations as strings, with vast configurations,
colors, hidden and protected values, assignment operations, memory addresses and more.first of allspecifics:writen and owned by: Shahaf Frank-Shapirall the rights are saved for: Shahaf Frank-Shapirprogram version: 0.0.0programming languages: python 3.9.12 (100%)before we startdescription:This module creates an easy-to-use, versatile dynamic system for representing python objects as strings.The string representation can be achieved for any python object, through functional or object-oriented usage.It is possible to configure many specific ways to display data, hide attributes, represent nested objects,
> circular references, memory address, attribute names and values, indentation, and mor.dependencies:opening:
As for this is a really complex program, which uses a lot of modules, there are required dependencies needed
in order to run the program. keep in mined the program was writen in python 3.9, so any python version lower
than 3.9 might not work properly. Moreover, built-in python modules are being used, so keep that in mind.install app dependencies by writing the "-r" option to install the requirements
writen in a file, and write the following line in the project directory:pip install -r requirements.txtrun a testrun from windows command line (inside the project directory)run with python by writing to the command line in the project directory:python test.py
Package: pyreproj
Python ReprojectorThis is a simple python library for coordinate transformations between different projections. It uses thepyproj libraryas a wrapper forproj.4. The goal is to make transformations as simple as possible.UsageGet transformation functionfrompyreprojimportReprojectorrp=Reprojector()transform=rp.get_transformation_function(from_srs=4326,to_srs='epsg:2056')transform(47.46614,7.80071)# returns: (2627299.6594659993, 1257325.3550428299)The argumentsfrom_srsandto_srscan be one of the following:Integer: value of the EPSG code, e.g. 2056String: EPSG code with leading “epsg:”, e.g. ‘epsg:2056’String: proj4 definition stringObject: instance of pyproj.ProjThe returned function is afunctools.partialthat can also be used as first
argument forshapely.ops.transform.Transform coordinates directlyfromshapely.geometryimportPointfrompyreprojimportReprojectorrp=Reprojector()p1=Point(47.46614,7.80071)p2=rp.transform(p1,from_srs=4326,to_srs=2056)p2.wkt# returns: 'POINT (2627299.659465999 1257325.35504283)'rp.transform([47.46614,7.80071],from_srs=4326,to_srs=2056)# returns: [2627299.6594659993, 1257325.3550428299]rp.transform((47.46614,7.80071),from_srs=4326,to_srs=2056)# returns: (2627299.6594659993, 1257325.3550428299)The argumentsfrom_srsandto_srscan be one of the following:Integer: value of the EPSG code, e.g. 2056String: EPSG code with leading “epsg:”, e.g. ‘epsg:2056’String: proj4 definition stringObject: instance of pyproj.ProjGet projection from servicefrompyreprojimportReprojectorrp=Reprojector()proj=rp.get_projection_from_service(epsg=2056)type(proj)# returns: <class 'pyproj.Proj'>Changelog3.0.0https://gitlab.com/geo-bl-ch/python-reprojector/milestones/3Replace deprecated transform methodhttps://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1Drop support for Pyhton 2.7, 3.5, 3.6 and 3.72.0.0https://gitlab.com/geo-bl-ch/python-reprojector/milestones/2Update used version of pyproj (>=2.2.0)WarningThe order of lon/lat values has changed to lat/lon!1.0.1https://gitlab.com/geo-bl-ch/python-reprojector/milestones/1Set up deploymentLock version of pyproj<2.0.01.0.0Initial versionFeatures:define projections by projection object, proj4 definition or EPSG codeget projection by service (e.g.http://spatialreference.org/)get a transformation function from source to target projectiontransform coordinates as list or tuple or a shapely geometry directly
Package: pyrepseq
Pyrepseq = scipy & seaborn for studying adaptive immunity: modular implementations of algorithms for fast analyses, and bespoke plotting functions for compelling visualizations.## Documentation and examplesYou can find API documentation on [readthedocs](https://pyrepseq.readthedocs.io/en/latest/?badge=latest)There are jupyter notebooks illustrating some of the functionality in the ‘examples’ folder.You can also find usage examples by looking at the code underlying our recent paper [Mayer Callan PNAS 2023](https://github.com/andim/paper_coincidences).## InstallationThe quickest way to install Pyrepseq is via pip:pip install pyrepseqPyrepseq can also be installed from its [Github](https://github.com/andim/pyrepseq) source, by runningpython setup.py installin the main directory.## Support and contributingFor bug reports and enhancement requests use the [Github issue tool](http://github.com/andim/pyrepseq/issues/new), or (even better!) open a [pull request](http://github.com/andim/pyrepseq/pulls) with relevant changes. If you have any questions don’t hesitate to contact us by email (andimscience@gmail.com) or Twitter ([@andimscience](http://twitter.com/andimscience)).You can run the testsuite by runningpytestin the top-level directory.You are cordially invited to [contribute](https://github.com/andim/pyrepseq/blob/master/CONTRIBUTING.md) to the further development of pyrepseq!
Package: pyreq
pyreq is a simple console based http and https client.
It allows you to use most HTTP verbs, send arbitrary data along with the request, and save the result to file.
It also automaticly pretty-prints and higlights JSON and most other text formats like HTML, XML, and JavaScript,
which is very useful for exploring APIs.To install, just run the following command:pip install pyreqYou can get a list of all options and what they mean by running:pyreq -hpyreq is licensed under the MIT license.
Package: pyreqgen
Python Requirements ToolThis package compiles and puts all of the required python packages into a single requirements.txt file.Quick StartUsageReqParser is a module which contains static functions for generating the requirements.txt from
python source code.from pyreqgen import ReqParser

root_dir_of_project = "/location/to/project"

ReqParser.run(root_dir_of_project, write_o=True, alpha=True)ReqParserThe run method is the main entry point to generate the requirements.txt.
It takes a mandatory argument the location of the root directory of the project as a string.
Optional arguments arguments are if you want to write out the required modules to a requirements.txt
in the function.  If not then it will return with a set of strings the module names.The alpha option is set True if you want the modules sorted alphanumerically.ContributingPlease submit an issue or pull request if you have suggestions on how to make this project better.
Package: pyreq-merger
pyreq-mergerMinimal tool used for merging 2 requirement files into a single one by either upgrading or downgrading the package versions.InstallationUsing pip inside the project directory:pip install .Using pip:pip install pyreq-mergerUsage Examplepyreq file1 file2 --method downgrade --output mynewreq.txtOutput is a new requirement file with the specified name in the current working directory.NotesFor a full list of available parameters usepyreq -husage: pyreq [-h] [-v] [-m {upgrade,downgrade}] [-o OUTPUT] first_req_file second_req_file

Merge 2 requirement files into a single file, using the specified method.

positional arguments:
  first_req_file        First file containing requirements
  second_req_file       Second file containing requirements

options:
  -h, --help            show this help message and exit
  -v, --version         Displays version then quit
  -m {upgrade,downgrade}, --method {upgrade,downgrade}
                        Merge method, choose from: 'upgrade' or 'downgrade. (default: upgrade)
  -o OUTPUT, --output OUTPUT
                        Output file containing merged requirements. (default: merged_requirements.txt)

Made by https://github.com/mhristodor.```
Package: pyrequest
##PyHTTPVery Minimal HTTP wrapper for Python.[![Build Status](https://travis-ci.org/plasmashadow/pyhttp.svg?branch=master)](https://travis-ci.org/plasmashadow/pyhttp)[![PyPI version](https://badge.fury.io/py/pyrequest.svg)](http://badge.fury.io/py/pyrequest)[![PyPI](https://img.shields.io/pypi/dm/pyrequest.svg)](https://pypi.python.org/pypi/pyrequest)[![Code Health](https://landscape.io/github/plasmashadow/pyhttp/master/landscape.svg?style=flat)](https://landscape.io/github/plasmashadow/pyhttp/master)##installation```pip install pyrequest```##Usage```pythonfrom pyhttp import Requestr = Request("google.com").get()print r.status//POST requestr = Request('http://jsonplaceholder.typicode.com/posts')response = r.post({'title': 'hello'})print response.contentprint response.statusprint response.json//setting headersr = Request('http://jsonplaceholder.typicode.com/posts')r.headers = {'content-type': 'application/json')response = r.post({'title': 'hello'})print response.contentprint response.statusprint response.json//PUT requestr = Request('http://jsonplaceholder.typicode.com/posts/1')response = r.put({'title': 'hello'})print response.contentprint response.statusprint response.json//DELETE requestr = Request('http://jsonplaceholder.typicode.com/posts/1')r.delete()```##LicenseMIT
Package: py-requirements-guesser
Python-Requirements-Guesser⚠️ This is alpha quality software. Work in progressAttempt to guessrequirements.txtmodules versions based on Git history.What is the problem ?Did you ever clone a repo with python code that didn't specify library versions in arequirements.txtfile ?
Or even worst: a repo without arequirements.txt...Reproducing results is hard, it's even harder when you have mismatched library versions.SolutionThere is a fair chance that the owner of the repo you just cloned installed most of it's packages usingpipinstall<packagename>This would have installed the latest available version at the time the command was runned.Based on this, we look at thegit commit historyto find out when a package was first imported in the code or when it was first added to therequirements.txtfile.We then queryPypito retrieve the version available at the commit date.UsagePy-Requirements-Guessershould be runned inside a git repository.py-requirements-guesser--write{requirements.txtpath}You will be prompted by a serie of choice to orient the guessing process.InstallationThis package doesn't have any dependencies.
To install thePy-Requirements-Guesser:pip3installpy-requirements-guesserPackage name mapping - PipreqsThere might be mismatches between the name of a package onPypiand the name used toimportit (Ex :pip install PyYAML&import yaml).
There doesn't seem to be a straightforward way to do the mapping betweenPypiname andimportname.The greatPipReqspackage (which was an inspiration for this package) manually maintains a mapping file betweenPypinames and theimportnames.
They also maintain a list of the standard library module names.For now, we grab themappingandstdlibfiles at commit90102acdbb23c09574d27df8bd1f568d34e0cfd3.Thanks guys!Additional argumentsPy-Requirements-Guessercan take 2 additional parameters :--keep_unused_packages: By default, unused packages are ignored. This parameter will force version guessing for the packages inrequirements.txtthat are notimportedin the code anywhere.--force_guess {package1},{package2},..: By default, if your code contains a module namedyaml.py,import yamlstatements won't be analyzed. Use this argument if local modules have conflicting names withPypipackages to force version guessing.TODOGuess/Pin the dependencies tree of the package Ex : Torch package will install numpy, etcPoetry support ?Jupyter notebook supportAdd guessing choice where user can choose version between the time the package was first imported and the date of the last commit on a python fileDetect python & os versions. Some package versions might not be available for certain os or python versionsBetter output/UXLicenseGNU GPLV3 seeLicenseContributingPull requests are welcomed !
Fill up an issue if you encounter any problem !
Package: pyresample
PyresamplePyresample is a python package for resampling geospatial image data. It is the
primary method for resampling in theSatpylibrary, but can also be used as a standalone library. Resampling or
reprojection is the process of mapping input geolocated data points to a
new target geographic projection and area.Pyresample can operate on both fixed grids of data and geolocated swath data.
To describe these data Pyresample uses various "geometry" objects including
theAreaDefinitionandSwathDefinitionclasses.Pyresample offers multiple resampling algorithms including:Nearest NeighborElliptical Weighted Average (EWA)BilinearFor nearest neighbor and bilinear interpolation pyresample uses a kd-tree
approach by using the fast KDTree implementation provided by thepykdtreelibrary.
Pyresample works with numpy arrays and numpy masked arrays. Interfaces to
XArray objects (including dask array support) are provided in separate
Resampler class interfaces and are in active development.
Utility functions are available to easily plot data using Cartopy.DocumentationSeepytroll.github.iofor more information on the
PyTroll group and related packages.CitationHoese, D., Raspaud, M., Lahtinen, P., Roberts, W., Lavergne, et al. (2020). pytroll/pyresample: Version 1.16.0. Zenodo.https://doi.org/10.5281/zenodo.3372769
Package: pyReScene
pyReScene is a port of ReScene .NET to the Python programming language.
ReScene is a mechanism for backing up and restoring the metadata from “scene”
released RAR files. RAR archive volumes are rebuilt using the stored metadata
in the SRR file and the extracted files from the RAR archive.
pyReScene consists of multiple related tools.A detailed explanation can be found onhttp://rescene.wikidot.com/
Package: py-research
py-researchAbout this projectThis repository is a collection of Python utilities to help you analyze & visualize data, automate workflows and manage knowledge while working in an interdisciplinary R&D project. More precisely, it serves these main puposes:Extend existing, well-established packages (e.g. pandas, numpy sqlalchemy, structlog, ...) with small helper functions and abstractions to provide lacking functionality or make them easier to use & automate.Enforce best practices on scientific code to make it more reliable, quick to deploy, and easy to monitor.Provide a framework for knowledge and information management backed by different data sources and databases, to which analysis / dataviz functions can tie in seamlessly.Current statusThis project is actively maintained, but still under construction. The modules in their current form are working and continuously tested, but documentation is still minimal and many components of the framework are not yet implemented. Release versioning follows theSemver Spec, so breaking changes in existing API will only happen with major version upgrades, of which there are expected to be a few before the framework is complete.Furthermore, some of the current functionality may be outsourced into a separate repo and package with these upgrades.How to installpy-researchis available as a Python package on PyPI:pipinstallpy-researchAlternatively, you can install it directly from git via:pipinstallgit+https://github.com/cloudlane-one/py-research.gitContentsdocs/ref-api/indexIndices and Tables{ref}genindex{ref}modindex{ref}search
Package: pyresid
Python tools for mining Protein Residuals from Fulltext articles using PMC number, ePMC and PDB.BSD 3-Clause LicenseCopyright (c) 2018, Robert Elliot Firth (Science and Techology Faclities Council)
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: pyresidfp
pyresidfpEmulates the SID sound-chip in software. The C++ emulation code was copied over fromlibsidplayfp.How to installRequirements:compiler for ISO C++11Python 3 and header filesFrom PyPIInstall the latest version usingpython -m pip install pyresidfpFrom cloned git repositoryBuild from source and install usingpython -m pip install .ExampleFor the example,NumPyandsoundcardpython packages
are required. The example is ported from the sectionSample Sound Program,Commodore 64 User's Guide, page 80:fromdatetimeimporttimedeltaimportnumpyasnpimportsoundcardasscfrompyresidfpimportSoundInterfaceDevice,Voice,ControlBits,Tone# program SIDsid=SoundInterfaceDevice()sid.Filter_Mode_Vol=15# Maximum volumesid.attack_decay(Voice.ONE,190)# 800 ms attack, 15 s decaysid.sustain_release(Voice.ONE,248)# sustain peak, 300 ms releasesid.tone(Voice.ONE,Tone.C4)sid.control(Voice.ONE,ControlBits.TRIANGLE|ControlBits.GATE)# sample attack phaseattack_phase=timedelta(seconds=0.32)raw_samples=sid.clock(attack_phase)# reprogram SID for release phase and samplerelease_phase=timedelta(seconds=0.3)sid.control(Voice.ONE,ControlBits.TRIANGLE)raw_samples.extend(sid.clock(release_phase))# convert audio format and playsamples=np.array(raw_samples,dtype=np.float32)/2.0**15spkr=sc.default_speaker()spkr.play(data=samples,samplerate=int(sid.sampling_frequency),channels=1)CreditsWe like to thank all contributors oflibsidplayfp, especially:Dag Lem: Designed and programmed complete emulation engine.Antti S. Lankila: Distortion simulation and calculation of combined waveformsKen Händel: source code conversion to JavaLeandro Nini: port to c++, merge with reSID 1.0
Package: pyresolve
pyresolveResolve dot notation from dictionaryfrompyresolveimportresolvemy_dictionary={"out":{"middle":{"in":"Balue"}}}# Beforemy_dictionary.get('out',{}).get('middle',{}).get('in')# Afterresolve(my_dictionary,"out.middle.in")# "Balue"Does not break for missing propertiesresolve(my_dictionary,"outer.missing.something")# NoneCan specify a different default valueresolve(my_dictionary,"outer.missing.something",[])# []Supports index in listdictionary_with_list={"users":[{"name":"Joe"},{"name":"Jane"}]}resolve(my_dictionary,"users.1.name")# JaneInstallpipinstallpyresolve
Package: pyresourcehandler
pyResourceHandler: Small package to help with resource handlingpyResourceHandler provides a few functions to easily handle resources.It requires Python 3.9+ to run.Key FeaturesSmall package100% coverageEasy to useFunctions are type-hinted.Handles regular files, directories and even malformed python files as resources/assets.How to InstallInstall from PyPipip install pyResourceHandlerImport 'extractFile' and/or 'extractDir'from pyResourceHandler import extractFileHow to Use1.The module should have a root directory with one of the following names:dataresourcesassets2.Place files and/or directories within your resource directory.3.Done!To extract a fileextractFile(
"Example_Module",
"file_example.txt",
r"C:\Users\user\Desktop\your_file.txt"
)To extract a directoryextractDirectory(
"Example_Module",
"directory_example",
r"C:\Users\user\Desktop\your_directory"
)1st Argument - Module import as a string.2nd Argument - Path to file/directory3rd Argument - Output path for file/directoryDo note, the above functions will not overwrite an existing file by default.To enable overwriting, set the argument namedoverwriteargument to True when invoking the functions.Why?Writing similar pieces of code to access non-Python files across projects can be tedious.This reduces boilerplate code for repetitive operations down to a single function call.
Package: pyres-scheduler
Wraps pyres and APScheduler so tasks can be scheduled asynchronouslyExample usage:from pyres import ResQfrom pyres_scheduler import PyresSchedulerfrom pyres_scheduler.decorators import periodic_task, timedeltapyres_sched = PyresScheduler()resque = ResQ()pyres_sched.add_resque(resque)@periodic_task(priority='high', run_every=timedelta(seconds=60))def my_task():print 'Executing task'pyres_sched.start()pyres_sched.add_job(my_task)Due to the nature of pyres, functions must be available for import in order toenqueue them (i.e. you cannot enqueue functions defined in an interactivePython prompt, they must be saved and accessible to your pyres_worker)
Package: pyrestack
pyuptimekumaSimple Python wrapper for ReStackInstallationpython3-mpipinstallpyrestackExampleimportasyncioimportaiohttpfrompyrestackimportReStackURL=""USERNAME=""PASSWORD=""VERIFY_SSL=Trueasyncdefmain():asyncwithaiohttp.ClientSession()assession:restack_api=ReStack(session,URL,USERNAME,PASSWORD,VERIFY_SSL)response=awaitrestack_api.async_get_stacks()print(response.data)loop=asyncio.get_event_loop()loop.run_until_complete(main())CreditI would like to give a special thanks to these repositories since a lot of code has been inspired by them.ludeeus/pyuptimerobotmeichthys/utptime_kuma_monitorjayakornk/pyuptimekuma