Saravanan666/pypi-org huggingface dataset:
Package: pychlorinator
Astral Pool Viron eQuilibrium Chlorinator<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="pbutterworQ" data-color="#FFDD00" data-emoji=""  data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff" ></script>
Package: pychm
PyCHM is a Python library to manipulate CHM files (Microsoft HTML Help).This library supports Python 2.7 and Python 3.5+. It is in a maintenance mode
and accepts only security and bug fixes.APIThe chm package contains four modules:chm.chm: High-level support for CHM archives.chm.extra: Extra utility functions - full-text search support,
encoding detection.chm.chmlib: Low level wrappers around the chmlib API (Python part).chm._chmlib: Low level wrappers around the chmlib API (C part).
This module is unstable and subject to change without notice.
Package: pycho
A game engine with inbuilt AI support written for Python 2 and 3.Creating custom objectsObjects in pycho are both drawn and collided in the same way. populated_at is called when needed, and should return a list of (Color, x, y) tuples. These tuples are used to calculate collisions, by figuring out during movement if there is anything in the up coming square or not. Color is used for the drawing of the objects.Groups of same-colored squares will be grouped together to improve drawing performance.
Package: py-chocolatey
py-chocolateyPythonpy-chocolateypackage provides API for Chocolatey,
the Package Manager for Windows.OverviewTBD…PyPI record.Documentation.UsageTBD…InstallationPrerequisites:Python 3.8 or higherhttps://www.python.org/ATTENTION: currently works and tested only for Windows.pip and setuptoolshttps://pypi.org/project/pip/https://pypi.org/project/setuptools/To install run:python -m pip install --upgrade py-chocolateyDevelopmentPrerequisites:Development is strictly based ontox. To install it run:python -m pip install --upgrade toxVisitDevelopment page.Installation from sources:clone the sources:git clonehttps://github.com/karpierz/py-chocolatey.gitpy-chocolateyand run:python -m pip install ./py-chocolateyor on development mode:python -m pip install --editable ./py-chocolateyLicenseCopyright (c) 2022-2024 Adam KarpierzLicensed under the zlib/libpng Licensehttps://opensource.org/license/zlibPlease refer to the accompanying LICENSE file.AuthorsAdam Karpierz <adam@karpierz.net>Changelog0.4.0 (2024-01-26)Setup update (now based on tox >= 4.0).Add support for Python 3.12Add support for PyPy 3.9 and 3.10Copyright year update.Cleanup.0.3.1 (2023-11-24)Fix for info(). Now works for local_only=True.Setup cleanup.0.3.0 (2023-11-22)Drop support for Python 3.7.Setup (dependencies) update.0.2.2 (2023-10-27)Added –yes option as default for push().0.2.1 (2023-10-13)Fix for setup.0.2.0 (2023-10-12)Added Chocolatey.setup() for install chocolatey.0.1.2 (2023-10-11)Fixes for many functions that failed when the source was set.0.1.1 (2023-10-11)Added missing source_add().Fixes for source(s). Now works on unelevated mode.0.1.0 (2023-10-09)Added support for non-elevated mode.Added (mostly raw) unittests.First working release.0.0.2 (2023-10-05)Small fix for run().0.0.1 (2023-07-13)Initial commit.0.0.0 (2023-07-07)Initial commit.
Package: pychoice
An utility adds code readability to your application and/or API, Code is documentation!Installpip install pychoiceExamplefrom pychoice import Choice

Status = Choice(
    (0, 'item0'),
    (1, 'item1'),
    (2, 'item2')
)

assert Status('item0') == 0
assert Status('item0', 'item1') == [0, 1]

assert Status[0] == 'item0'
assert Status[0, 1] == ['item0', 'item1']
assert Status[...] == ['item0', 'item1', 'item2']

