Saravanan666/pypi-org huggingface dataset:
Package: rpeasings
Robert Penner's Easing FunctionsThere are a plethora of versions available of these, many of which provide an
object oriented interface, while most of the original easing functions could
be simple inline expressions.This library takes the purely functional approach.  No class instantiation,
just a function call.Seehttps://easings.netfor a good visualisation of these to chose the right
one.Module contentsWith the exception ofnull,in_expxandout_expx, this is a pure python
port of "Penner's Easing Functions", based on the js code fromhttps://easings.netwhere you can also see a catalog of them in action to
chose the right one.The following functions are included:in_back         out_back        in_out_back
in_bounce       out_bounce      in_out_bounce
in_circ         out_circ        in_out_circ
in_cubic        out_cubic       in_out_cubic
in_elastic      out_elastic     in_out_elastic
in_expo         out_expo        in_out_expo
in_quad         out_quad        in_out_quad
in_quart        out_quart       in_out_quart
in_quint        out_quint       in_out_quint
in_sine         out_sine        in_out_sineAdditionally, I added a 'null' function, so easing can be disabled without
changing the interface in the application.  It's basically anop.null(t) -> tIn case you want to control the easing function by user input, theeasingsdictionary provides a map from function names to functions, e.g.eased = rpeasings.easings['out_elastic']To use any of the included functions, create at(for 'time') value in the
range 0-1 from your required range (e.g.t = current / max).Putting thistinto most(!) easing function, will give you a new 'eased'
value in the range 0-1.Note: the following functions over-/undershoot:`in_back`     `out_back`     `in_out_back`
`in_elastic`  `out_elastic`  `in_out_elastic`Additionally, you can then put that eased value as input into alerpfunction to add dynamics to an otherwise linear range.Have fun, once you started using one, you'll probably find usecases for them
everywhere in your game...
Package: rpextractsink
rpextractsinkRetroPath2 sink generatorInputRequired:input_sbml: (string) Path to the input SBML fileOptional:--remove_dead_end: (boolean, default: True) Perform FVA evaluation to remove dead end metabolites--compartment_id: (string, default: MNXC3) Specify the compartment from which to extract the sink molecules. The default are for MetaNetX filesOutputoutput_sbml: (string) Path to the output csv fileInstallFrom pip[sudo]python-mpipinstallrpextractsinkFrom Conda[sudo]condainstall-cbrsynthrpextractsinkUseFunction call from Python codefromrpextractsinkimportrpextractsinkTO_FILLIf parameters from CLI have to be parsed, the functionbuild_args_parseris available:fromTO_FILLimportbuild_args_parserparser=buildparser()params=parser.parse_args()Run from CLIpython-mrpextractsinkAuthorsMelchior du LacThomas Duigou, Joan HérissonLicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsHow to cite RetroRules?Please cite:TO_FILL
Package: rpft
RapidPro Flow ToolkitToolkit for using spreadsheets to create and modify RapidPro flows.Quickstartpipinstallrpft
rpft--helpCommand Line Interface (CLI)The CLI allows spreadsheets in various formats to be converted to RapidPro flows in JSON format. Full details of the available options can be found via the help feature:rpft--helpBelow is a concrete example of a valid execution of the command line tool. The line breaks are merely for improving readability; the command would also be valid on a single line.rpftcreate_flows\--outputflows.json\--datamodels=tests.input.example1.nestedmodel\--format=csv\src/rpft/tests/input/example1/content_index.csvUsing the toolkit in other Python projectsAdd the packagerpftas a dependency of your project e.g. in requirements.txt or pyproject.tomlImport thecreate_flowsfunctionCallcreate_flowsto convert spreadsheets to flowsfromrpft.convertersimportcreate_flowssheets=["sheet1.csv","sheet2.csv"]create_flows(sheets,"flows.json","csv",data_models="your_project.models")It should be noted that this project is still considered beta software that may change significantly at any time.RapidPro flow spreadsheet formatThe expected contents of the input spreadsheets isdocumented separately.Processing Google SheetsIt is possible to read in spreadsheets via the Google Sheets API by specifying--format=google_sheetson the command line. Spreadsheets must be in the Google Sheets format rather than XLSX, CSV, etc.Instead of specifying paths to individual spreadsheets on your local filesystem, you must supply the IDs of the Sheets you want to process. The ID can be extracted from the URL of the Sheet i.e. docs.google.com/spreadsheets/d/ID/edit.The toolkit will need to authenticate with the Google Sheets API and be authorized to access your spreadsheets. Two methods for doing this are supported.OAuth 2.0 for installed applications: for cases where human interaction is possible e.g. when using the CLIService accounts: for cases where interaction is not possible or desired e.g. in automated pipelinesInstalled applicationsFollow the steps in thesetup your environment sectionof the Google Sheets quickstart for Python.Once you have acredentials.jsonfile in your current working directory, the toolkit will automatically use it to authenticate whenever you use the toolkit. The refresh token (token.json) will be saved automatically in the current working directory so that it is not necessary to go through the full authentication process every time.Service accountsFollow the steps in thecreating a service account sectionto obtain a service account key. The toolkit will accept the key as an environment variable calledCREDENTIALS.exportCREDENTIALS=$(catservice-account-key.json)rpft...DevelopmentFor instructions on how to set up your development environment for developing the toolkit, see thedevelopmentpage.
Package: rpg
RapidPeptidesGenerator (RPG)Rapid Peptides Generator (RPG) is a software dedicated to predict proteases-induced cleavage sites on amino acid sequences.note:RPG is tested with Gitlab Ci for the following Python version: 3.6 to 3.11issues:Please usehttps://gitlab.pasteur.fr/nmaillet/rpgpublication:To cite RPG, please refer tohttps://doi.org/10.1093/nargab/lqz004OverviewRapid Peptides Generator (RPG), is a standalone software dedicated to predict proteases-induced cleavage sites on sequences.RPG is a python tool taking a (multi-)fasta/fastq file (gzipped or not) of proteins as input and digest each of them. The digestion mode can be either ‘concurrent’, i.e. all enzymes are present at the same time during digestion, or ‘sequential’. In sequential mode, each protein will be digested by each enzyme, one by one.The resulting peptides contain information about positions of cleavage site, peptide sequences, length, mass as-well as an estimation of isoelectric point (pI) of each peptide. Shortly, the isoelectric point is the pH at which a peptide carries no net electrical charge and a good approximation can be computed on small molecules. Results are outputted in multi-fasta, CSV or TSV file.Currently, 45 enzymes and chemicals are included in RPG. The user can easily design new enzymes, using a simple yet powerful grammar. This grammar allows the user to design complex enzymes like trypsin or thrombin, including many exceptions and different cleavage sites. User-defined enzymes are then interpreted by RPG and included in the local installation of the software.RPG follows the standards for software development with continuous integration on Gitlab (https://gitlab.pasteur.fr/nmaillet/rpg) and automatic on-line documentation (https://rapid-peptide-generator.readthedocs.io).InstallationIn order to install RPG, you can usepip:pip3installrpgThis command installs RPG and its Python dependencies.UsageFrom the command line:rpg--help
Package: rpgen
Password GeneratorThis generator makes it easy to set up a new passwordIt supports creating:Passwords of any length.Any type of character can be usedStrings with patterns can be usedThis password generator contains numbers, lowercase letters, uppercase letters and special characters by default.If you want to use a password that contains other types of characters or string patterns, please see the Table of Contents of Usage.CompatibilityThis password generator has been tested on Python 3.7, 3.8, 3.9 and 3.10.UsageInstall the rpgen package.pip install rpgenThe basic usage is to create a PasswordGenerator object and call its generate method.>>> from rpgen.password_generator import PasswordGenerator
>>> PasswordGenerator().generate()
"h~'<OT9d#vI%"You can adjust the password length by setting MIN and MAX.>>> generator.min = 5
>>> generator.max = 5
>>> generator.generate()
'7+ZxY'You can add new text types to type.>>> generator.types['korean'] = CharacterType(["가", "나", "다", "라"])
>>> generator.generate()
'zN57N[3zv,라'You can adjust the length of each type of text.>>> generator.types['uppercase'].min = 5
>>> generator.generate()
'SR:7G0AC_(VIs\\'CharacterType VariableNameDescriptionTypeDefaultcandidateCharacter candidate list to be Generated.listConstructorminMinimum length of list of characters to generate.int1maxMaximum length of list of characters to generate.int16charactersList of generated characters.list[]PasswordGenerator VariableNameDescriptionTypeDefaulttypesCharacter type map to be included in password.dict{"uppercase": CharacterType(list(string.ascii_uppercase)),"lowercase": CharacterType(list(string.ascii_lowercase)),"digits": CharacterType(list(string.digits)),"special": CharacterType(list(set(string.punctuation)))}minMinimum length of list of password to generate.int8maxMaximum length of list of password to generate.int16RequirementsNothing.ContributingCode Static Analyzer (flake8) check should pass.Annotations must be applied to password_generator.py and character_type.py.Required to write test code.
Package: rpg-icon-generator
RPG icon generatorThis package generate RPG items images procedurally, based onBrianMacIntosh AlgoritmsItem typeBladePotionAxesArmorHammerOutput exampleComplexityRarity equivalentBlade ExamplesPotion ExamplesAxe ExamplesArmor ExamplesHammer Examples0Common Low40Common High41Uncommon Low60Uncommon High61Rare Low85Rare High86Epic Low95Epic High96Outstanding Low100Outstanding Highinstallationpip install rpg-icon-generatorYou will need to install Cairo for the images part
Checkout thishttps://pypi.org/project/drawSvg/to install itUsagefromrpg_icon_generatorimportBlade_Generatorgenerator=Blade_Generator()seed=datetime.now()# provide a seed for this blade# the image will be in test/out/[seed].png# the image will be 32*2 by 32*2 pixels# complexity ranging from 0 to 100generator.generate(seed=seed,complexity=50,dimension=32,render_scale=2,output_directory='test/out/')# Same for the other generatorfromrpg_icon_generatorimportPotion_Generator,Axe_Generator,Armor_Generator,Hammer_Generator
Package: rpg-namer
rpg namerThis is a simple package to generate random item names from pre-compiled lists of descriptions and item typesSome example names generated:Lusca's Fists
Consternation Dress
The Intimidation Footpads
Kushtaka's Spangenhelm
The Actual Nasal Helmet
Yuki-Onna's Greaves
Footguards of the Edged Antaeus
Trepidity Warboots of the Svartálfar
Possible Anklet
Horrible Trousers
Tanktop of the Shikoku
Legwraps of the Dismay Familiar Spirit
Suit of the Real Suangi
Devilish Gloves of the HeikeganiInstalling and UsageInstallationpython -m pip install rpg_namerUpgradingpython -m pip install rpg_namer --upgradeBasic Usagefromrpg_namerimportRPGItemsgen=RPGItems()print(gen.random_item())# Output: Horrible TrousersAdditional overrides for the items, adjectives and target nouns are provided as keywords, and support list
functionality:fromrpg_namerimportRPGItemsoverride_items=['buckler']override_nouns=['serpent']override_adjectives=['flaming']gen=RPGItems(items=override_items,adjectives=override_adjectives,nouns=override_nouns)print(gen.random_item())# Output: Flaming Buckler of the SerpentGeneration of the item name will be done using random selections from each list and fabricated by static item formats
in the class. For additional suggested formats, or new word lists, please add a suggestion via branch/PR.Word List generationGeneration of the word lists or stripping tools from source can eb found under the examples directory which includes
some base code for generating word lists and formatting python lists for consumption. This can assit in new list
generation.
Package: rpg-pybot
rpg_pybotDescription.
The package rpg_pybot is used to:dice:
	roll	
