Saravanan666/pypi-org huggingface dataset:
Package: pyroll20
PyRoll20An easy to use, Roll20 syntax compatible,python dice roller.Installingpip3installpyroll20Usage Examplefrompyroll20.pyroll20importrollprint(roll(user_input="2d20"))>>[12,8]or with a modifierfrompyroll20.pyroll20importrollprint(roll(user_input="2d20+5"))>>23Modifiers'h'# Highest Rolls -5d20h3returns the 3 highest rolls from the five d20 that were rolled.'l'# Lowest Rolls -5d20l3returns the 3 lowest rolls from the five d20 that were rolled.'+'# Adds to sum -5d20+3adds 3 to the sum of the five d20 that were rolled, always returns a single integer.'-'# Subtracts from sum -5d20-3subtracts 3 from the sum of the five d20 that were rolled, always returns a single integer.'.-'# Subtracts from each individual roll -5d20.-3subtracts 3 from each of the five d20 that were rolled.'.+'# Adds to each individual roll -5d20.+3adds 3 to each of the five d20 that were rolled.'t'# Sum of all rolls -5d20treturns the sum of the five d20 that were rolled.'e'# "Exploding dice -5d20eif any of the five rolls goes critical, it gets re-rolled and added to the individual roll.NotesIf sides are provided but no roll number, the roll number defaults to 1, for exampled20is a valid input.LicenseThis project is licensed under the GNU GENERAL PUBLIC LICENSE v3.TODOAdvantage and disadvantage[Not working]
Wrap it in some sort of gui for a standalone app.[Maybe]
Package: pyroll-basic
PyRolL Basic Meta PackageThis package does not introduce any new functionality, it works just as a meta-package to simplify the installation of
the PyRolL core and a couple of basic plugins through its dependencies.The following packages are installed alongside their own dependencies:pyroll-corepyroll-clipyroll-reportpyroll-exportpyroll-integral-thermalpyroll-lippmann-mahrenholz-force-torquepyroll-wusatowski-spreadingpyroll-zouhar-contactpyroll-freiberg-flow-stresspyroll-lendl-equivalent-methodBy importing this package withimport pyroll.basic, all listed packages are imported and thus registered as active
plugins.
The public API of this package is the union of all those packages.
So withimport pyroll.basic as prone has access to all public APIs of those packages under one single alias.
Package: pyrolld
pyrolldA package to generate color sequences from videos and imagesIts main use is to create a set of unique colors from an image and then
sort the colors according to the selected sorting method.InstallationYou can simply pip install this package:pipinstallpyrolldUsageHere is an example:fromrolldimportRollerfilepath="image.png"image=Roller(filepath)rolled=image.roll()rolled.show()You can also chose between 3 different sorting methods["HSV", "HSL", "YIQ", "LUM"]:fromrolldimportRollerfilepath="image.png"image=Roller(filepath)rolled=image.roll(sorter="LUM")rolled.show()ExampleHere is an example. We are going to use the imagelena.png:And with this code we will "roll" the image:fromrolldimportRollerfilepath="lena.png"roller=Roller(filepath)sorters=["HSV","HSL","YIQ","LUM"]forsorterinsorters:image=roller.roll(sorter=sorter)image.show()Here is the output of all the sorting methods:LuminanceYIQHSVHSL
Package: pyroll-hitchcock-roll-flattening
PyRolL Hitchcock Roll FlatteningPyRolL plugin providing the roll force correction through flattening by J. Hitchcook adapted by Bohm and Flaxa.For the docs, seehere.This project is licensed under theBSD-3-Clause license.The package is available viaPyPiand can be installed withpip install pyroll-hitchcock-roll-flattening
Package: pyroll-lippmann-mahrenholz-force-torque
PyRolL Lippmann - Mahrenholz Force and TorquePlugin for PyRolL providing Power and Labour calculations from O. Lippmann and H. Mahrenholz.For the docs, seehere.This project is licensed under theBSD-3-Clause license.The package is available viaPyPiand can be installed withpip install pyroll-lippmann-force-torque
Package: pyroll-mauk-gottschling-flow-stress
PyRoll PluginTemplate for PyRoll Plugin Repositories.Please follow the following instructions when creating your own PyRoll plugins:The folderpyrollis a namespace package, place your plugin package therein to make it discoverable by the CLI for example by just renaming the nestedpluginpackage to the desired).Usepytestfor creating unit tests. Place all test files in thetestsfolder.Update thepyproject.tomlwith your metadata. It is recommended to usehatchto maintain dependencies, as is preconfigured. It is recommended that the plugin major version corresponds to the PyRoll Core major version (so plugin versions 2.x.x working withpyroll-core2.x.x).Place documentation in thedocsfolder:you may provide a printable documentation using LaTeX based on thedocs.textemplate and the
providedPyRollDocsclassyou may provide a web documentation using Markdown or RST rendered by GitHub or external tools
likeSphinxyou may provide a printable documentation built from Markdown or RST by tools such
asPandocif appropriate, include the result PDF in the commit and link it fromREADME.mdlikesoinclude model and usage information in the documentationPlease use a permissive license such as BSD or MITEdit this readme file with contents of your own needs.If you want your plugin to be listed on the main documentation website (seehere), please contact the maintainers preferably using an issue or PR.Usage of the Preconfigured Hatch ScriptsTo build the docs use (needs a working LaTeX installation)hatch run docs:buildTo run the tests usehatch run test:allThe test environment is preconfigured to test with Python 3.9, 3.10 and 3.11.
The tests are skipped for the respective version, if it can not be found.
Package: pyroll-sims-power-and-labour
PyRolL Sims Power and LabourPlugin for PyRolL providing Power and Labour calculations according to the model from R.B. Sims.For the docs, seehere.This project is licensed under theBSD-3-Clause license.The package is available viaPyPiand can be installed withpip install pyroll-sims-power-and-labour
Package: pyroltrilinos
pyrolpyrol is a wrapper for the TrilinosROLlibrary usingpybind11. It also supports
serialisation of in-progress optimisation usingcereal.Installationpyrol will build a compatible version of the Trilinos shared library
as part of its build process. For this, a C++ compiler, CMake, BLAS
and LAPACK implementations are all required. With these components in
place, installation should be as simple aspip install. For more
complicated environments, CMake arguments can be provided through theCMAKE_ARGSenvironment variable.LicensePyROL is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.  PyROL 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 Lesser General Public License for more details.  You should
have received a copy of the GNU Lesser General Public License along
with PyROL. If not, seehttp://www.gnu.org/licenses/.
Package: py-roma
Py-RomaThis package provides handy tools for regular development in python.At the heart of the conquest of Rome's vast territory was a sophisticated
infrastructure.consoleFancy TextProgress Barspqrcensoratticusconsoleconsoleshould be imported in the manner below:fromromaimportconsoleFancy TextDemo:console.write_line('#{Hello}{red}#{World}{blue}!')Progress BarDemo:importtimetotal=100quarter=int(total/4)foriinrange(1,total+1):ifi%quarter==0:console.write_line('{}/{}done!'.format(i,total))console.print_progress(i,total)time.sleep(0.05)spqrThis package serves as a MISC package, which contains a bundle of common, useful tools.censorcensormodule handles issues related to argument types.Demo ofcheck_type():fromromaimportcensorassertall([censor.check_type(31,int)==31,censor.check_type({'adh',93,19},inner_type=str)=={'adh','93','19'},censor.check_type([None,12,19.0],tuple,inner_type=int,nullable=True)==(None,12,19),])atticusatticusprovides tools for produce appropriate strings.Demo ofordinal():fromromaimportatticusassertall([atticus.ordinal(1)=='1st',atticus.ordinal(2)=='2nd',atticus.ordinal(3)=='3rd',atticus.ordinal(8)=='8th',atticus.ordinal(11)=='11th',atticus.ordinal(12)=='12th',atticus.ordinal(13)=='13th',atticus.ordinal(21)=='21st',atticus.ordinal(112)=='112th',])
Package: pyromania
Pyromania venv ManagerPyromania helps make venv management straightforward, inspired byvirtualenvwrapper. By default, Pyromania will create a venv namedvenvin the current directory, and:Install the latest versions ofpipandwheel.Includes handy options for switching to thesite-packagesfolder.Creates pre and post activation hook scripts for additional customization.Activating yourvenvwill automagically move to your project directory with a default pre-activation hook.System Wide InstallationTo install thepyrocommand for all users on your system with sudo escalation:curl-sShttps://raw.githubusercontent.com/FlipperPA/pyromania/main/install-sudo.sh|shAn Ansible role for installation is also available.User InstallationTo install thepyrocommand for the current user only:curl-sShttps://raw.githubusercontent.com/FlipperPA/pyromania/main/install.sh|shUsageOptions:--help,-h: Display the help menu.--delete,-d: Delete the venv.--create,-c: Create the venv without prompting.--packages-p: Change to the venv's site-packages directory.Examples:pyro: Lists the venvs currently managed by pyromania.pyro my_venv: Activate a venv calledmy_venv, or prompts to create it if it doesn't exist.pyro my_venv -c: Creates a venv calledmy_venvwithout prompting.pyro my_venv --delete: Deletes a venv calledmy_venv.pyro my_venv -p: Change to to the venv's site-packages directory.SettingsVENV_DIR(default:venv): default venv directory name.VENV_PYTHON(default:python3): the default version of Python to include.Pre and Post Activation HooksPyromania will create two hook files in yourvenvwhich can be modified for pre and post activation actions:venv/pre_activate.sh: script is run before thevenvis activated.venv/post_activate.sh: script is run after thevenvis activated.
Package: py-romanify
InstallationYou can install py-romanify withpip:$pipinstallpy-romanifyOr fromgit:$gitclonehttps://github.com/peter-lisak/py-romanify.git$pythonsetup.pyinstallUsageConverting numbers from roman to arabic:>>>importromanify>>>romanify.roman2arabic("MMXV")2015From arabic to roman:>>>importromanify>>>romanify.arabic2roman(2015)"MMXV"Changelog0.1.4 (2015-04-12)Beta releasepylint (pep8)doc strings0.1.3 (2015-03-31)unittest (extended)python3+ support extendedbugfix - python3+: TypeError: can’t multiply sequence by non-int of type ‘float’0.1.2 (2015-03-22)unittestbugfix - python3.4: AttributeError: ‘str_iterator’ object has no attribute ‘next’lower case roman numerals0.1.1 (2015-03-22)renamed functions: arabic2romans -> arabit2roman, romans2arabic -> roman2arabicdoc0.1.0 (2015-03-22)Pre-release
Package: pyromarc
MARC::MIR est une spécification de représentation mémoire (sous la forme de
tableau de tableaux) de données bibliographiques cataloguée en MARC. elle
permet d’établir des ponts simples entre les différents outils exitants de
traitement, sérialisation, indexation, …InstallPyromarc is only working underPython 3.2for the moment. To install the module, use pip$> pip install pyromarcReadingISO2709Load MIRs from ISO2709from pyromarc import reader