assert Status.exclude('item0') == [1, 2]
assert Status.pairs('item0', 'item2') == [(0, 'item0'), (2, 'item2')]
Package: pychoices
PyChoicesA very small Python library for receiving choice input from your user.Installingpip3installpychoicesQuickstartimportpychoicesresult=pychoices.ask("Squirtle","Charmander","Bulbasaur",label="Choose your Starter!")print(result)#(0, "Squirtle") or (1, "Charmander") or (2, "Bulbasaur")What It DoesPyChoices will clean the terminal and display the options provided in the args.The user can change the answer by using the up and down arrows.Then, by pressing enter, the option will be defined as selected and the function will finish by returning a tuple.Referencefunctionask(*args, **kwargs)args is the array of choices available for the user.
kwargs is a dictionary of options for customizing the ask function, the available options are:label: a string that will be printed along with the choicescolor: one of the options in the COLORS class, will be the color of the current activated option.classColorsClass holding some constant values of colors and styles for using in the ask function, the available colors are:HEADER: PurpleOKBLUE: BlueOKGREEN: GreenWARNING: YellowFAIL: RedBOLD: BoldUNDERLINE: Underlined
Package: pychology
pychologySimple Python implementations of popular game AI techniques.Current State: Very alpha. Only behavior trees are implemented.Behavior TreesBehavior trees are tree structures that represent the logic of choosing
and switching the current task. Each node in the tree can be considered
as a function that is called, and returns an indication of the current
task's state; Whether it is active, done, or has failed.The tasks themselves are the leafs of the tree.pychologyexpects you
to provide functions to call when a task is started or continued, and
that it returns one of the above mentioned node states, namelyNodeState.ACTIVE,NodeState.DONE, orNodeState.FAILED. These
functions then are plugged intopychology.behavior_trees.Action.Inner nodes either have a single child and do some logic; These are
called decorators, and do a lot of heavy lifting. They can change the
returning node state, prevent sub-trees from being executed, check for
conditions, count how often or for how long a sub-tree has been active,
provide debug information, and much more.There's also nodes that have multiple children. The two most popular are
the Chain (usually called Sequence), which executes a series of tasks
(or rather sub-trees) one after the other, and Priorities (also called
Selector or Fallback) which tries running one sub-tree after the other
until one reports something other than failure.The classpychology.behavior_trees.BehaviorTreecan act as a root node
that automatically resets the tree's state after it has finished or
failed, and can also run arbitrary code to integrate with the wider
environment that the tree is embedded in.An example on how to go through a door:BehaviorTree(Chain(DoneOnPrecondition(# The first task is doneis_door_open,# if the door is open,Priorities(# otherwise try toAction(open_door),# open itReturnActiveOnDone(# or try again afterAction(unlock_door),# unlocking it,),ReturnActiveOnDone(# or try again afterAction(pick_door_lock),# picking the lock,),FailOnPrecounter(# or try4,# three times toAction(kick_in_door),# kick in the door.),),),Action(walk_through_door),# Afterwards, go through.),)TODOProjectPackagingBehavior TreesMultinodes: Parallel, weighted random choiceDecorators: More return value logicBlackboard supportDebug toolsVisualizationDe-/SerializationTestsHierarchical Finite State Machines (HFSM): EverythingGoal-Oriented Action Planning (GOAP): EverythingHierarchical Task Planning (HTN): EverythingWhatever this is
Package: pyChomikBox
Python 2.7 and 3.5 (and wasn’t tested at lower versions) library for Chomikuj.pl file sharing service.
It uses official app’s (ChomikBox) protocol to comunicate with Chomikuj servers.InstallationJust use pip, as you would with all python packages$pipinstallpyChomikBoxExamplesA simple example of usage>>>fromChomikBoximportChomik>>>c=Chomik('username','password')>>>c.login()>>>c<ChomikBox.Chomik:username>>>>print(c.list())[<ChomikBox.ChomikFolder:"/prywatne/"(username)>,<ChomikBox.ChomikFolder:"/zachomikowane/"(username)>]This code is logging at Chomikuj asusernamewith passwordpasswordand printing all files and folders of root folder.You can find more examples inexamplesdirectory.
Package: pychomikuj
pyChomikuj(W.I.P) Chomikuj API written in PythonFeaturesSupport for Mobile API, which means that you can use infinite transfer from Chomikuj mobile appReally thin wrapper over Chomikuj's API, in most cases responses that this package gives are the same as what Chomikuj gives.TODO:Support for Mobile API (Chomikuj Android) (partially for now)Support for Windows API (ChomikBox)Support for Web API (Chomikuj.pl Website)API documentation for every of themStatusThis project is in very early development, here is a list of features that work as of the latest commitMobile APILogging inSearching for filesListing directories, including password protected onesGetting download linksCreating directoriesPrivate messagesListing friendsGetting a list of copied filesUploading filesDeleting filesMessaging people --- FOR SOME UNKNOWN REASON BROKEN AT THE MOMENTAdding someone as a friendWindows APINothingWeb APINothingAdditional plansMobile APIRecursively get download linksBetter logging
Package: pychomp2
pyCHomP2CHomP (Computational Homology Project) with Python bindingsInstallationTo get the latest tagged version from the PyPi repository:pipinstallpychomp2To uninstall:pipuninstallpychomp2Installing from sourceTo get the bleeding edge version (i.e., this repo):gitclonehttps://github.com/marciogameiro/pyCHomP2.gitcdpyCHomP2
gitsubmoduleupdate--init--recursive
pipinstall.--ignore-installed--no-cache-dir-v-v-v--user
Package: pychonk
PyChonkList the installation sizes of your packagesno dependencies, <2.3kbPackage creep over time?Got a tight deployment environment like AWS lambda (<50MB)?Find the chonkiest!Example usagepythonpychonk.pyInstallationpip install pychonkClonepython -m pip install https://github.com/andytwoods/pychonkContributingPull requests most welcome :-)Step 1🍴 Fork this repoStep 2🔨 FiddleStep 3Create a new pull requestLicenseMIT license
Package: pychoose
PyPI:http://pypi.python.org/pypi/pychooseSVN:http://code.google.com/p/pychoose/DescriptionFrom the Windows command-line, run:pychoose XYThis will make Python version X.Y active, if it is installed, for subsequent
commands from the same prompt. The change is local to this shell.The prompt is modified to indicate the modified environment.To revert to the previously used version of Python, type ‘exit’This works by starting a new Cmd shell with a modified PATH, by prepending
C:\PythonXY and its subdirectories, and importantly by removing any other
C:\PythonZZ directories and subdirectories.Multiple invocations of pychoose can be nested.DependenciesMS Windows.Python versions 2.4 to 3.1, although the Python you are switching TO can be any
version at all.No other dependencies.InstallingWindows users may download and double-click a graphical installer fromhttp://pypi.python.org/pypi/pychoose.Command-line jockeys with setuptools installed may use:easy_install pychooseor, if pip is installed:pip install pychooseor download a zip of the source fromhttp://pypi.python.org/pypi/pychooseand use:python setup.py installAlternatively, to check out the latest unstable source from subversion,
including tests, see:http://code.google.com/p/pychoose/source/checkout.Known ProblemsOnly works on Windows. Not in a Cygwin shell, nor if Cygwin Python is first
on your path, nor on other platforms.Should get the install dirs of various Python versions from the registry, insted
of assuming they are all variations on C:\Python*.Would be much more reliable if we allow the user to pass the directory of the
Python version to switch to, instead of trying to be clever and figure it out
ourselves.After running pychoose, it is no longer on your PATH, so although you can
return to your default interpreter using ‘exit’, you can’t invoke pychoose
again to switch to a third Python version, unless you either (a) specify the full
path to pychoose, or (b) install pychoose on all installed versions of Python.
This is a bit irksome. Can we install to somewhere that’s always on
your path? Or sneakily copy ourselves into the Scripts folder of the Python
version we are switching to? Better ideas welcome.Can’t switch from versions of Python prior to 2.4, since we use ‘subprocess’ to
launch the new shell.Doesn’t affect Windows .py filetype associations. Perhaps this could be tackled by
inserting an environment variable into the registry keys, set the env var in the
registry (to persist its default value) and then change that value temporarily
and locally in this script.Haven’t tested how it interacts with virtualenv.Currently adds all subdirectories of PythonXX to the PATH. This is probably
overkill. Can we filter out desired subdirectories with any reliability?LicensePychoose is distributed under the BSD license. Live long and prosper.
Package: pychop
pychopA Python package for simulating low precision floating point arithmeticUsing low precesion can gain extra speedup while resulting in less storage and energy cost.  The purpose ofpychop, following the same function ofchopin Matlab provided by Nick higham, is to simulate the low precision formats based on single and double precisions, which is pravalent on modern machine.It also provides Torch backend, which enables to simulate training Neural Network in low precision.The supported rounding modes include:Round to nearest using round to even last bit to break ties
(the default).Round towards plus infinity (round up).Round towards minus infinity (round down).Round towards zero.Stochastic rounding - round to the next larger or next smaller
floating-point number with probability proportional to
the distance to those floating-point numbers.Stochastic rounding - round to the next larger or next smaller
floating-point number with equal probability.Subnormal numbers is supported, they are flushed to zero if it not considered (by settingsubnormalto 0).This package provides consistent APIs to the chop software by Nick higham as much as possible.  For the first four rounding mode,  with the same user-specific parameters,pychopgenerates exactly same result as that of the chop software. For stochastic rounding (rmodeas 5 and 6), both output same results if random numbers is given the same.The supported floating point formatsThe supported floating point arithmetic formats include:formatdescription'q43', 'fp8-e4m3'NVIDIA quarter precision (4 exponent bits, 3 significand (mantissa) bits)'q52', 'fp8-e5m2'NVIDIA quarter precision (5 exponent bits, 2 significand bits)'b', 'bfloat16'bfloat16'h', 'half', 'fp16'IEEE half precision (the default)'s', 'single', 'fp32'IEEE single precision'd', 'double', 'fp64'IEEE double precision'c', 'custom'custom formatThe code example can be found on thequick start page.Installpychoprelies on dependencies:numpy >=1.7.3torchTo install the current current release via PIP use:pip install pychopContributingWe welcome contributions in any form! Assistance with documentation is always welcome. To contribute, feel free to open an issue or please fork the project make your changes and submit a pull request. We will do our best to work through any issues and requests.References[1] Nicholas J. Higham and Srikara Pranesh, Simulating Low Precision Floating-Point Arithmetic, SIAM J. Sci. Comput., 2019.[2] IEEE Standard for Floating-Point Arithmetic, IEEE Std 754-2019 (revision of IEEE Std 754-2008), IEEE, 2019.[3] Intel Corporation, BFLOAT16---hardware numerics definition,  2018[4] Muller, Jean-Michel et al., Handbook of Floating-Point Arithmetic, Springer, 2018
Package: pychord
PyChordOverviewPychord is a python library to handle musical chords.Installation$pipinstallpychordBasic UsageCreate a Chord>>>frompychordimportChord>>>c=Chord("Am7")>>>c<Chord:Am7>>>>c.info()"""Am7root=Aquality=m7appended=[]on=None"""Transpose a Chord>>>c=Chord("Am7/G")>>>c.transpose(3)>>>c<Chord:Cm7/Bb>Get component notes>>>c=Chord("Am7")>>>c.components()['A','C','E','G']>>>c.components_with_pitch(root_pitch=3)['A3','C4','E4','G4']Compare Chords>>>Chord("C")==Chord("D")False>>>Chord("C#")==Chord("Db")True>>>c=Chord("C")>>>c.transpose(2)>>>c==Chord("D")TrueFind Chords from notes>>>frompychordimportfind_chords_from_notes>>>find_chords_from_notes(["C","E","G"])[<Chord:C>]>>>find_chords_from_notes(["F#","A","C","D"])[<Chord:D7/F#>]>>>find_chords_from_notes(["F","G","C"])[<Chord:Fsus2>,<Chord:Csus4/F>]Create and handle chord progressions>>>frompychordimportChordProgression>>>cp=ChordProgression(["C","G/B","Am"])>>>cp<ChordProgression:C|G/B|Am>>>>cp.append("Em/G")>>>cp<ChordProgression:C|G/B|Am|Em/G>>>>cp.transpose(+3)>>>cp<ChordProgression:Eb|Bb/D|Cm|Gm/Bb>>>>cp[1]<Chord:Bb/D>Advanced UsageCreate a Chord from note index in a scale>>>Chord.from_note_index(note=1,quality="",scale="Cmaj")<Chord:C># I of C major>>>Chord.from_note_index(note=3,quality="m7",scale="Fmaj")<Chord:Am7># IIIm7 of F major>>>Chord.from_note_index(note=5,quality="7",scale="Amin")<Chord:E7># V7 of A minorOverwrite the default Quality components with yours>>>frompychordimportChord,QualityManager>>>Chord("C11").components()['C','G','Bb','D','F']>>>quality_manager=QualityManager()>>>quality_manager.set_quality("11",(0,4,7,10,14,17))>>>Chord("C11").components()['C','E','G','Bb','D','F']InversionsChord inversions are created with a forward slash and a number
indicating the order. This can optionally be combined with an
additional forward slash to change the bass note:>>>Chord("C/1").components()# First inversion of C['E','G','C']>>>Chord("C/2").components()# Second inversion of C['G','C','E']>>>Chord("Cm7/3/F").components()# Third inversion of Cm7 with an added F bass['F','Bb','C','Eb','G']Examplespychord-midi.py- Create a MIDI file using PyChord and pretty_midi.Supported Python Versions3.6 and abovePython 2.7 and 3.5 compatibility was dropped from version 1.0.0.LinksPyPI:https://pypi.python.org/pypi/pychordGitHub:https://github.com/yuma-m/pychordDocumentation:http://pychord.readthedocs.io/en/latest/AuthorYuma MihiraLicenseMIT LicenseIcon is made byFreepik.
Package: pychordpro
pychordpropychordpro is a simple Python package that allows to easly interact with theChordProfile format.InstallationTo install the package you can simply type:pip install pychordproExample Usageimportpychordprosong=Song(filename='mysong.cho',notes='latin')song.open()print(song.read())song.transpose(1)song.config('config.json')song.compile()MethodsAll the functions and methods are basically Python transcriptions of thecommand line optionsfor ChordPro, so you will have to install the ChordPro file transformation program as well.However you can easily see the source codehere.ChordPro installation guides for:LinuxWindowsMac OS/X
Package: py-choria-discovery
py-choria-discoveryOverviewpy-choria-discoverycontains a collection of tools for writing Choria External Discovery plugins in Python.Installationpip install py-choria-discoveryThis library requires a version of Choria with external discovery support (0.19.1+).Implementing Discovery pluginsThe bare minimum steps to implement a python discovery plugin are:Create a python file without a.pyextension#!/usr/bin/python3fromchoria_external.dispatcherimportdispatchfromchoria_discoveryimportDiscoveryclassMyDiscovery(Discovery):defdiscover(self):filtered_nodes=[]# Retrieve your list of all available nodes#nodes = get_nodes()# Apply the filters in self.request.collective and self.request.filter#filtered_nodes = apply_filters()# Return the set of node names which match the filtersself.reply.nodes=filtered_nodesif__name__=='__main__':dispatch(MyDiscovery)ExampleSeeexamples/staticfor a basic implementation of the node filtering and response.ReferenceDiscoveryProvides a base class for implementing External Discovery pluginsPublic methods:discoverReturns a boolean value to indicate whether the agent should be activated on this host.
By default returns True and the agent is always activated. Subclasses may choose to override
this method and deactivate themselves under appropriate conditions such as missing pre-requisites.Instance variables:loggerContains a python logger which can be used to send log information back to choria (debug and info are sent to stdout,
which is only displayed in verbose mode; warnings and errors are sent to stderr which are displayed always).
The logger is set to use thechoria.plugin_namehierarchy. By default all other logging is disabled to prevent
pollution of the reply. This is done by setting the log level on the root logger to 100. You can re-enable
logging by adjusting the log-level on either the root logger or a specific child if required.configContains a dict-like object which can be used to read configuration settings from a choria plugin
configuration file (/etc/puppetlabs/mcollective/plugin.d/agentname.cfgby default).
Package: pychpp
pyCHPPpyCHPP is an object-oriented python framework created to use the API provided by the online game Hattrick (www.hattrick.org).InstallationpyCHPP can be installed using pip :pip install pychppUsageFirst connectionfrompychppimportCHPP# Set consumer_key and consumer_secret provided for your app by Hattrickconsumer_key=''consumer_secret=''# Initialize CHPP instancechpp=CHPP(consumer_key,consumer_secret)# Get url, request_token and request_token_secret to request API access# You can set callback_url and scopeauth=chpp.get_auth(callback_url="www.mycallbackurl.com",scope="")# auth['url'] contains the url to which the user can grant the application# access to the Hattrick API# Once the user has entered their credentials,# a code is returned by Hattrick (directly or to the given callback url)code=""# Get access token from Hattrick# access_token['key'] and access_token['secret'] have to be stored# in order to be used later by the appaccess_token=chpp.get_access_token(request_token=auth["request_token"],request_token_secret=auth["request_token_secret"],code=code,)Further connections# Once you have obtained access_token for a user# You can use it to call Hattrick APIchpp=CHPP(consumer_key,consumer_secret,access_token['key'],access_token['secret'],)# Now you can use chpp methods to get datas from Hattrick API# For example :current_user=chpp.user()all_teams=current_user.teamsbest_team_ever=chpp.team(ht_id=1165592)best_team_ever# <HTTeam object : Les Poitevins de La Chapelle (1165592)>best_team_arena=best_team_ever.arenabest_team_arena# <HTArena object : Stade de La Chapelle (1162154)>best_team_arena.name# 'Stade de La Chapelle'worth_team_ever=chpp.team(ht_id=1750803)worth_team_ever# <HTTeam object : Capdenaguet (1750803)>player=chpp.player(ht_id=6993859)player# <HTPlayer object : Pedro Zurita (6993859)>player.career_goals# 1163match=chpp.match(ht_id=68599186)match# <HTMatch object : Skou United - FC Barentin (68599186)>match.date# datetime.datetime(2006, 2, 23, 20, 0)Mapping table between classes and CHPP XML filesThe following table shows the relationships between pyCHPP classes and CHPP XML files :pyCHPP classCHPP XML filesHTArenaarenadetails.xmlHTChallengeManagerchallenges.xmlHTLeagueleaguedetails.xmlHTLeagueFixturesleaguefixtures.xmlHTMatchmatchdetails.xmlHTMatchLineupmatchlineup.xmlHTMatchesArchivematchesarchive.xmlHTNationalTeamnationalteamdetails.xmlHTNationalTeamsnationalteams.xmlHTPlayerplayerdetails.xmlHTRegionregiondetails.xmlHTTeamteamdetails.xmlHTUsermanagercompendium.xmlHTWorldworlddetails.xmlHTWorldCupGroupsworldcup.xmlHTWorldCupMatchesworldcup.xmlHTYouthPlayeryouthplayerdetails.xmlHTYouthTeamyouthteamdetails.xmlLicensepyCHPP is licensed under the Apache License 2.0.