Saravanan666/pypi-org huggingface dataset:
Package: pyprerender
pyprerenderA python prerendererAboutIntended to be a fully replaceableprerenderalternative. For now it is very barebones and does not support the majority of the features.Install instructionsTo install, you can simply use pip:pip install pyprerenderTo install a git version, simply do this:git clone https://github.com/thingiesmm/pyprerender.git
pip install ./pyprerender/Run instructionsAfter installing just runpyprerender-api.py(You may need to set your chrome bin location by runningCHROME_LOCATION=/my/chrome/location pyprerender-api.py)Then you can test it by runningcurl "0.0.0.0:8080/render?url=https://example.com"ContributingTODO
Package: pypresence
A Discord Rich Presence Client in Python? Looks like you've come to the right place.NOTE: Only Python versions 3.8 and above are supported.Documentation,Discord Server,PatreonUse this badge in your project's Readme to show you're using pypresence! The markdown code is below.[![pypresence](https://img.shields.io/badge/using-pypresence-00bb88.svg?style=for-the-badge&logo=discord&logoWidth=20)](https://github.com/qwertyquerty/pypresence)InstallationInstall pypresence withpipFor the latest development version:pip install https://github.com/qwertyquerty/pypresence/archive/master.zipFor the latest stable version:pip install pypresenceDocumentationNOTE: You need anauthorized appto do anything besides rich presence!pypresence DocumentationDiscord Rich Presence DocumentationDiscord RPC Documentationpyresence Discord Support ServerDiscord API Support ServerExamplesExamples can be found in theexamplesdirectory, and you can contribute your own examples if you wish, just readexamples.md!Written by:qwertyquertyNotable Contributors:GiovanniMCMXCIX,GhostofGoes
Package: pypresence-stats
presence-statsDiscord presence stats show your pc statsyea i made this because i boredusageinstall python (of course)open command prompt and do any of these commandsScript/activateorpip install -r requirements.txtyea that's it then run programbut i get this from pypithen just doimportpresencestatspresencestats.launch()that's itwant cli?pypresencethere.
Package: py-presentation-foundation
PythonPresentationFoundationDescription:Python Presentation Foundation allows the use of html and css to design and style UI for the purpose of use within tkinter.
The binding between both html and tkinter is done using tkinterweb. All events are currently handled by url requests.
An event system built in to thepy_presentation_forum.Handleclass allows to bind python functions to urls.
Arguments can be passed through the requests from the html side.Installationpip install py-presentation-foundationhttps://pypi.org/project/py-presentation-foundation/#descriptionGetting startedCreate a directory with two files, amain.py, and aconfig.json. Create a directory for your html files to keep things clean.
Create an index.html file withinDirectory|
         |-->main.py
         |-->config.json
         |-->Design|
                   |-->index.html# main.pyfrompy_presentation_forumimportHandlefrompy_presentation_forum.UtilsimportUtilsglobalhnwdglobalconfconf=Utils().getConfig("./config.json")hnwd=Handle(conf)hnwd.win.mainloop(){"url":"file:///C:/{...path}/Design/index.html"}You can aquire the[url]path by viewing the html file in a browser and proceeding to copy the link from the url bar.EventsThere are two type of events, one that is triggered when the request is sent, and one that is triggered after the request has finished rendering.We can test this by using this script:frompy_presentation_forumimportHandlefrompy_presentation_forum.UtilsimportUtilsfromtkinterimportmessageboxglobalhnwdglobalconfconf=Utils().getConfig("./config.json")hnwd=Handle(conf)classevnts:defalert(args):messagebox.showwarning(args[1],args[2])defalert_done(args):globalhnwdglobalconfhnwd.frame.load_file(conf["url"])hnwd.routes.newEvent(evnts,"alert")hnwd.routes.newOnDone(evnts,"alert_done")hnwd.win.mainloop()<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"></head><body><ahref=";alert;test;hello world"class="button is-info">Info</a></body></html>Request paths must contain a semi column;.
