Saravanan666/pypi-org huggingface dataset:
Package: pymidas
MIDAS is a multichannel digital sound and music system, capable of playing an unlimited number of channels of digital sound on all supported platforms. It can play music modules, individual samples, and digital audio streams, in any combination. MIDAS supports the following module formats: 4-channel Protracker modules plus 1-32-channel variants (.MOD); 1-32 -channel Scream Tracker 3 modules (.S3M); 2-32 -channel FastTracker 2 modules (.XM); 1-64 -channel Impulse Tracker modules (.IT).
Package: pymiddy
PyMiddyHeavily inspired from middyjs.Quick startfrompymiddyimportMiddyfrompymiddy.middlewaresimportCORS@Middydefhandler(event,context):return{'statusCode':200,'body':'lorem ipsum dolor sit amet'}handler.use(TestMiddleware(1))\.use(CORS({'credentials':True,'origins':['https://website.xyz/']}))Custom middlewaresA middleware class should have 3 methods:classMyCustomMiddleware(object):defbefore(self,state):passdefafter(self,state):passdeferror(self,state):passThestatecontains the following keys:event- the event which triggered the lambda function, passed from the aws handlercontext- the context from the aws handlerresponse- the handler response, if anyexception- during error handler you can have access to this key which contains the exception which triggered the error
Package: pymidi
pymidiA python RTP-MIDI / AppleMIDI implementation. You can use this library to build a network attached virtual MIDI device.Latest release:v0.4.0 (2018-12-26) (changelog)Table of ContentsQuickstartDeveloper SetupCompatibilityRunning testsDeveloping against something elseDemo ServerUsing in Another ProjectProject StatusReferences and ReadingQuickstart$ pip install pymidiorpipenv install pymidiSeeUsing in Another Projectand theDeveloper Setup wikifor more information.Developer SetupSet up your workspace with the very excellentPipenv:$ pipenv installOnce installed, you'll probably find it useful to work in apipenv shell, for ease of testing and running things:$ pipenv shell
(pymidi-tFFCbXNj)
$ python pymidi/server.pyCompatibilitypymidirequires Python 3. It has been tested against Python 3.6 and Python 3.7.Running testsTests are run with pytest:$ pytestDeveloping against something elseIf you're working on a project that usespymidiand want to develop both concurrently, leverage the setuptoolsdevelopcommand:$ cd ~/git/otherproject
$ pipenv shell
$ pushd ~/git/pymidi && python setup.py develop && popdThis creates a link to~/git/pymidiwithin the environment of~/git/otherproject.Demo ServerThe library includes a simple demo server which prints stuff.$ python pymidi/server.pySee--helpfor usage.Using in Another ProjectMost likely you will want to embed a server in another project, and respond to MIDI commands in some application specific way. The demo serve is an example of what you need to do.First, create a subclass ofserver.Handlerto implement your policy:frompymidiimportserverclassMyHandler(server.Handler):defon_peer_connected(self,peer):print('Peer connected:{}'.format(peer))defon_peer_disconnected(self,peer):print('Peer disconnected:{}'.format(peer))defon_midi_commands(self,peer,command_list):forcommandincommand_list:ifcommand.command=='note_on':key=command.params.keyvelocity=command.params.velocityprint('Someone hit the key{}with velocity{}'.format(key,velocity))Then install it in a server and start serving:myServer = server.Server([('0.0.0.0', 5051)])
myServer.add_handler(MyHandler())
myServer.serve_forever()See theDeveloper Setup wikifor ways to test with real devices.Project StatusWhat works:Exchange packet parsingTimestamp sync packet parsingExchange & timestamp sync protocol supportMIDI message parsingNot (yet) implemented:Journal contents parsingVerification of peers on the data channelAuto-disconnect peers that stop synchronizing clocksReferences and ReadingOfficial docsRFC 6295: RTP Payload Format for MIDIAppleMIDI Reference Documentation from AppleRTP-MIDI on WikipediaOther helpful docs/sitesThe MIDI Specification
Package: py-midicsv
py_midicsvA Python library inspired by themidicsvtool created by John Walker. Its main purpose is to bidirectionally convert between the binaryMIDIformat and a human-readable interpretation of the contained data in text format, expressed asCSV.
If you found this library, you probably already know why you need it.Installationpy_midicsvcan be installed via pip:$pipinstallpy_midicsvAlternatively you can build the package by cloning this repository and installing viapoetry:$gitclonehttps://github.com/timwedde/py_midicsv.git
$cdpy_midicsv/
$poetryinstallUsageAs a Command Line ToolUsage:midicsvpy[OPTIONS]INPUT_FILEOUTPUT_FILEConvertMIDIfilestoCSVfiles.midicsvreadsastandardMIDIfileanddecodesitintoaCSVfilewhichpreservesalltheinformationintheMIDIfile.TheASCIICSVfilemaybeloadedintoaspreadsheetordatabaseapplication,orprocessedbyaprogramtotransformtheMIDIdata(forexample,tokeytransposeacompositionorextractatrackfromamulti-tracksequence).ACSVfileintheformatcreatedbymidicsvmaybeconvertedbackintoastandardMIDIfilewiththecsvmidiprogram.Specifyaninputfileandanoutputfiletoprocessit.Eitherargumentcanbestdin/stdout.Someargumentsarekeptforbackwards-compatibilitywiththeoriginalmidicsvtooling.ThesearemarkedasNOOPinthiscommandlineinterface.

