Saravanan666/pypi-org huggingface dataset:
Package: pymceliece
pymcelieceA Python wrapper for the libmceliece microlibraryInstallationDependenciespymceliece depends only on libmceliece (which also depends on libcpucycles and
librandombytes), availablehereAPIInstantiated parametersThe API follows the libmceliece API. It implements the following parameter sets:mceliece8192128mceliece6960119mceliece6688128mceliece8192128mceliece460896mceliece348864mceliece6960119fmceliece6688128fmceliece8192128fmceliece460896fmceliece348864fEach has the following constants defined:mceliecexxxxxxx.PUBLICKEYBYTES
Length of the public keymceliecexxxxxxx.SECRETKEYBYTES
Length of the private keymceliecexxxxxxx.CIPHERTEXTBYTES
Length of the ciphertextmceliecexxxxxxx.BYTES
Length of the session keyUsageFor each instantiation the following functions are available:mcelieceXXXXXXX.keypair() -> Tuple[bytes, bytes]Randomly generates a McEliece secret key and its corresponding public key.Example:>>>frompymcelieceimportmceliece6960119>>>pk,sk=mceliece6960119.keypair()mcelieceXXXXXXX.enc(pk: bytes) -> Tuple[bytes, bytes]Randomly generates a ciphertext and the corresponding session key given a
public key pk.Example:>>>frompymcelieceimportmceliece8192128f>>>pk,_=mceliece8192128f.keypair()>>>c,k=mceliece8192128f.enc(pk)mcelieceXXXXXXX.dec(c: bytes, pk: bytes) -> bytesGiven a McEliece secret key sk and a ciphertext c encapsulated to sk's
corresponding public key pk, computes the session key k.Example:>>>frompymcelieceimportmceliece348864f>>>pk,sk=mceliece348864f.keypair()>>>c,k=mceliece348864f.enc(pk)>>>mceliece348864f.dec(c,sk)==kTrue
Package: pymc-experimental
Welcome topymc-experimentalAs PyMC continues to mature and expand its functionality to accommodate more domains of application, we increasingly see cutting-edge methodologies, highly specialized statistical distributions, and complex models appear.
While this adds to the functionality and relevance of the project, it can also introduce instability and impose a burden on testing and quality control.
To reduce the burden on the mainpymcrepository, thispymc-experimentalrepository can become the aggregator and testing ground for new additions to PyMC.
This may include unusual probability distributions, advanced model fitting algorithms, innovative yet not fully tested methods or any code that may be inappropriate to include in thepymcrepository, but may want to be made available to users.Thepymc-experimentalrepository can be understood as the first step in the PyMC development pipeline, where all novel code is introduced until it is obvious that it belongs in the main repository.
We hope that this organization improves the stability and streamlines the testing overhead of thepymcrepository, while allowing users and developers to test and evaluate cutting-edge methods and not yet fully mature features.pymc-experimentalwould be designed to mirror the namespaces inpymcto make usage and migration as easy as possible.
For example, aParabolicFractaldistribution could be used analogously to those inpymc:importpymcaspmimportpymc_experimentalaspmxwithpm.Model():alpha=pmx.ParabolicFractal('alpha',b=1,c=1)...QuestionsWhat belongs inpymc-experimental?newly-implemented statistical methods, for example step methods or model construction helpersdistributions that are tricky to sample from or testinfrequently-used fitting methods or distributionsany code that requires additional optimization before it can be used in practiceWhat does not belong inpymc-experimental?Case studiesImplementations that cannot be applied generically, for example because they are tied to variables from a toy exampleShould there be more than one add-on repository?Since there is a lot of code that we may not want in the main repository, does it make sense to have more than one additional repository?
For example,pymc-experimentalmay just include methods that are not fully developed, tested and trusted, while code that is known to work well and has adequate test coverage, but is still too specialized to become part ofpymccould reside in apymc-extras(or similar) repository.Unanswered questions & ToDosThis project is still young and many things have not been answered or implemented.
Please get involved!What are guidelines for organizing submodules?Proposal: No default imports of WIP/unstable submodules. By importing manually we can avoid breaking the package if a submodule breaks, for example because of an updated dependency.
Package: pymcfost
pymcfostpymcfost is a python interface to the 3D radiative transfer code mcfost. The goal is to provide a simple and light interface to explore and plot a single (or a few) model(s).pymcfost offers (or will offer) the following functionalities:set up continuum and line models,read a single model or library of models,plot basic quantities, e.g. density structures, temperature maps on the various grids available in mcfost,plot observables : SEDs, image (with convolution), polarisation maps and vectors, visibilities, channels maps (with spatial and spectral convolution), moment maps.convert units, e.g. W.m-2 to Jy or brightness temperatureprovides an interface to the ALMA CASA simulatorprovides a fast and simplfied version of the ALMA simulator (spatial convolution with Gaussian, spectral convolution and noise), ie ignoring uv sampling,consistent interface with the casa_cube python package to compare observations with modelsread and plot dust models, including Mie, DHS and aggregates dust properties calculations(TBD) direct interface to the ML chemical predictionsInstallationUsing pippip install pymcfostFrom the git repogit clone https://github.com/cpinte/pymcfost.git
cd pymcfost
pip install .To install in developer mode: (i.e. so that code changes here are immediately available without needing to repeat the above step):pip install -e .HistoryIn case you are curious, pymcfost was born as an attempt to port in python the functions that were available in the yorick-mcfost code, which is still available here:https://github.com/cpinte/yomcfost.
The fitting routines of the yorick interface are yet to be ported into pymcfost.
An alternative python distribution is available athttps://github.com/swolff9/mcfost-python. It is more tailored towards handling large grid of models and model fitting.Main structural differences with mcfost-python so farpython >= 3.8 vs python 2.xonly parameter file >= 3.0handles parameter files with mutiple zones, dust population, molecules, stars, etc. Parameter files are stored in objects rather than dicts, allowing more flexibility.does not and will not handle observational data, only models
Package: pymcfunc
pymcfuncMinecraft functions, pythonised. Made by 7dLatest release version: v0.4Changelogs:https://pymcfunc.readthedocs.io/en/latest/changelog.htmlDocumentation:https://pymcfunc.readthedocs.io/en/latest/Why pymcfunc?It would seem pretty obvious to program directly with Minecraft commands into functions;
however things start to get complicated when you try to do things that are simple in regular
programming but are cumbersome in Minecraft commands.Hence pymcfunc, which translates Python code into Minecraft commands. The code is aimed to be
short, brief and concise so that it does not become another troublesome job.Progress: Raw commands are complete, currently working on features to make programming functions easier,
and tools to build datapacks :)Usageimportpymcfuncaspmfp=pmf.Pack("pack name")@p.functiondefdiamond(f:pmf.JavaFuncHandler):f.r.tell("@s","Enjoy your free diamonds! :D")f.r.give("@s","diamond",64)@p.functiondefmake_sheep_jump(f:pmf.JavaFuncHandler):f.r.execute(as_="@e[type=sheep]",run=lambdasf:[sf.r.tp(destxyz="~ ~1 ~"),sf.r.say("boingg")])@p.functiondefaddition(f:pmf.JavaFuncHandler):val1=f.v('val1','@s')val1.set(10)val2=f.v('val2','@s')val2.set(20)val1+=val2f.r.tellraw('@s',pmf.rt.java("§aThe value is now ¶s[val1|@s]"))@p.function@p.t.repeat_every(6000)deffive_min_alert(f:pmf.JavaFuncHandler):f.r.tellraw('@a',pmf.rt.java("§c§l§w[This is 6000 ticks]5 minutes§xw have passed!"))print(p.funcs)
Package: pymcfunction
PyMCFunctionPyMCFunction is a tool to write Minecraft datapacks in Python.UsageCheckpymcfunction/pyfunction/pmf --helpDocsHopefully coming soon, for now, ask somthing like IntelliSense.Command supportThese are the currently supported commands. Feel free to create a PR, the goal is to support every command./advancement/attribute/ban/ban-ip/banlist/bossbar/clear/clone/data/datapack/debug/defaultgamemode/deop/difficulty/effect/enchant/execute/experience (/xp)/fill/forceload/function/gamemode/gamerule/give/item/kick/kill/locate/loot/op/pardon/pardon-ip/particle/place/playsound/publish/recipe/save-all/save-off/save-on/say/schedule/scoreboard/seed/setblock/setidletimeout/setworldspawn/spawnpoint/spectate/spreadplayers/stop/stopsound/summon/tag/team/teammsg (/tm)/teleport (/tp)/tellraw/time/title/trigger/weather/whitelist/worldborderFeedbackIf you have any feedback, feature request, or think you know how a feature could be improved, feel free to open an issue.
Package: pymchat
PyMChatA Simple and easy-to-use Python Library to read and interact with Minecraft's Chat in real time.InstallationpipinstallpymchatUsageReading chat messagesfrompymchat.chatimportChatchat=Chat()# Limit in get_history is defaulted to 100.message_list=chat.get_history(limit=10)formessageinmessage_list:print(message.content)This sample output was taken from a real server.[+]JohnRockefailurehasjoined[+]Senseimasterman9hasjoined
Welcome|Steve|Senseimasterman9totheserver!
<|Investor|*Blist>Welcom
<|Griffin|*Jay>Welcome!EnjoyyourstayatSafeSurvival
<|EventStaff|*Enelis>o-o
<|Griffin|*Jay>oof
<|Veteran|Parkemon20000>thats...notnormal[-]JohnRockefailurehasleft
<|Phoenix|*Kelp>GnallSending chat messagesfrompymchat.chatimportChatchat=Chat()message_list=chat.send("This is a sample message!")Using this method will briefly attempt to locate a Minecraft Window, open the chat, send the message, and then switch back to the previous active window.
A MinecraftWindowNotFoundError will be thrown if a Minecraft Window isn't found.Message ObjectsProperties:contentiddateContent Property: Holds the content of a message. It represents exactly what the user sees, without colours.ID Property: An unique number for the message, for the current session. This helps distinguishing between messages effectively.Date Property: The date of when the message was sent. It follows the format from thelatest.logfile's date.Chat ObjectProperties:default_logs_pathchat_keywindow_nameMethods:get_history | Limit defaulted to 100, gets the chat messages historysend | Sends a message to the chat.Default_Logs_Path Property: Can be altered, defines the location of the latest.log file. Defaults to\.minecraft\logs\latest.logChat_Key Property: Can be altered, defines the key that triggers the text chat on minecraft. Defaults to 'T'.Window_Name: Can be altered, defines the title of the window that the Minecraft Client launches as. Defaults to "Minecraft"
Package: pymchelper
pymchelperpymchelperis a toolkit for aiding users of the particle transport codes, such asFLUKAandSHIELD-HIT12A.
Particle transport codes produce binary files (especially when running on dedicated computing clusters).
It provides a command line programconvertmcwhich can convert these binary files to graphs:convertmc image --many "*.bdo"This converter is capable of converting binary output to many other formats, like CSV, XLS or HDF.Another feature of the toolkit is a command line utilityrunmcwhich speeds up particle transport simulation by splitting the calculation on multiple processes and merging the resultsrunmc --jobs 16 --out-type txt directory_with_input_filesToolkit can also serve as a library in Python language, which can be used by programmers and data scientists to read data from binary files into convenient Python objects. This allows further data processing using other Python tools and libraries.pymchelperworks under Linux, Windows and Mac OSX operating systems.InstallationTo installpymchelperas a python package, type:pip install pymchelper[full]On Linux systems from Debian familypymchelpercan be installed usingaptpackage manager::wget --quiet --output-document - https://datamedsci.github.io/deb_package_repository/public.gpg | sudo apt-key add -
sudo wget --quiet --output-document /etc/apt/sources.list.d/datamedsci.list https://datamedsci.github.io/deb_package_repository/datamedsci.list
sudo apt update
sudo apt install pymchelperDocumentationFull pymchelper documentation can be found here:https://datamedsci.github.io/pymchelper/index.htmlSeeGetting Startedfor installation and basic information, and theUser's Guidefor an overview of how to use the project.
Package: pymclauncher
A fully fledged launcher for Minecraft. Made in python, and supports almost all features of the official launcher. Not
tested on Windows.NoteThis package can be installed under both “mclauncher” and “pymclauncher”. The former is the default.DISCLAIMERThis is not a cracked client/launcher!You will be required to authenticate with Microsoft to use this program. If you have not migrated your Mojang account to
Microsoft, you will be required to do so before using this program. If you would like to see the source code for the
backend authentication, you can find ithere.This being said, this program may not check to see if you have a valid account. It may be possible to launch a cracked
client using this program, but it is not recommended (It’s against the terms of Minecraft to do so!). Hacked clients and
modded clients are fine.UsageInstallInstallmclauncherusing your favorite flavor of the pip package manager.pipinstallmclauncherRunningUse the help command to see a list of available commands. Pip should have added themclauncherpackage to
PATH, so you should be able to simply runmclauncherin your terminal.mclauncher-hIf that doesn’t work, a consistent fallback is to runmclauncherusing your favorite flavor of the python command.python-mmclauncher-h
Package: py-mclimate-api
Python Wrapper for the MClimate APIHow to usepip install py-mclimate-apipython >>> from mclimate import Mclimate >>> m = Mclimate(username="email_adress", password="password") >>> m.fetch_devices() {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}}