In this case we want to call an event calledalert.
Therefore we can call the function by using a hyperlink specifying the request route.
for example:<ahref=";alert">Test</a>This would call the alert function.
If we need to pass arguments to the alert function, we can do so as such:<ahref=";alert;arg1;arg2">Test</a>if anonDoneevent has been passed with the prefix of the primary functions name, then theonDoneevent will be called automatically.
In the examples case, we use alert to show a warning box, and the alert_done to redirect back to the home pageindex.html
Package: pypresenter
#PyPresenter##What is It ?* It is a commandline presentation tool ( Allows you to present on terminal )## Install``` bash$ git clone https://github.com/neshkatrapati/pypresenter.git$ cd pypresenter$ sudo python setup.py install```or``` bash$ pip install pypresenter```or``` bash$ easy_install pypresenter```## Usage``` bash$ pypresenter example.pypr( Ctrl + C to exit )```##Features###XML format to write slides.``` xml<slide><text>Hello !</text></slide>```* Text colors, styles and type writing animation``` xml<slide><text><f style="bold" color="red"> Red Text is </f><typewriter> <f color="blue"> Awesome ! </f></typewriter></text></slide>```* Use figlet``` xml<slide><heading font="starwars" fg="red" bg="white">Welcome !</heading></slide>```* Ascii image rendering using python-aalib``` xml<slide><image width="20" height="20"> image.jpg </image></slide>```* Use os commands in side the slides``` xml<slide><command print="true">ls -l</command></slide>```
Package: pyPreservica
pyPreservicaPython language binding for the Preservica APIhttps://preservica.com/This library provides a Python class for working with the Preservica Rest APIhttps://developers.preservica.com/api-referenceWiki with example scriptshttps://github.com/carj/pyPreservica/wikiDocumentationThe full documentation is available at:https://pypreservica.readthedocs.io/ContributingBug reports and pull requests are welcome on GitHub athttps://github.com/carj/pyPreservicaFor announcements about new versions and discussion of pyPreservica please subscribe to the google groups
forumhttps://groups.google.com/g/pypreservicaLicenseThe package is available as open source under the terms of the Apache License 2.0InstallationpyPreservica is available from the Python Package Index (PyPI)https://pypi.org/project/pyPreservica/To install pyPreservica, simply run this simple command in your terminal of choice:$ pip install pyPreservica
Package: pyPreservicaGov
pyPreservica.GovPython Module For Harvesting public Modern.Gov Committee and Meeting Records into Preservica for Long Term Preservation.pyPreservica.Gov is a Python Module which allows Preservica users to automatically harvest public records from the
Civica Modern.Gov Content Management system directly into a Preservica Long Term Digital Preservation platformUsageOnce installed you can run pyPreservica.Gov directly from the command line$ python -m  pyPreservicaGovThe first time the module is run, it will create a credentials.properties file in the local directory and then exitEdit the credentials.properties, the first section should contain your Preservica username, password and hostname of
the Preservica system you would like to connect to.The second section contains the security tag which should be assigned to the records as they are ingested. For example
records which can be published immediately on the Preservica access portal should be set to "public".The site_name parameter should point to the URL of the Modern.Gov system you would like to harvest.parent.folder should be the UUID of the Preservica collection the Committee folders will be ingested into.The committee.FromDate and committee.ToDate parameters specify the date range of meetings which will be harvested.[credentials]
username=test@test.com
password=1234567
server=uk.preservica.com

[Modern.Gov]
security.tag=open
site_name=https://democracy.local_authority.gov.uk/
parent.folder=372d2881-7cce-4c2e-99f7-386c3cf4a922
committee.FromDate=01/01/1980
committee.ToDate=01/01/2024Once the credentials.properties has been updated you can run pyPreservica.Gov again directly from the command line
to start the harvest process.$ python -m  pyPreservicaGovLicenseThe package is available as open source under the terms of the Apache License 2.0InstallationpyPreservica.Gov is available from the Python Package Index (PyPI)https://pypi.org/project/pyPreservicaGov/To install pyPreservica.Gov, simply run this simple command in your terminal of choice:$ pip install pyPreservica.Gov
Package: pypresseportal
A Python interface into thepresseportal.deAPI.The website presseportal.de is a service provided by ‘news aktuell’, owned by dpa
(Deutsche Presse Agentur). It is one of the biggest distributors of press releases
and investor relations announcements in Germany. For example, almost all police and fire
departments use this service to distribute their press releases.PyPresseportal is in no way connected to presseportal.de,
‘news aktuell’ or dpa. PyPresseportal is independently developed by volunteers as an Open Source
library.An API key from presseportal.de is required to access data. You can find more
information and apply for an API key athttps://api.presseportal.de/en.QuickstartInstalling withpipUsepipon a command line to download PyPresseportal from PyPI and install it on your system:$pipinstallpypresseportalGetting an API keyPyPresseportal requires a valid API key fromhttps://api.presseportal.de/en. This website is
also where you can find general information on the API as well as the API’s Terms.Initializing the APIFirst, create an instance of thePresseportalApiclass,
using your API key:>>> from pypresseportal import PresseportalApi
>>> api_object = PresseportalApi(YOUR_API_KEY)Requesting dataNext, request data from the API through thePresseportalApiclass. It
contains several methods to access API data, all of which work very similarly.The easiest way to access the most recently published stories is theget_stories()method. If you do not provide any arguments to this method,
PyPresseportal defaults to retrieving the 50 most recent stories available.For example:>>> from pypresseportal import PresseportalApi
>>> api_object = PresseportalApi(YOUR_API_KEY)
>>> stories = api_object.get_stories()get_stories()returns a list ofStoryobjects. Access Story data
through the individual Story object’s attributes.For example:>>> stories[0].title
"Kohls Wohnhaus hat keinen Denkmalwert"
>>> stories[0].id
"4622388"
Package: pypresto
# pyprestowrapper
Package for making queries on Presto server## 1. Install packagepip install pypresto## 2. Use packagefrom pypresto import PrestoConnection
conn = PrestoConnection(host, user, catalog)
query = ‘select * from my_table limit 1’
conn.run_query(query)## 3. Usage for authenticated Presto:from pypresto import PrestoConnection
conn = PrestoConnection(host, user, catalog, port, schema, password)
query = ‘select * from my_table limit 1’
conn.run_query(query, auth=True)
Package: py-pretty
Sample code:from datetime import datetime, timedelta
now = datetime.now()
hrago = now - timedelta(hours=1)
yesterday = now - timedelta(days=1)
tomorrow = now + timedelta(days=1)
dayafter = now + timedelta(days=2)