mirs = reader('/path/to/records.iso2709', 'ISO2709')
for mir in mirs:
    do_something_with(mir)Or, with a filehandlerfrom pyromarc import readerb

with open('/path/to/records/example.iso2709', 'rb') as filehandler:
    mirs = readerb(filehandler, 'ISO2709')
    for mir in mirs:
        do_something_with(mir)MsgpackLoad MIRs from stdinimport sys
from pyromarc import readerb

mirs = readerb(sys.stdin, 'MsgPack')
for mir in mirs:
    do_something_with(mir)WritingISO2709Write MIRs in filefrom pyromarc import writer

[...]
writer('/path/to/records.iso2709', mirs, 'ISO2709')Writing ISO2709 records in JSONfrom pyromarc import reader, writer

mirs = reader('/path/to/records.iso2709', 'ISO2709')
writer('/path/to/records.json', mirs, 'Json')MsgPackWriting on stdoutimport sys
from pyromarc import writerb

[...]
writerb(sys.stdout, mirs, 'MsgPack')
Package: pyromark
pyromarkpyromark (stands for Python Rust Optimized Markdown) is a blazingly fast CommonMark-compliant Markdown parser for Python.Usespulldown-cmarkRust crate under the hood.Installationpython-mpipinstall-UpyromarkDocumentationhttps://pyromark.readthedocs.ioPerformance128x faster thanMarkdown,
105x faster thanmarkdown-it-py,
79x faster thanmistune,
8x faster thanmarkdown-it-pyrs.If you use threading, the difference with other libraries will be even more enormous, since pyromark releases theGIL.Seebenchmark.LicenseMIT
Package: pyromaths
Pyromathsest un programme qui a pour but de créer des exercices type de mathématiques niveau collège et lycée ainsi que leur corrigé. C'est ce qu'on appelle parfois un exerciseur. Contrairement à de nombreux autres projets, Pyromaths a pour objectif de proposer une correction véritablement détaillée des exercices proposés et pas seulement une solution.Il permet par exemple de proposer des devoirs maison aux élèves et de leur distribuer ensuite la correction. Il peut aussi servir à des familles afin qu'un élève puisse travailler un point du programme et se corriger ensuite.Si vous voulez participer à la traduction, consultezcette page.DépendancesPour utiliser pyromaths, il faut :Python (version 3.5 ou supérieure) ;quelques bibliothèques python qui seront installées automatiquement avec pyromaths ;LaTeX (par exempleTeXLive), et de nombreux paquets, y compris le binairelatexmk(voir les instructions surle site web de Pyromaths).Utiliser PyromathsCe dépôt concerne la version en ligne de commandes. Vous cherchiez peut-être :Version en ligneIl est possible d'utiliser Pyromaths sans l'installer, en utilisantla version en ligne.Version de bureauPour GNU/Linux, Mac OS, Windows, visitezla page d'installation.Version en ligne de commandeInstallation :pip install pyromathsUtilisation (par exemple, création d'une fiche d'exercice pour la spécialité math en terminale ES) :pyromaths generate EtatStableSysteme2 InterpolationMatricesPour plus d'informations :pyromaths --helpDévelopper PyromathsClonez le dépôt pour télécharger les sources.git clone https://framagit.org/pyromaths/pyromaths.git
  cd pyromathsCréer un virtualenv utilisant python3.virtualenv -ppython3 pyromaths-venvInstallez les dépendancespip install -r requirements.txtVous pouvez maintenant utiliser pyromaths, avec l'une ou l'autre des commandes suivantes.python -m pyromaths
  ./utils/pyromaths