Options:-n,--nostrictDonotfailonparse/validationerrors.-u,--usagePrintusageinformation(NOOP)-v,--verbosePrintdebuginformation(NOOP)--helpShowthismessageandexit.Usage:csvmidipy[OPTIONS]INPUT_FILEOUTPUT_FILEConvertCSVfilestoMIDIfiles.csvmidireadsaCSVfileintheformatwrittenbymidicsvandcreatestheequivalentstandardMIDIfile.Specifyaninputfileandanoutputfiletoprocessit.Eitherargumentcanbestdin/stdout.Someargumentsarekeptforbackwards-compatibilitywiththeoriginalcsvmiditooling.ThesearemarkedasNOOPinthiscommandlineinterface.

Options:-n,--nostrictDonotfailonparse/validationerrors.-u,--usagePrintusageinformation(NOOP)-v,--verbosePrintdebuginformation(NOOP)-z,--strict-csvRaiseexceptionsonCSVerrors(NOOP)-x,--no-compressDonotcompressstatusbytes(NOOP)--helpShowthismessageandexit.As a Libraryimportpy_midicsvaspm# Load the MIDI file and parse it into CSV formatcsv_string=pm.midi_to_csv("example.mid")withopen("example_converted.csv","w")asf:f.writelines(csv_string)# Parse the CSV output of the previous command back into a MIDI filemidi_object=pm.csv_to_midi(csv_string)# Save the parsed MIDI file to diskwithopen("example_converted.mid","wb")asoutput_file:midi_writer=pm.FileWriter(output_file)midi_writer.write(midi_object)DocumentationA full explanation of themidicsvfile format can be foundhere.DifferencesThis library adheres as much as possible to how the original library works, however generated files are not guaranteed to be entirely identical when compared bit-by-bit.
This is mostly due to the handling of meta-event data, especially lyric events, since the encoding scheme has changed. The original library did not encode some of the characters in the Latin-1 set, while this version does.Stargazers over time
Package: pymigemo
pymigemoインストール> pip install pymigemoCLIで実行> pymigemo
> QUERY: kensaku
PATTERN: (研削|建策|羂索|献策|検索|憲[冊作]|けんさく|ｋｅｎｓａｋｕ|kensaku)スクリプトから利用> python
>>> import migemo
>>> m = migemo.Migemo()
>>> m.query("kensaku")
'(賢作|謙作|腱索|羂索|研削|県作|献策|検索|憲作|建策|兼作|健[策作]|けんさく|ｋｅｎｓａｋｕ|kensaku)'ライセンスBSDライセンスの辞書ファイルを同梱してます。パッケージ全体はBSDライセンスで配布しています。
Package: pymigrate
Version:0.1Download:http://pypi.python.org/pypi/pymigrate/Documentation:http://pymigrate.readthedocs.org/Source:http://github.com/nanfang/pymigrate/Keywords:Python, MigrateDocumentationhttp://pymigrate.readthedocs.org/InstallUse pip:pip install pymigrateUse easy_install:easy_install pymigrateUsageMigrate scripts should be in one folder and with a prefix in name as index. The index is the order of execution of the scripts. eg:MIGRATE_FOLDER/001_create_user_schema.py
               002_create_group_schema.py
               003_init_user_data.pyThen, run the migrate scripts by:pymigrate MIGRATE_FOLDERAfter migration is done, we can show the trace by:pymigrate -t MIGRATE_FOLDERWhen you have new change to apply to the system, just add more scripts into the MIGRATE_FOLDER, and use index for the execution order.