python >>> from mclimate import Mclimate >>>  m = Mclimate(username="email_adress", password="password") >>> m.send("DEVICE_ID", "DEVICE_TYPE", {"state": "on"})Built WithrequestsLicenseLicensed under the MIT License - see thisLICENSE.md
Package: pymcmc
Markov chain Monte Carlo (MCMC) estimation provides a solution to the
complex integration problems that are faced in the Bayesian analysis
of statistical problems.  The implementation of MCMC algorithms is,
however, code intensive and time consuming.  We have developed a
Python package, which is called PyMCMC, that aids in the construction
of MCMC samplers and helps to substantially reduce the likelihood of
coding error, as well as aid in the minimisation of repetitive code.
PyMCMC contains classes for Gibbs, Metropolis Hastings, independent
Metropolis Hastings, random walk Metropolis Hastings, orientational
bias Monte Carlo and slice samplers as well as specific modules for
common models such as a module for Bayesian regression analysis.
PyMCMC is straightforward to optimise, taking advantage of the Python
libraries Numpy and Scipy, as well as being readily extensible with C
or Fortran.
Package: pymcmcstat
pymcmcstatThepymcmcstatpackage is a Python program for running Markov Chain Monte Carlo (MCMC) simulations.
Included in this package is the ability to use different Metropolis based sampling techniques:Metropolis-Hastings (MH): Primary sampling method.Adaptive-Metropolis (AM): Adapts covariance matrix at specified intervals.Delayed-Rejection (DR): Delays rejection by sampling from a narrower distribution.  Capable ofn-stage delayed rejection.Delayed Rejection Adaptive Metropolis (DRAM): DR + AMThis package is an adaptation of the MATLAB toolboxmcmcstat.  The user interface is designed to be as similar to the MATLAB version as possible, but this implementation has taken advantage of certain data structure concepts more amenable to Python.Note, advanced plotting routines are available in themcmcplotpackage.  Many plotting features are directly available withinpymcmcstat, but some user’s may findmcmcplotuseful.InstallationThis code can be found on theGithub project page.  This package is available on the PyPI distribution site and the latest version can be installed viapip install pymcmcstatThe master branch on Github typically matches the latest version on the PyPI distribution site.  To install the master branch directly from Github,pip install git+https://github.com/prmiles/pymcmcstat.gitYou can also clone the repository and runpython  setup.py install.Getting StartedTutorial notebooksDocumentationRelease historyContributing guidelinesLicenseMITContributorsSee theGitHub contributor pageCiting pymcmcstatMiles, (2019). pymcmcstat: A Python Package for Bayesian Inference Using Delayed Rejection Adaptive Metropolis. Journal of Open Source Software, 4(38), 1417,https://doi.org/10.21105/joss.01417Also, please cite the appropriateZenodo archivefor the version ofpymcmcstatthat you are using.FeedbackFeature RequestBug ReportSponsorThis work was sponsored in part by the NNSA Office of Defense Nuclear Nonproliferation R&D through the Consortium for Nonproliferation Enabling Capabilities.
Package: py-mco-agent
py-mco-agentOverviewpy-mco-agentcontains a collection of tools for writing mcollective agents in the Python language.Installationpip install py-mco-agentThis library requires a version of Choria with external agent support.Implementing AgentsThe bare minimum steps to implement a python mcollective agent are:Add a python file without a.pyextension to/opt/puppetlabs/mcollective/plugins/mcollective/agent/parrot#!/usr/bin/python3fromchoria_external.dispatcherimportdispatchfrommco_agentimportAgent,action,register_actions# Subclass Agent and decorate it with the @register_actions@register_actionsclassParrot(Agent):# Create a class method for your action and decorate it with @action@actiondefecho(self):# This example action just repeats the message input back to the callerprefix=self.config.get('prefix','')ifnotprefix:self.logger.warning("Using default prefix!")self.reply.data['message']=prefix+self.request.data['message']if__name__=='__main__':dispatch(Parrot)Add a choria JSON DDL file to the same location namedparrot.json(seeexamples/agent/parrot.json)ReferenceAgentProvides a base class for implementing mcollective agentsPublic methods:should_activateReturns 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.Decorators:@actionInstance methods should be decorated with the@actiondecorator to register them as available agent actions@register_actionsThe plugin class should be decorated with this method to trigger registration all action methods withinInstance 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 themcorpc.agent_namehierarchy. By default all other logging is disabled to prevent
pollution of the mcorpc 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 the agent's choria plugin
configuration file (/etc/puppetlabs/mcollective/plugin.d/agentname.cfgby default).
Package: pymcp2221
pymcp2221This is a python driver for the Microchip MCP2221/MCP2221A USB 2.0 to I2C/UART protocol converters
(manufacturer's page).First and foremost, there are python packages for the same chip availablehereandhere. If you use them and are satisfied, you probably won't find improvements in my package. If you're missing some features however, my code is meant to expose every chip feature described in the datasheet in a systematic manner, for python 3.2+.Implemented featuresStatus/Set Parameters (0x10) - okRead Flash Data (0xB0) - okWrite Flash Data (0xB1) - okSend Flash Access Password (0xB2) - okI2C Write Data (0x90) - okI2C Write Data Repeated Start (0x92) - okI2C Write Data No Stop (0x94) - okI2C Read Data (0x91/0x40) - okI2C Read Data Repeated Start (0x93/0x40) - okSet GPIO Output Values (0x50) - okGet GPIO Values (0x51) - okSet SRAM Settings (0x60) - ok, except GPIO directions/values through SRAM (duplicate with 0x50)Get SRAM Settings (0x61) - ok, except GPIO directions/values through SRAM (duplicate with 0x51)Reset Chip (0x70) - okEvery feature markedokis implemented, but some of them, like I2C, haven't been tested in real conditions.RequirementshidapiSetupFrom command line, use:pythonsetup.pyinstallor for Linux/OSX:sudopythonsetup.pyinstallOn Linux, to access your devices without root privileges, you need to set specific udev rules, as explained inhidapi documentation.ExamplesSeeexamplesfolder.TestsThetestsfolder contains unit tests for most of the aspects of this package. To run them, use:python-munittestAPIYou can find docs in thedocsfolder (generated from python docstrings). Alternatively, you can rely on python docstringseither from the command line, use pydoc:pydocmcp2221or from within python:importmcp2221;help(mcp2221)
Package: pymcutil
pymcutilAn expressive Minecraft utility library revolving around data manipulation and generation.The goal of this project is to provide a flexible suite of development tools for technical Minecraft players:No special syntax, keywords, or anything of the sort. This is just a Python library. You're free to do whatever you'd normally do in Python, importing only the modules you need to import.A complete, hierarchical set ofcommandsand their subcommands, as well as frequently usedselectorsandpositionsto go along with them.A thorough collection of game object anddata tags (NBT)representations, for things likeblocks,items, andentities.Auto-completion, argument suggestion, and type validation for all representations - especially if you're using a capable IDE like PyCharm. No need to pull up the wiki just to make sure you've got the right NBT tag.Data file manipulation and generation, including deep reference searching and automatic dependency resolution.Map several Minecraft functions and parameters to Python methods that spit out a name and a series of commands dependent on the parameters. All involved functions will be searched for dependencies and generated automatically.This goes for any data file in general: loot tables to loot tables, advancements to advancements, advancements to loot tables, advancements to functions, and so on.RequirementsPython3.6+