Package: pyromaths-qt
Pyromathsest un programme qui a pour but de créer des exercices type de mathématiques niveau collège et lycée ainsi que leur corrigé. C'est ce qu'on appelle parfois un exerciseur. Contrairement à de nombreux autres projets, Pyromaths a pour objectif de proposer une correction véritablement détaillée des exercices proposés et pas seulement une solution.Il permet par exemple de proposer des devoirs maison aux élèves et de leur distribuer ensuite la correction. Il peut aussi servir à des familles afin qu'un élève puisse travailler un point du programme et se corriger ensuite.Si vous voulez participer à la traduction, consultezcette page.Installation pour Linux/Windows/MacVoirla documentationInstallation depuis PypiDans un terminal (de préférence dans unvirtualenv) :pip install pyromaths-qt
Package: pyromenu
PyromenuPyromenuis an easy-to-extend object-oriented library for building keyboard menus for telegram bots on thePyrogramBase usage casefrompyrogramimportClient,Filters,ReplyKeyboardRemovefrompyromenuimportKButton,KRow,KMenuapp=Client("app")# it's menu declaration stylemenu=KMenu(KRow(KButton("English"),KButton("Russian"),KButton("Portugues")),KRow(KButton("exit")))@app.on_message(Filters.command("start"))defsend_keyboard(clt,msg):msg.reply("Hi / Привет / Oi",reply_markup=menu.keyboard)# use KButton update_filter property for creating Filter for Handler's@app.on_message(KButon("exit").update_filter)defremove_keyboard(clt,msg):msg.reply("Bye / Пока / Adeus",reply_markup=ReplyKeyboardRemove)ABC'sPyromenu define 3 abstract classes:Button,Row,MenuButton__hash____eq__keyboard_button(properrty) - return KeyboardButtonupdate_filter(property) - return FilterRowkeyboard_row(property) - return list of KeyboardButton'sbuttons(property) - return list of Button'sMenukeyboard(property) - return ReplyKeyboardButtonone_time_keyboard(property) - same askeyboard, but with one_time_keyboard flag onfilter(property) - return composite Filter of all buttonmatched_button- take message and return first matched buttonBuilt-in'sPyromenu provides simple built-in implementations of each abstract classes:KButton,KRow,KMenuUsagePyromenu has a distinctive menu declaration style inspired by the principles of Elegant Objects.frompyrogramimportClientfrompyromenuimportKButton,KRow,KMenuapp=Client("app")menu=KMenu(KRow(KButton("English"),KButton("Russian"),KButton("Portugues")),KRow(KButton("exit")))Sendingapp.send_message(chat_id,text,reply_markup=menu.keyboard)# or# send one time keyboardapp.send_message(chat_id,text,reply_markup=menu.one_time_keyboard)Handling@app.on_message(KButton("exit").update_filter)defexit(clt,msg):msg.reply("Bye / Пока / Adeus"reply_markup=ReplyKeyboardRemove)# or# if you have more complex menu@app.on_message(menu.filter)defhandle_menu(clt,msg):matched_button=menu.matched_button(msg)ifmatched_button==KButton("exit"):msg.reply("Bye / Пока / Adeus"reply_markup=ReplyKeyboardRemove)...ExpandingAll built-in classes have minimal dependency on others. All you need to do is implement abstract class. For example if you need to create button, which send location request you can create that:frompyrogramimportKeyboardButton,Filtersfrompyromenu.abcimportButtonclassLocationButton(Button):def__init__(self,text):self._text=textdef__hash__(self):returnhash(self._text)def__eq__(self,other_button):returnhash(self)==hash(other_button)@propertydefkeyboard_button(self):returnKeyboardButton(self._text,request_location=True)@propertydefupdate_filter(self):returnFilters.create(name=f"{self._text}ButtonFilter",func=lambdaflt,msg:flt.btn_txt==msg.text,btn_txt=self._text,)or that:frompyrogramimportKeyboardButtonfrompyromenuimportKButtonclassLocationButton(KButton):@propertydefkeyboard_button(self):btn=super().keyboard_buttonbtn.request_location=Truereturnbtnand it's will be works well with any built-in classesInstallingpip3installpyromenu
Package: pyromilksnakex
MilksnakeMilksnake is an extension for setuptools that allows you to distribute
dynamic linked libraries in Python wheels in the most portable way imaginable.It gives you a hook to invoke your own build process and to then take the
resulting dynamic linked library.Why?There are already other projects that make Python and native libraries play
along but this one is different.  Unlike other projects that build Python
extension modules the goal of this project is to build regular native libraries
that are then loaded with CFFI at runtime.  Why not just use CFFI?  Because
CFFI's setuptools support alone does not properly work with such wheels (it
does not provide a way to build and properly tag wheels for shared libraries) and
it does not provide a good way to invoke an external build process (like a
makefile, cargo to build rust binaries etc.)In particular you will most likely only need two wheels for Linux, one for macs
and soon one for Windows independently of how many Python interpreters you want
to target.What is supported?Platforms: Linux, Mac, Windowssetuptools commands:bdist_wheel,build,build_ext,developpip install --editable .Universal wheels (PACKAGE-py2.py3-none-PLATFORM.whl); this can be disabled
withmilksnake_universal=Falseinsetup()in case the package also contains
stuff that does link against libpython.How?This example shows how to build a rust project with it:This is what asetup.pyfile looks like:fromsetuptoolsimportsetupdefbuild_native(spec):# build an example rust librarybuild=spec.add_external_build(cmd=['cargo','build','--release'],path='./rust')spec.add_cffi_module(module_path='example._native',dylib=lambda:build.find_dylib('example',in_path='target/release'),header_filename=lambda:build.find_header('example.h',in_path='target'),rtld_flags=['NOW','NODELETE'])setup(name='example',version='0.0.1',packages=['example'],zip_safe=False,platforms='any',setup_requires=['milksnake'],install_requires=['milksnake'],milksnake_tasks=[build_native])You then need arust/folder that has a Rust library (with a crate type
ofcdylib) and aexample/python package.Exampleexample/__init__.pyfile:fromexample._nativeimportffi,libdeftest():returnlib.a_function_from_rust()And arust/src/lib.rs:#[no_mangle]pubunsafeextern"C"fna_function_from_rust()->i32{42}And therust/Cargo.toml:[package]name="example"version="0.1.0"build="build.rs"[lib]name="example"crate-type=["cdylib"][build-dependencies]cbindgen="0.19"And finally the build.rs file:externcratecbindgen;usestd::env;fnmain(){letcrate_dir=env::var("CARGO_MANIFEST_DIR").unwrap();letmutconfig:cbindgen::Config=Default::default();config.language=cbindgen::Language::C;cbindgen::generate_with_config(&crate_dir,config).unwrap().write_to_file("target/example.h");}
Package: pyromises
Pyromises 🐍Promises for PythonWhat it does 🤔Pyromises is a high-level wrapper over threads for Python, it provides an API very similar to Javascript for dealing with asynchronous code.Examples 🤓In Javascriptfetch('https://api.github.com/Nxrth-x').then(res=>res.json()).then(console.log)In PythonimportrequestsfrompyromiseimportPromisedeffetch_data():response=requests.get('https://api.github.com/Nxrth-x')returnresponse.json()Promise(fetch_data).then(print)Author 🙋‍♂️GitHubEmail
Package: pyroml
pyroml🔥 Machine Learning framework allowing plug-and-play training for pytorch modelsInstallation$gitclonehttps://github.com/peacefulotter/pyroml.git
$cdpyroml
$sudoaptinstallpython3.10-venv# check you python version and change it here if !=$sudoaptinstallpython3-virtualenv
$python3-mvenvvenv
$source./venv/bin/activate
$pipinstall-rrequirements.txtRunning tests$cdtests
$pythonmain.py# this will launch the training, follow the wandb link to access the plots$pythonpretrain.py# will load the last checkpoint and compute mse on a small part of the dataset, outputs True if model predicts correctly!DoneMetrics, with support for custom metricsWandBCheckpointsLoad pretrained models from checkpoints
Package: pyromodz
Telegram MTProto API Framework for PythonHomepage•Documentation•Releases•NewsPyromodzA fork version elegant, modern and asynchronous Telegram MTProto API framework ofPyrogramlibrary in Python for users and bots withPyromodfeatures.frompyromodzimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyromodz!")app.run()Pyromodzis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.Key FeaturesReady: Install Pyromodz with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyromodzResourcesJoin the official channel athttps://t.me/pyromodzand stay tuned for news, updates and announcements.Special ThanksPyrogram- Pyrogram is a original library source from which pyromodz was built.Pyromod- An add-on to make developing Telegram bots faster and more efficient.