players:
	PlayerInstallationUse the package managerpipto install rpg_pybotpipinstallrpg_pybotUsagefromrpg_pybot.diceimportroll,playersroll.roll()player1=player.Player("name")player2=player.Player("name")player1.player_data()player1.set_char_class([0-3])player1.attack(player2)AuthorLucas Mateus da SilvaLicenseMIT
Package: rpgt
RPGTAn Automated Repository and Pipeline Generation Tool for Data-Science Projects.RPGTDocumentationFeaturesLicenseAuthorsQuick Installpip install rpgtExample projectAn example project has been created to show case what RPGT can generate.RPGT generated example projectDocumentationTutorialGetting startedDVCChangelogFeatures.githooks folder with pre-commit linting.gitlab folder with issue and merge templates.gitignore generatorREADME.md generatorLICENSE.md generatorCHANGELOG.md generatorCONTRIBUTING.md generatordirectory structure generatorbasic files generatorPipfile generator (requirements file)automated linting setupautomated testing setupautomated DVC integrationCICD generatorsgitlab CIlintingtestingpublishingreports & artifactsgithub actionsautomated package distribution setupautomated docker image distribution setupLicenseThis project is MIT licensed. Please see theLICENSEfile for more information.AuthorsDimitri StallenbergGijs de JongNiels BaumanPlease see theCONTRIBUTINGfile for more information on how to contribute to this project.
Package: rpgtk
RPGTKRole-Playing Game Toolkit is a platform for build Python RPG's systems.InstallingInstall and update usingpip:$ pip install -U rpgtkA simple example# dice.pyfromrpgtkimportDicedice=Dice(sides=20)dice.roll()print(dice)pythondice.py'D20[6]'# advantage rollfromrpgtkimportDicedice=Dice(sides=20)advantage_roll=max(dice*2)print(advantage_roll)
Package: rph
Random Projection HashingProvides a PyTorch module for random projection hashing with GPU acceleration. Similar tensors (cosine similarity) will be assigned the same hash with high probability.Installation$ pip install rphUsageSeeexample.pyfor an example on how to userphon DNA strings. Please note thatrphcan be used with any arbitrary tensors. In summary, this package provides a moduleRandomProjectionHashModule(input_dim, hash_bits)whereinput_dimis the size of the input tensors andhash_bitsis the number of bits to use for the final hash value. For example, choosing 4 bits will result in all tensors being split into 16 buckets only.
Package: rpi-7segment
Software to control 7-segment displays.Software:Based on code found in the comments section of theSparkFun Hookup Guide. Thanks toMember #910971andMember #642108.This code is further improved to easily support multiple displays, as well as text/numbers, with scrolling.Hardware:Tested with the following hardware:7-Segment Display - 6.5" (Red)SparkFun Large Digit DriverRaspberryPi 4SN74AHCT125N Quadruple Bus Buffer Gates With 3-State OutputsAdafruit Perma-Proto HATIt is likely to work with other variants, home made displays and/or drivers based onTPIC6C596, as well as other voltage converters for signal, for example theSparkFun Logic Level Converter.12v power to the displays are provided externally.Build instructions:https://learn.sparkfun.com/tutorials/large-digit-driver-hookup-guide/allIn our case, we swapped the Arduino with a RaspberryPi 4. As the Pi operates with 3.3v signals on the GPIO compared to the 5v of the Arduino, the signal lines (clk, latch, data) needs to be adjusted via a logic level converter.Defaults:Segments class parameters, based on theRaspberry BCM pinout:bcm_gpio_clock=11(CLK)bcm_gpio_latch=13(Signals when to switch to the next display)bcm_gpio_data=14(TXD - used to turn each segment on/off)num_displays=7(The number of displays you've chained)debug=False(Turns on debug output to console)offline=False(Deactivates the actual GPIO-parts, used mainly for dev/tests)
Package: rpi.asthma_files_site
Asthma Files SiteA collective inquiry in to complex conditions. Development sponsored by Rensselaer Polytechnic Institute (RPI).AboutThe “Asthma Files Site” add-on for Plone is a research tool, currently in use by RPI but available to anyone doing similar research. It features Dexterity content types and a Collective Cover integration to enable the creation of an “Asthma File”: a collectively developed document containing artifacts and annotations.InstallationTo install “Asthma Files Site” functionality on your Plone site, addrpi.asthma_files_siteto your list of Plone “instance eggs” in yourbuildout.cfgfile. Run Buildout and restart Plone. Create a new Plone site with the add-on selected:Or add the functionality to an existing site:After installation, you should be able to add 6 new content types:UsageFollow these steps to begin using the “Asthma Files Site” functionality in your Plone site.Add a QuestionQuestionsfacilitateAnnotationsofArtifactswhen researchers respond to them in context. Before you do anything else, add an Asthma Question to your site.Create ArtifactsAn “Asthma File” is produced via the assembly of artifacts and annotations. So next, add some artifacts to your site. E.g.:Audio artifactNoteCurrently only OGG audio supportedDocument artifactImage artifactVideo artifactNoteCurrenly only OGG video supportedCreate an Asthma FileNow we can create an Asthma File, which is a collaborative document consisting of multiple Artifacts, Annotations, etc. Made possible via the use of Collective Cover.[1][1]Catch 22: We’d like to customize the available types for Cover, but they don’t exist until we install ourselves first. Workaround: customize TTW e.g.Changelog0.0.4 - 09/02/2013More documentationChange title/id generation on all artifacts to use INameFromFileName behavior0.0.3 - 08/28/2013Remove new-style (Diazo) theme0.0.2 - 08/25/2013Add empty registryRemove dep on p.a.themingAdd preliminary installation and usage documentation.UI change: ‘(Asthma) Question’ -> Asthma Question.Remove logo customization until Diazo theme is completed/supported.0.0.1 - 08/21/2013Initial release
Package: rpi-backlight
rpi-backlightA Python module for controlling power and brightness of the official Raspberry Pi 7" touch display.Note:This GIF was created using the old v1 API, so please don't use it as API reference 🙂FeaturesSet the display brightnesssmoothlyorabruptSet the display power on or offGet the current brightnessGet the display power state (on/off)Command line interfaceGraphical user interfaceRequirementsARaspberry Pi or ASUS Tinker Boardincluding a correctly assembled7" touch display v1.1 or higher(look on the display's circuit board to see its version), or aSurface RTrunning a Linux-based OSPython 3.6+Optional: Raspberry Pi:pygobjectfor the GUI, already installed on a recent RaspbianOptional: Tinker Board:gir1.2-gtk-3.0for the GUI installInstallationInstall from PyPI:$pip3installrpi-backlightNote:Create this udev rule to update permissions, otherwise you'll have to run
Python code, the GUI and CLI as root whenchangingthe power or brightness:$echo'SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"'|sudotee-a/etc/udev/rules.d/backlight-permissions.rulesEmulatorFor testing without a physical display (e.g. on your main Linux/macOS/Windows machine)
you can uselinusg/rpi-backlight-emulator.UsageAPIExample in a Python shell:>>>fromrpi_backlightimportBacklight>>>>>>backlight=Backlight()>>>backlight.brightness100>>>backlight.brightness=50>>>backlight.brightness50>>>>>>withbacklight.fade(duration=1):...backlight.brightness=0...>>>backlight.fade_duration=0.5>>># subsequent `backlight.brightness = x` will fade 500ms>>>>>>backlight.powerTrue>>>backlight.power=False>>>backlight.powerFalse>>>For more details seedocs.CLIOpen a terminal and runrpi-backlight.$rpi-backlight-b100$rpi-backlight--set-brightness20--duration1.5$rpi-backlight--get-brightness20$rpi-backlight--get-poweron$rpi-backlight-poff$rpi-backlight--get-poweroff$rpi-backlight--set-poweroff:emulator:$rpi-backlight-ptoggle$rpi-backlight-ptoggle-d1.5$For all available options seedocs.GUIOpen a terminal and runrpi-backlight-gui.Adding a shortcut to the LXDE panelSeedocs.TestsTests usepytest, install withpip3 install pytest.Now, run from the repository root directory:$python3-mpytestContributingPlease free to open an issue for bug reports and to discuss new features - pull requests for new features or bug fixes are welcome as well!LicenseThe source code and all other files in this repository are licensed under the MIT
license, so you can easily use it in your own projects. SeeLICENSEfor
more information.
Package: rpi-backlight-emulator
Raspberry Pi 7" LCD emulator forrpi-backlightThis is an emulator for the Raspberry Pi 7" LCD to test and developrpi-backlightwithout having a physical
display connected or even running on the Pi.RequirementsPython 3.5+ is required, along with the packagesPySide2,watchdogandrpi-backlight>=2.0.0(see below).InstallationPySide2 wheels for x86/x64 are available on PyPI, so you can simply run:$ pip3 install rpi-backlight-emulatorOn ARM (e.g. Raspberry Pi) it's more complicated (and only the new Debian/Raspbian Buster
will work, Stretch won't - you'd have to install PySide2 from source):$ sudo apt install python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtwidgets
$ pip3 install watchdog rpi-backlight>=2.0.0
$ pip3 install --no-deps rpi-backlight-emulatorUsageRun:$ rpi-backlight-emulatorNote: on Windows,you'll need administrator privileges to create symbolic links,which this program does - so you'll have to execute the above as administrator.Next, open a Python shell and create arpi_backlight.Backlightinstance using the
emulator:>>>fromrpi_backlightimportBacklight>>>backlight=Backlight(":emulator:")>>>Now, continue like you're connected to a real display!You can make changes to the display using the emulator, they'll be reflected in the
Python-API and vice versa.EnableShow live screento replace the static Raspbian Buster screenshot with a live
preview of your monitor.ScreenshotsLicenseThe source code and all other files in this repository are licensed under the MIT
license, so you can easily use it in your own projects. SeeLICENSEfor
more information.
Package: rpi-bad-power
rpi-bad-powerA Python library to detect bad power supply on Raspberry Pi. This library is mainly built for theRaspberry Pi Power Supply Checkerintegration ofHomeAssistant. It should also work for other purpose.CompatibilityThis library only works on kernel 4.14+. It supports getting the under voltage bit from different entries.Related PRs:raspberrypi/linux#2397:/sys/devices/platform/soc/soc:firmware/get_trottledraspberrypi/linux#2706:/sys/class/hwmon/hwmon0/in0_lcrit_alarmUsageHere is an example on how to use this library.fromrpi_bad_powerimportnew_under_voltageunder_voltage=new_under_voltage()ifunder_voltageisNone:print("System not supported.")elifunder_voltage.get():print("Under voltage detected.")else:print("Voltage is normal.")CreditsSome of the code are based oncustom-components/sensor.rpi_powermaintained by@swetoast.