import pretty
print pretty.date(now)                      # 'now'
print pretty.date(hrago)                    # 'an hour ago'
print pretty.date(hrago, short=True)        # '1h ago'
print pretty.date(hrago, asdays=True)       # 'today'
print pretty.date(yesterday, short=True)    # 'yest'
print pretty.date(tomorrow)                 # 'tomorrow'
Package: pyprevent
PyPREVENT :anatomical_heart:2024 updates from AHA on ASCVD (Atherosclerotic and Cardiovascular Disease), CVD (cardiovascular disease) and Heart Failure (HF)IntroductionThe PyPREVENT Equations package offers 2024 updates from theAmerican Heart Association (AHA) on Atherosclerotic and
Cardiovascular Disease (ASCVD), Cardiovascular Disease (CVD), and Heart Failure
(HF)[^1][^2]. It's a mixed Rust and Python
module, leveraging the speed of Rust for equation implementation and the flexibility of Python for ease of use.InstallationRequirements:Python 3.7 to 3.12 on a Silicon Mac / Linux system (more compatibility coming soon)To install the package, pip install using:pipinstallpypreventTL;DRimportpypreventpyprevent.calculate_30_yr_ascvd_risk(sex="MALE",age=40,total_cholesterol=200,hdl_cholesterol=50,systolic_bp=120,has_diabetes=False,current_smoker=False,bmi=25,egfr=70,on_htn_meds=False,on_cholesterol_meds=False,)A longer, and more thorough example is located here.Implementation StatusFormulaStatus10 yr ASCVD (individual):white_check_mark:10 yr ASCVD (batch):white_check_mark:30 yr ASCVD (individual):white_check_mark:30 yr ASCVD (batch):white_check_mark:10 yr Heart Failure (individual):white_check_mark:10 yr Heart Failure (batch):white_check_mark:30 yr Heart Failure (individual):white_check_mark:30 yr Heart Failure (batch):white_check_mark:10 yr CVD (individual):white_check_mark:10 yr CVD (batch):white_check_mark:30 yr CVD (individual):white_check_mark:30 yr CVD (batch):white_check_mark:Program StructureThis is a mixedRustand Python module.The rust source code is used to implement the equations. This is a lower level language that requires compilation prior to being run -- and thus is many times faster than pure python.The rust source code is located in the /src directory.
The individual functions are written in their respective files, and registered to the rust_aha_formulas python module within the lib.rs file.The python source is located in the /pyprevent directory.Unit tests are implemented in the /tests directory usingslash.[^1]: Khan SS, Matsushita K, Sang Y, et al. Development and Validation of the American Heart Association Predicting Risk of Cardiovascular Disease EVENTs (PREVENTTM) Equations. Circulation 2023. DOI:10.1161/CIRCULATIONAHA.123.067626[^2]: Khan SS, Coresh J, Pencina MJ, et al. Novel Prediction Equations for Absolute Risk Assessment of Total Cardiovascular Disease Incorporating Cardiovascular-Kidney-Metabolic Health: A Scientific Statement From the American Heart Association. Circulation 2023;148(24):1982-2004. DOI:10.1161/CIR.0000000000001191
Package: pyprexor
pyprexorThepythonprocessexecutor.What Does Pyprexor Do?Pyprexor helps create traceability between your process inputs and process outputs.Parameter sets are stored in a datastore and pyprexor seamlessly passes the required parameters to your annotated processes (a.k.a python functions).Process outputs are added to the datastore complete with execution metadata and traceability back to your parameter set.Seeexample.pyfor basic usage.InstallationPyprexor can be installed from PyPI using pip ($ pip install pyprexor) or your favourite package manager; we like poetry! ($ poetry add pyprexor)Running From SourceDependencies are managed withpoetry.pip install poetry
poetry installContribution GuideThe project is linted withruff, styled withblackand type checked withmypy.DatastoresPyprexor ships with anInMemoryDatastore. This allows parameter sets to be loaded into memory on initialisation. Process data is added to a list in memory and can be read out on command. See theexample.pyfor usage.MongoDBA basic wrapper around the MongoDB API is provided inpyprexor_datastore.mongo. It requires that pymongo is installed separately (i.e.pip install mongo). If running the package from source, you an use :poetry install --with mongo
Package: pyprf_feature
pyprf_featureA free & open source package for finding best-fitting population
receptive field (PRF) models and feature weights for fMRI data.If you are only interested in the spatial properties of the population
receptive fields, not preferred features, check out thepyprf
package.InstallationFor installation, follow these steps:(Optional) Create conda environmentcondacreate-nenv_pyprf_featurepython=2.7sourceactivateenv_pyprf_featurecondainstallpipClone repositorygitclonehttps://github.com/MSchnei/pyprf_feature.gitInstall numpy, e.g. by running:pipinstallnumpyInstall pyprf_feature with pippipinstall/path/to/cloned/pyprf_featureDependencies**Python 2.7**PackageTested versionNumPy1.11.1SciPy0.18.0NiBabel2.0.2How to use1. Present stimuli and record fMRI dataThe PsychoPy scripts in the Stimulation folder can be used for
presenting appropriate visual stimuli.2. Prepare spatial and temporal information for experiment as arraysRun prepro_get_spat_info.py in the prepro folder to obtain an array
with the spatial information of the experiment. This should result in
a 3d numpy array with shape [pixel x pixel x nr of spatial aperture
conditions] that represents images of the spatial apertures stacked
on top of each other.Run prepro_get_temp_info.py in the prepro folder to obtain an array
with the temporal information of the experiment. This should result
in a 2d numpy array with shape [nr of volumes across all runs x 4].
The first column represents unique identifiers of spatial aperture
conditions. The second column represents onset times and the third
durations (both in s).The fourth column represents unique feature
identifiers.3. Prepare the input dataThe input data should be motion-corrected, high-pass filtered and
(optionally) distortion-corrected. If desired, spatial as well as
temporal smoothing can be applied. The PrePro folder contains some
auxiliary scripts to perform some of these functions.4. Adjust the csv fileAdjust the information in the config_default.csv file in the Analysis
folder, such that the provided information is correct. It is recommended
to make a specific copy of the csv file for every subject.5. Run pyprf_featureOpen a terminal and runpyprf_feature -config path/to/custom_config.csvReferencesThis application is based on the following work:Dumoulin, S. O., & Wandell, B. A. (2008). Population receptive field
estimates in human visual cortex. NeuroImage, 39(2), 647–660.https://doi.org/10.1016/j.neuroimage.2007.09.034Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, B., &
Gallant, J. L. (2011). Report Reconstructing Visual Experiences from
Brain Activity Evoked by Natural Movies, 1641–1646.https://doi.org/10.1016/j.cub.2011.08.031St-Yves, G., & Naselaris, T. (2017). The feature-weighted receptive
field: An interpretable encoding model for complex feature spaces.
NeuroImage, (June), 1–15.https://doi.org/10.1016/j.neuroimage.2017.06.035LicenseThe project is licensed underGNU General Public License Version
3.
Package: pyprg
What are the Precision-Recall-Gain curves?Please seehttp://www.cs.bris.ac.uk/~flach/PRGcurves/.ContentsThis package provides the following 6 functions:precision_gain(TP,FN,FP,TN)
recall_gain(TP,FN,FP,TN)
create_prg_curve(labels,pos_scores)
calc_auprg(prg_curve)
prg_convex_hull(prg_curve)
plot_prg(prg_curve)InstallationThis package can be installed usingpipfrom command line:pip install pyprgUsageDetailed information about the usage can be seen in the manual pages of
the individual functions, e.g. by typing?prg.create_prg_curveafter
importing withfrom pyprg import prg. The example usage is as
follows:frompyprgimportprgimportnumpyasnplabels=np.array([1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,1,0,0,0,1,0,1],dtype='int')scores=np.arange(1,26)[::-1]prg_curve=prg.create_prg_curve(labels,scores,create_crossing_points=True)auprg=prg.calc_auprg(prg_curve)print(auprg)prg.plot_prg(prg_curve)AuthorsThis package has been written by Meelis Kull, Telmo de Menezes e Silva
Filho, Miquel Perello Nieto, based on work by Peter Flach and Meelis
Kull, seehttp://www.cs.bris.ac.uk/~flach/PRGcurves/.
Package: pyprice
Installation$pythonsetup.pyinstallor can use pip$pipinstallpypriceQuick startTerminal$pypricekospiKOREASEKOSPIIDX/KOSPICurrentPrice:2,087.89(14.98,0.72%)Market:KoreaStockExchange(Koscom)$pypricesearchfaceName:FrostGrowthEquityFundInvestorClassSharesKeyword:FACEXMarket:NASDAQName:FacebookKeyword:FBMarket:NASDAQPython>>>frompyprice.indeximportsearch>>>search('samsung')[[{'c':'US','d':'SSNLF','it':'CS','s':'SSNLF','cnn':'SSNLF','n':'Samsung Electronics Co Ltd','lt':'IssueNameFast.5.0','e':'Grey Market','w':'260239'}]]
Package: pyprika
A recipe management library and command line tool.Primary features:A YAML file format for encoding recipes.Parser written for human-friendly syntax.Seethe documentationfor a more complete
discussion.Example>>> import pyprika
>>> recipe = pyprika.load(open('example.yaml'))
>>> recipe.name
'Salt Water'
>>> recipe.ingredients
[<Ingredient: (1 cup) water>, <Ingredient: (1 cup) salt>, <Ingredient: pepper>]
>>> recipe.directions
['Put it in a pot.', 'Boil it up.', 'Glug glug glug.']
>>> more_recipe = 2 * recipe
>>> more_recipe.ingredients
[<Ingredient: (2 cup) water>, <Ingredient: (2 cup) salt>, <Ingredient: pepper>]
Package: pyprika-client
PyprikaPython Package to talk to Paprika's backend server.FeaturesConfigurable periodic retrieval of dataRecipes, Categories, Meals, Menus are all linked via relational idAbility to filter recipes that include categories, exclude categories, total cook/prep duration, recipe difficulty and recipe names.UsageInitializeInitializePyprikawith your username and password from your mobile app. If you so choose, you can also tell it to auto fetch after a certain delay:pyprika=Pyprika(username,password)pyprika=Pyprika(username,password,fetch_delay=timedelta(hours=2),auto_fetch=True)Get all datarecipe_book=pyprika.get_all()Filter recipesrecipes=pyprika.get_recipes(categories=None,not_categories=None,difficulty=None,duration=None,name_like=None,name_not_like=None)NOTEAll arguments here are optional. Passing no arguments will return every recipe.Enable/disable auto fetchpyprika.set_auto_fetch(True)#Enable auto-fetch after delaypyprika.set_auto_fetch(False)#Disable auto-fetch immediately
Package: pyprimal
PYPRIMALPYPRIMAL:PYthon packagePaRametric sImplexMethod for spArseLearningRequirementsLinux or MacOSInstallationInstall from source file (Github) with Makefile:Cloneprimal.gitviagit clone --recurse-submodules https://github.com/ShenQianli/primal.gitMake sure you havesetuptoolsRunmake Pyinstallcommand.Install from source file (Github) with CMAKE:Cloneprimal.gitviagit clone --recurse-submodules https://github.com/ShenQianli/primal.gitMake sure you havesetuptoolsBuild the source file first via thecmakewithCMakeLists.txtin the root directory. (You will see a.soor.dylibfile under(root)/lib/)Runcd python-package; sudo python setup.py installcommand.Install from PyPI:pip install pyprimalNote: Owing to the setting on different OS, our distribution might not be working in your environment (especially inWindows). Thus please build from source.You can test if the package has been successfully installed by:importpyprimalpyprimal.test()UsagefrompyprimalimportSparseSVMx=[[1,2,3],[4,5,6],[7,8,9]]y=[-1,1,1]solver=SparseSVM(x,y)solver.train()result=solver.coef()solver.plot()solver.plot('regpath')SeetutorialCopy RightAuthor: Qianli Shen, Zichong LiMaintainer: Qianli Shenshenqianli@pku.edu.cn
Package: pyprimejs
Paquete sencillo de python para calcula los valores primos entre 1 y un numero dado
MIT LicenseCopyright (c) [year] [fullname]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.