If you just clear the system(like drop the database and recreate) and want to re-run the migrate sequence, you need clear the trace:pymigrate -c MIGRATE_FOLDER
Package: pymigrate-np
pyMigrateA tool that automates the transformation of normal python projects to virtual environments. In simple words, the tool creates a virtual environment and automatically installs all the dependencies used in your project by identifying them and migrates the project to the newly created virtual environment.Set-up :This package will be released on pip soon, until then, you can copy pyMigrate to python package path and use pyMigrate.py to perform migration.Usage:For help :pyMigrate.py helppyMigrate.py app_root_directory virtual_env_directoryapp_root_directory: The root directory of your projectvirtual_env_directory: The place where virtualenv should be createdThis project is only for python3 environments
Package: pyMIH
A python implementation of multiple index hashing (MIH) by Norouzi et al (seehttps://www.cs.toronto.edu/~norouzi/research/papers/multi_index_hashing.pdf), based on a description in the Threatexchange repository (seehttps://github.com/facebook/ThreatExchange/blob/master/hashing/hashing.pdf).See homepage for usage instructions
Package: pymihome
===============================version number: 0.0.7author: Neil GriffinOverview--------Library to access Energenie MiHome devices via the web API.Work in progress.  Currently has some functionality, but limited and notproperly tested.  Use with care.Installation / Usage--------------------To install use pip:$ pip install pymihomeOr clone the repo:$ git clone https://github.com/ng110/pymihome.git$ python setup.py installContributing------------Offers welcome, as I don't have much time to work on this!License-------LGPLv3Example-------$ from pymihome import Connection, EnergenieSwitch$ mihome = Connection([username], [key|password])$ switches = [EnergenieSwitch(mihome, dev) for dev in mihome.subdevices if dev['is_switch']]$ for switch in switches:$     print(switch.name)Keywords: energenie mihomePlatform: UNKNOWNClassifier: Development Status :: 2 - Pre-AlphaClassifier: Topic :: UtilitiesClassifier: Intended Audience :: DevelopersClassifier: Programming Language :: Python :: 3Classifier: Operating System :: OS IndependentClassifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Requires-Python: >3.5
Package: pymil
Pymil is a simple Carte internationale du Monde au Millionième nomenclature coder. You
might find it useful for searching maps for a specific coordinate pair.usage: pymil.py [-h] [–geojson] [–scale SCALE] latitude longitudecalculates CIM code for given coordinate pair.positional arguments:latitude
longitudeoptional arguments:-h,--helpshow this help message and exit--geojsonprints geoJSON of the map area instead of the code.--scaleSCALEscale to be encoded, defaults to 1:25.000.CIMThe CIM uses the geographic coordinate system as background for the Earth separation,
each individual chart receives a code that is composed by two letters and a number.
The two letters represent respectively the hemisphere (north or south) and a interval
of 4° in Earth’s latitude, which follow the alphabetical order starting from the Equator
and increasing to the poles. The number represents a interval of 6° in longitude,
marked with numbers and starting in the 180° meridian.The letters that follow this are subdivisions of the basic millionth chart and
indicates charts in scales 1 to 500,000, 250,000, 100,000, 50,000 and 25,000.
The letter/number used in each part of the code deppends on the relative position
of the chart to its smaller scale counterpar.TODOMake better docs.__geo_interface__The class CIM includes a __geo_interface__, as defined inhttps://gist.github.com/sgillies/2217756ThanksLuis Urtiga for the CIM nomenclature explanation.
Package: pyMILES
Multiple instance learning via embedded instance selectionThis python package is an implementation of MILES: Multiple-instance learning via embedded instance selection from IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 28, NO. 12, DECEMBER 2006.The paper describes a method to encode bag-space features into a space defined by the most-likely-cause-estimator of the bag and training feature space.The most likely cause estimator is defined asAn example encodingLook atembedding_test.pyfor an example embedding of dummy data.
Dummy data is created from 5 normal distributions, and each instance is generated by one of the following two-dimensional probability distributions:N1([5,5]^T, I), -> The normal distribution with mean [5,5] and 1 unit standard deviation
N2([5,-5]^T, I),
N3([-5,5]^T, I),
N4([-5,-5]^T, I),
N5([0,0]^T, I)Bags are created from a variable number of instances per bag, and this example uses 8. A bag is labeled positive if it contains instances from at least two different distributions among N1, N2, and N3.  Otherwise the bag is negative.  This image displays the raw 2-dimensional dataA single bag is of shape(N_INSTANCES, FEATURE_SPACE)where n is the number of instances in a bag, and p is the feature space of the instances.All positive bags are of shape(N_POSITIVE_BAGS, N_INSTANCES, FEATURE_SPACE)whereN_POSITIVE_BAGSis the number of positive bags.  Negative bags are of shape(N_NEGATIVE_BAGS, N_INSTANCES, FEATURE_SPACE).  The total set of training instances is of shape(N_POSITIVE_BAGS + N_NEGATIVE_BAGS, N_INSTANCES, FEATURE_SPACE).A single bag is embedded into a vector of shape((N_POSITIVE_BAGS + N_NEGATIVE_BAGS) * N_INSTANCES), which is the total number of instances from all positive and negative bags.In this example let
When projecting the training instances onto the vectors# Feature vectors close to mean of `true` positive distributionsx1=np.array([4.3,5.2])x2=np.array([5.4,-3.9])x3=np.array([-6.0,4.8])the result is a (3,40) matrix which is visualized below.Testingpython -m unittest tests.embedding_testpython -m unittest tests.l1_svm_testCode coverage and lintingpylint -r n src/tests/ src/pyMILESFrom src directory:coverage run -m unittest tests.embedding_testautopep8 --recursive --in-place src/tests/ src/pyMILES/BuildingIncrement build version in setup.cfg
python -m build .
python -m twine upload dist/*
Package: pymilia
This is PyMilia, a set of Python bindings for milia.Milia is library that provides distances and ages in cosmology.Pymilia requires a functional milia installation, and
boost (http://www.boost.org/), a C++ library that provides
the wrapping library.This package is distributed under GPL , either version 3 of the License, or
(at your option) any later version. See the file COPYING for details.
Package: pymilldb
PyMillDB: A python library for MillenniumDBPyMillDBis a library that implements modules and classes for interacting withMillenniumDB.Most of the classes in this library require aMDBClientinstance, which connects to thepymilldb_server, found at theMillenniumDB-Dev/MillenniumAIbranch.For theDoxygendocumentation, followthis link.For installing the library, just run thepip install pymdbcommand.
Package: pymillheat
pymillheatPython3 wrapper for interacting with millheat api.Features:Temperature readings.Ability to change set temperature.Turn the device on/off.Device ID, room ID, user ID.Installpip3 install pymillheatExampleimportpymillheatimportasyncioasyncdefmain():awaitmill.open_connection()mill.access_tokenmill.authorization_codemill.refresh_tokenawaitmill.refresh_access_token()awaitmill.get_home_list()mill.homes_informationawaitmill.get_room_by_home(home_id)mill.rooms_informationawaitmill.get_device_by_room(room_id)mill.devices_informationawaitmill.get_independent_devices(home_id)mill.independent_devices_informationawaitmill.switch_control_device(device_id,status,retry=1)awaitmill.temperature_control_device(device_id,status,hold_temp=None,retry=1)if__name__=="__main__":loop=asyncio.get_event_loop()mill=Mill(access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",secret_token="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",username="example@mail.com",password="password123",loop=loop,)try:loop.run_until_complete(main())except(KeyboardInterrupt,SystemExit):passfinally:loop.run_until_complete(mill.close_connection())
Package: pymills
pymills is a collection of various usefulPythonutility modules
maintained byJames Mills. Some are written by James Mills while
others are borrowed from other sources and attributed.NoteYou may not find this library/package useful to you
as I (James Mills) don’t actively maintain this as
a real project as such. It was my first everPythonPackage (and the name has stuck) and I generally
just throw things in it that I can find no better
place for. See theAPIto find anything of interest.Visit theProject WebsiteRead the DocsDownload it from theDownloads PageInstallationThe simplest and recommended way to install pymills is with pip.
You may install the latest stable release from PyPI with pip:> pip install pymillsIf you do not have pip, you may use easy_install:> easy_install pymillsAlternatively, you may download the source package from thePyPI Pageor theDownloads pageon theProject Website;
extract it and install using:> python setup.py installYou can also install thelatest-development versionby usingpiporeasy_install:> pip install pymills==devor:> easy_install pymills==devFor further information see thepymills documentation.Changespymills 3.4.1 (2014-09-16)Fixed a minor bug withpymills.utils.getFiles()pymills 3.4 (2013-11-20)Initial Public ReleaseNoteNo previous chagne log was kept.
Package: pymilvus
Milvus Python SDKPython SDK forMilvus. To contribute code to this project, please read ourcontribution guidelinesfirst. If you have some ideas or encounter a problem, you can find us in the Slack channel#py-milvus.CompatibilityThe following collection shows Milvus versions and recommended PyMilvus versions:Milvus versionRecommended PyMilvus version1.0.*1.0.11.1.*1.1.22.0.*2.0.22.1.*2.1.32.2.*2.2.152.3.*2.3.6InstallationYou can install PyMilvus viapiporpip3for Python 3.8+:$pip3installpymilvusYou can install a specific version of PyMilvus by:$pip3installpymilvus==2.3.4You can upgrade PyMilvus to the latest version by:$pip3install--upgradepymilvusFAQQ1. How to get submodules?A1. The following command will get the protos matching to the generated files, for protos of certain version, seemilvus-protofor details.$gitsubmoduleupdate--initQ2. How to generate python files from milvus-proto?Before generating python files, please install requirements inrequirements.txtA2.$makegen_protoQ3. How to use the local PyMilvus repository for Milvus server?A3.$makeinstallQ4. How to check coding styles?A4.makelintQ5. How to fix the coding styles?Q5makeformatDocumentationDocumentation is available online:https://milvus.io/api-reference/pymilvus/v2.3.x/About.mdDeveloping package releasesThe commits on the development branch of each version will be packaged and uploaded toTest PyPI.The package name generated by the development branch is x.y.z.rc, where  is the number of commits that differ from the most recent release.For example, after the release of2.3.4, two commits were submitted on the 2.3 branch.
The version number of the latest commit of 2.3 branch is2.3.5.rc2.For example, after the release of2.3.4, 10 commits were submitted on the master branch.
The version number of the latest commit of master branch is2.4.0.rc10.To install the package on Test PyPi, you need to append--extra-index-urlafter pip, for example:$python3-mpipinstall--extra-index-urlhttps://test.pypi.org/simple/pymilvus==2.1.0.dev66LicenseApache License 2.0
Package: py-mina
Deployer and server automation toolPython library fordeployingapplications onremote server.Inspired byhttps://github.com/mina-deploy/minaDocumentationGetting startedAPI DocsExamplesInexamplesfolder you will find examples of deploying:frontendapplication -reactjs-nodejsbackendapplication -django-rest-frameworkUsage1. Create deployfile indeploy/deploy.py$ py_mina init2. Edit deployfiledeploy/deploy.py3. Runtaskfrom deployfile$ py_mina -f deploy/deploy.py run setup
$ py_mina -f deploy/deploy.py run deploy
Package: pymindcore
PymindPymind is a Python library for AI, supporting Numpy.InstallationYou can install Pymind using pip: pip install pymind.UsageYou import it, you call the class with your neural network size, and you're away! There will be actual test files in the future, but for the meantime,LicenseThis project is licensed under the CCO license.ExamplesVideoGameAI.py: Currently set up to play the game Bedwars on the Minecraft server, Hypixel. It is set up to work on a 3440x1440 display, on specific game settings.Changing resolutionsTo make it work on a different resolution:
1: Go into a game, lose your bed once, die once, lose the game once. Take a screenshot of the whole screen each time you do one of those.
2: Go into the screenshot in an app like ms paint, and find a pixel that is a certain colour, when you die, lose your bed, and lose the game. (must be unique, and not trigger when either of the others happen)
3: Go into line 199 of VideoGameAI.py, and add in your coordinates and the pixel colour of that coordinate (in RGB). I'd recommend using Gimp for it. It should extend down to line 207. Only change the rewards if you know what you are doing.
4: Run it, and it should work!Different gameTo make it work on a different game:
1: Go into the game you want to train an AI for, and think what points you would punish the AI for getting wrong. eg: dying, losing, etc.
2: Play a game, and do one of each of those things yourself, screenshotting the whole screen each time you do one.
3: Go into the screenshot in an app like ms paint, and find a pixel that is a certain colour when you did each of the bad things. (must be unique, and not trigger when either of the others happen)
4: Go into line 199 of VideoGameAI.py, and add in your coordinates and the pixel colour of that coordinate (in RGB). I'd recommend using Gimp for it. It should extend down to line 207. Only change the rewards if you know what you are doing.
4.5: If you have more than 3 punishment options, then you should copy one of them, and paste it below it, copy the __Coords, __RGB, and __Punishment, and paste them below as well.
5: Figure out what keybinds your AI will need to have for the game. The ones set up for Minecraft should cover most bases, but to be safe, double check. If you want to, remove all the keybinds that your AI will not need, so it can learn easier.
6: Run it and it should work!
Package: pymindcorecupy
PymindPymind is a Python library for AI, supporting Numpy and Cupy. Pymindcorecupy is always fully up to date with pymindcore, dispite the version number differences.InstallationYou can install Pymind using pip: pip install pymindcore-cupy.UsageYou import it, you call the class with your neural network size, and you're away!LicenseThis project is licensed under the CCO license.
Package: pyminder
pyminderI use Beeminder in a lot of my Python projects, and I find myself writting the same helper functions multiple times.
This repository will serve as a place for me to store this functionality and make it accessible to other people.Installationpip3 install --user pyminderUsageimporttimefrompyminder.pyminderimportPyminderpyminder=Pyminder(user='[your username]',token='[your api token]')goals=pyminder.get_goals()goal=goals[0]# Goal objects expose all API data as dynamic properties.# http://api.beeminder.com/#attributes-2slug=goal.slugrate=goal.rate# Goal objects also implement a handful of helper functions.# Note: These functions probably contain bugs! Issues & pull requests welcome.# https://github.com/narthur/pyminder/blob/master/pyminder/goal.pynow=time.time()sum_=goal.get_data_sum(now)needed=goal.get_needed(now)LinksPyPIGitHubDevelopmentSet up a virtual environment in PyCharm so you aren't using the global Python env. This will allow you to avoid
conflicts of dependencies.DeploymentUpdate version number insetup.py-semantic versioningchmod +x deploy.sh./deploy.shInformationBeeminder API ReferenceHow to Publish an Open-Source Python Package to PyPIBuilding and Distributing Packages with Setuptools