Saravanan666/pypi-org huggingface dataset:
Package: manageritm-client
manageritm-clientClient to manage services on another system over a RESTful APIGetting StartedInstall manageritm server.pipinstallmanageritmgunicornStart manageritm server on port 8000.gunicorn--bind0.0.0.0:8000--workers1--log-leveldebug"manageritm.app:main()"Install manageritm-client.pipinstallmanageritm-clientIn Python, create a client, start the mitmproxy service, stop the mitmproxy serviceimportmanageritm_clientmanageritm_addr="localhost"manageritm_port="8000"# create a manageritm clientmc=manageritm_client.ManagerITMProxyClient(f'http://{manageritm_addr}:{manageritm_port}')proxy_details=mc.client()print(f"proxy port:{proxy_details['port']}")print(f"proxy webport:{proxy_details['webport']}")# start a proxy servermc.start()# set your application to use the proxy#  host: "localhost"#  port: f"{proxy_details['port']}"# do some work...# stop the proxy servermc.stop()Local DevelopmentCheck out this repositoryCreate a virtual environmentmakepyenvInstall Python dependenciesmakeinstallStart the servermakeserverStart a client, in a Python interpreter:importmanageritm_clientmanageritm_addr="localhost"manageritm_port="8000"# create a manageritm clientmc=manageritm_client.ManagerITMProxyClient(f'http://{manageritm_addr}:{manageritm_port}')proxy_details=mc.client()print(f"proxy port:{proxy_details['port']}")print(f"proxy webport:{proxy_details['webport']}")# start a proxy servermc.start()Navigate a web browser tohttp://localhost:<proxy webport>to watch the trafficConfigure a web browser to use the proxy port.Stop the client# stop the proxy servermc.stop()Helpful CommandsTo build a package for the development version:makeallTo install a copy into your local python virtualenvmakeinstallTo run the test cases:maketest
Package: manage-savestates
AboutOrganizes and labels files. Designed to be used with savestates and macros generated usinggz, a.k.a. "The Practice ROM", a practice tool for Ocarina of Time speedrunning.UsageAfterinstallation, run$ mansavto open the GUI interface.A command line interface will be added in the future.FeaturesOrganize directoriesOrganize directories of gz savestates and / or macros according to your specifications. The program remembers which directories you want organized and the settings associated with each directory.Here is a list of available settings:TrimTrims the default numbered prefix gz attaches to savestates (e.g., 000-savestate-name.gzs -> savestate-name.gzs). Good if you keep your savestates in alphabetical order.RenumberRenumbers savestates from 000 up to 999 in the order they are displayed in gz's file system. Good if you like to renumber savestates manually so they are in route order, especially if you want to insert savestates at the beginning of a route but don't want to rename dozens or hundreds of other files. This setting renumbers the states in order from 000 to 999 in the order they are found in your folder. If you have 150 savestates in a folder and you want to add a new savestate between 002 and 003, you could name it something like "002-z[savestate name]", then run this program; it and all the states after it will then be numbered correctly.Additionally, macros that have the same name as a savestate are numbered to match their corresponding savestates. For example, if you have a savestate called "021-dot skip.gzs" and a macro called "dot skip.gzm", the macro will be renamed "021-dot skip.gzm". Duplicate macros and macros with no matching savestate are moved to a subfolder called "_other" to keep folders organized (the underscore puts it at the top of the file explorer in gz).For quality-of-life purposes, the program creates an empty macro for each savestate that doesn't have a corresponding macro (e.g., for a state "042-wasteland hess.gzs" with no matching macro, the empty macro "042-.gzm" is generated). This means that when loading macros in gz, the cursor will always be at the same place in savestate and macro lists, avoiding the bug that forces you to reload the SD card.Do nothingGood if you want to back up a certain folder with the rest, but don't want the program to touch it otherwise.Back up directoriesCopy the directories you chose to a backup destination.InstallationPython is required. This program was tested on Python 3.11 but should work on all maintained Python versions.Windows and macOSOption 1: pipThe easiest way to install this program is using pip:$ pip install manage-savestatesOption 2: download and runDownload the source code and run main.py:$ python3 /path/to/main.pyLinuxThis program has not been tested on Linux.
Package: manage_server_power
This library handles rather specific remote power management scenario.Server can be woken up with wake-on-lan (WOL)SSH access with public key authentication to the server (for shutting it down)Server responds to ping (checking whether the server is running)Installation:pip install manage_server_poweror clone therepositoryand usepython setup.py installConfiguration and notesOn the server side:Enable WOL (from BIOS/… settings).Take note of relevant MAC address.Add new user to server (say, powermanagement).Edit sudoers (visudo) and addpowermanagement ALL=NOPASSWD: /sbin/poweroffOn the management computer:Generate ssh public key pair (ssh-keygen)Copy public key to powermanagement user on server (add it to.ssh/authorized_keys)Connect to server to check that public key works properly and to add server host key to known_hosts.Notes:At least with some devices/networks, WOL won’t work if broadcast_ip is not set to local network’s broadcast, instead of 255.255.255.255.Usageimport manage_server_power
sp = manage_server_power.ServerPower(server_hostname="example.com",
                                     server_mac="61:a3:18:1c:84:4b",
                                     server_port=22,  # optional, default is 22
                                     ssh_username="powermanagement",
                                     broadcast_ip="192.168.1.255",  # optional, default is 255.255.255.255
                                     socket_timeout=0.5,  # optional
                                     wol_port=9,  # optional, default is 9
                                     )
print sp.is_alive()
# SERVER_DOWN, SERVER_UP or SERVER_UP_NOT_RESPONDING
print sp.wake_up()  # send WOL packet
print sp.shutdown()  # ssh in and run "sudo poweroff"
Package: managesf
managesfThis is a REST-based utility to manage projects, users and other tasks in
SoftwareFactory(http://softwarefactory.enovance.com).
It consists of two parts: a server with a REST API interface and a command line
interface (CLI).DocumentationMore information is included in the documentation(docs/intro.rst).InstallationCLI sfmanagerRun the following commands if you only want to install the commandline tool:pip install -r requirements.txt
python setup.pyREST API serverUpdate config.py and execute the following commands if you want to run managesf in a development setup::virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
pecan serve config.pyTo run it in production please refer to the Pecan documentation:Refer to pecandoc
Package: managesieve
Author:Hartmut Goebel <h.goebel@crazy-compiler.com>Version:0.7.1Copyright:2003-2021 by Hartmut GoebelLicence:Python Software Foundation License and
GNU Public Licence v3 (GPLv3)Homepage:https://managesieve.readthedocs.io/Development:https://gitlab.com/htgoebel/managesieveSieve scripts allow users to filter incoming email on the mail server.
The ManageSieve protocol allows managing Sieve scripts on a remote
mail server. These servers are commonly sealed so users cannot log
into them, yet users must be able to update their scripts on them.
This is what for the “ManageSieve” protocol is. For more information
about the ManageSieve protocol seeRFC 5804.This module allows accessing a Sieve-Server for managing Sieve scripts
there. It is accompanied by a simple yet functional user application
‘sieveshell’.Changes since 0.6Minimum required Python version is now Python 3.6.sieveshell:Forgetandputexpand~and~userconstructions infilename. Forput, if script-name is not given, the file’s
basename is used.Some minor clean-up.managesieve:Fix error when constructing debug error message.Actually raise debug-only exceptions instead of jsut returning them.Fix invalid string-escape in docstring.Some minor clean-up.Requirements and InstallationmanagesieverequiresPython(tested 2.7 and 3.4—3.6, but newer versions should work,
too), andsetuptoolsorpipfor installation.Not yet implementedsieve-names are only quoted dump (put into quotes, but no escapes yet).Copyright and LicenseCopyright:2003-2021 by Hartmut Goebel <h.goebel@crazy-compilers.com>License formanagesieve:PSF-like License, see enclosed fileLicense for ‘sieveshell’ and test suite:GPL v3CreditsBased on Sieve.py from Ulrich Eck <ueck@net-labs.de> which is part of
of ‘ImapClient’ (seehttp://www.zope.org/Members/jack-e/ImapClient), a
Zope product.Some ideas taken from imaplib written by Piers Lauder
<piers@cs.su.oz.au> et al.Thanks to Tomas ‘Skitta’ Lindroos, Lorenzo Boccaccia, Alain Spineux,
darkness, Gregory Boyce and Grégoire Détrez for sending patches.
Package: managevcs
======managevcs======.. image:: https://secure.travis-ci.org/zaabjuda/vcslib.png?branch=master:target: http://travis-ci.org/zaabjuda/vcslibvarious version control system management abstraction layer for python.This is fork of project `vcs <https://github.com/zaabjuda/managevcs>`_------------Introduction------------``managevcs`` is abstraction layer over various version control systems. It isdesigned as feature-rich Python_ library with clean *API*.managevcs uses `Semantic Versioning <http://semver.org/>`_**Features**- Common *API* for SCM backends- Fetching repositories data lazily- Simple caching mechanism so we don't hit repo too often- Simple commit api- Smart and powerfull in memory changesets- Working directory support-------------Documentation-------------Online documentation for development version is available athttp://packages.python.org/managevcs/.You may also build documentation for yourself - go into ``docs/`` and run::make html.. _python: http://www.python.org/.. _Sphinx: http://sphinx.pocoo.org/.. _mercurial: http://mercurial.selenic.com/.. _git: http://git-scm.com/
Package: manasafiles
custom Python package that is installable from your GitHub repo!Installation and updatingUse the package managerpipto install Toolbox like below.
Rerun this command to check for and install  updates .pipinstallgit+https://github.com/Muls/toolboxUsageFeatures:functions.listChunker  --> generator that chunks and interable in evenly sized chunksfunctions.weirdCase    --> converts a string to a totally unreadable formatfunctions.report      --> prints to the console with a timestampdecorators.singleton  --> used for decoratint your class to make it a singletonDemo of some of the features:importtoolboxfromtoolboximportreportmessage=toolbox.functions.weirdCase("The toolbox package is ready for use")report(message)list_of_numbers=[1,2,3,4,5,6,7,8,9,10,11]forchunkintoolbox.functions.listChunker(lst=list_of_numbers,csize=3):print(chunk)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: manati
manatiA command line interface (CLI) for managing Python projects.Createnew Python projects with ready-to-go recommended project structure.Addimportant files to existing projects
likesetup.py,.gitignore, Sphinx documentation, choose a license and more.Runtest suites, analyze test coverage anddeployto PyPi.Evenmanatiis managed usingmanati... so meta.Installationpip install --upgrade manatiUsageCreating a new projectmanati create -n myprojectcreates a complete Python project structure inside the current working directory:myproject
├── docs
│   ├── Makefile
│   ├── conf.py
│   ├── index.rst
│   ├── make.bat
│   └── requirements.txt
├── myproject
│   ├── __init__.py
│   └── main.py
├── LICENSE
├── README.md
├── setup.py
├── .gitignore
└── tests
    └── test_main.pyincluding sample source,
tests, documentation,setup.py, localgitrepository and a
suitable.gitignorefile.After creation, the project is already installed in development (editable) mode, so you can start coding right away.Adding stuff to an existing projectSometimes you have an existing project, but initially you did not choose a license,
or your.gitignoreis missing. You can add those special files with themanati addcommand.Add a licensemanati add licensewhere you have the choice between standard license texts like MIT, GPLv3, Apache, ...Add a.gitignorefilemanati add gitignoreThe created.gitignorecontains all usual patterns that should typically be ignored
by git in Python projects.Add asetup.pyfilemanati add setup.pyAdd a project documentation foldermanati add docsmakes a./docsfolder and sets up aSphinx-based documentation inRead-The-Docs-style:Callmanati add --helpfor more information.Add github actionsAdd a standard github action which automatically runs build and tests
on the github CI/CD systems whenever you push a commit:manati add github-actionRun stuffRun testsmanati run testsAnalyze test coveragemanati run coverageRe-Build docs and show it browsermanati run docsRun PEP8 style analyzermanati run flake8Deploy your projectTo PyPimanati deploy pypiAfter that anyone in the world can install your package usingpip.As a prerequisite for deployment, you need an account atPyPi.To Github, Gitlab, etc.Create an empty repository at the platform of your choice, like github, and
deploy your local project repository there, e.g.:manati deploy repoAfter that your local repo is in sync the remote one.A note for Windows usersDepending on your environment settings, you may have to usemanatiby prependingpython -morpy -mlike inpython -m manati createDocumentationThe full documentation can be foundhere.Requirementsmanatirequires Python 3.
All Python dependencies are installed automatically. However,you need to havegitinstalled.CreditsImages byNatur Vektoren von Vecteezy.
Package: manatus
Manatus is a python utility and library for harvesting and transforming the output of OAI-PMH aggregators and APIs intoDPLA’s MAPJSON-LD.Mantus is the species name of Florida’s official marine mammal, the Florida Manatee,Trichechus manatus latirostris.Dependenciespymodsv2.0.6 or greatersickleInstallation & Usepython3-mpip install manatuspython3-mmanatusDocumentationFull documentation is available atRead the Docs
Package: manb
Mission Aware Note Book (manb)DescriptionA Python package for Google Colab that supportsMission Awareconcepts using theGENESYSREST API.Usage# Notebook Initialization
import manb
env = manb.Environment(domain, path)
env.Tunnel()
env.Login()

# System Description
sd = manb.SystemDescription(env)
sd.UseCaseDiagram()
sd.UseCaseTable()
sd.ControlStructureDiagram()
sd.MSCDiagrams()

# Risk Assessment
ra = manb.RiskAssessment(env)
ra.LossTable()
ra.HazardTable()
ra.ControlActionTable()
ra.HazardousActionTable()
ra.ControlActionAnalysisTable()

# Vulnerability Assessment
va = manb.VulnerabilityAssesment(env)
va.LossScenarioTable()
va.PhysicalBlockDiagrams()
va.ComponentAnalysisTable()
va.LinkAnalysisTable()

# Resilience Architecture
arch = manb.ResilienceArchitecture(env)
arch.ResilientModeTable()
arch.LossScenarioElaborationTable()
arch.LossScenarioMSCDiagrams()
arch.ElictedRequirementsTable()

# Section Exercises
ex = manb.Exercises(env, manb.Section.<section enum>)
ex.Edit()
Package: mancala
MancalaMancala board game written in python.Features & Road mapsMancala playable on CLICmpatible with the gym APICan train RL agentsMancala playable on GUIInstallation$pipinstallmancalaUsagePlay a game with agents$mancalaplay--player0human--player1randomCompare each agents and plot their win ratesThe values are player1's (second move) win rates in percentage$mancalaarenap0_randomp0_exactp0_maxp0_minimaxp0_negascout
p1_random50.053.03.00.00.0
p1_exact42.048.04.01.01.0
p1_max95.091.041.00.03.0
p1_minimax100.096.087.030.039.0
p1_negascout100.097.084.019.032.0AlgorithmsMancala is a game with perfect information.
マンカラは完全情報ゲームです。Mini-MaxMini-max is an algorithm for n-player zero-sum games.
The concept is to assume the opponent will take their best move and try to minimize them.MiniMaxhttps://en.wikipedia.org/wiki/MinimaxAlpha-beta pruninghttps://en.wikipedia.org/wiki/Alpha–beta_pruningNegamaxhttps://en.wikipedia.org/wiki/NegamaxValue IterationUsing Dynamic Programming (DP), calculate value for states and memorize them.
Use the value to plan future actions.Other implementationsOpenSpiel value_iteration
algorithmhttps://github.com/deepmind/open_spiel/blob/master/open_spiel/python/algorithms/value_iteration.pyexamplehttps://github.com/deepmind/open_spiel/blob/master/open_spiel/python/examples/value_iteration.pyPolicy IterationUsing Dynamic Programming (DP), calculate value for states and memorize them.
Use the value and policy for planning.Referenceshttps://github.com/mdavolio/mancalaMulti agent RLhttps://github.com/deepmind/open_spielhttps://github.com/PettingZoo-Team/PettingZoo
Package: manchester-code
manchester-codePython library to encode & decode data asManchester codeSetup$pip3install--user--upgrademanchester-codeUsage0-bits translate to low-high, 1-bits to high-low (G. E. Thomas convention).importmanchester-codemanchester_code=encode([0b00001111,0b01101001])print(''.join(['{:08b}'.format(m)forminmanchester_code]))# 01010101101010100110100110010110encode(b'msg')# b'i\xa6jZij'decode([0b01010101,0b10101010,0b01101001,0b10010110])# 0000111101101001decode(b'ieiVjeiV')# b'data'
Package: mancho
Mancho: A musical transcription assistant.This is a tool to make musical transcriptions.
Documentation is WIP.InstallationMancho depends onrubberband, portaudio and PyGtk3. Make sure these dependencies are installed.On Ubuntu 20.04 LTS you can run:sudoaptinstallpython3-pippython3-pyaudiopython3-girubberband-cliAfterwards:python3-mpipinstallmanchoQuickstartStart mancho by running:python3-mmanchoLoad an audio file using the open dialog.You can scroll and zoom using the arrow keys.You can select a region to loop using the mouse.Set the playback using the slider and click play (or pressspacebar)By pressinga, you can set markers. They can be removed usingbackspaceanddelsselects the region between the markers.shiftand arrow keys extend the selection,altand arrow keys shorten it.ctrland arrow keys move the selection.
Package: mand
mandpython -mdoesn't run multiple modules. This package to provides a way to easily run multiple modules with the same interpreter.Running multiple modules on the same interpreter is great when you want side-effects such as
adding hooks to existing libraries without changing them.Installationpip install mandCommand-line usageCall multiple modules:mand a bWhere a and b are modules,awill be executed, thenbUsage with arguments:mand "a foo" "b bar"such thatfoois an argument to moduleaandbaris an argument to moduleb.You can also specify module paths or python files:mand path/to/my/file.py pdbYou can also run mand via the-mflag:python -m mand "a foo" "b bar"API usagefrommandimportmandmand(['a foo','b foo'])# Equivalent usagemand([('a','foo bar'),('b','foo')])Changelog0.9.6 (4/13/2018):Allow modules with capitalization (such as cProfile)0.9 (4/12/2018):initial release
Package: mandarina
MandarinaMandarinais a friendly Data Science library for PythonFunctionalityAt the moment, Mandarina provides the following modules:Csv file functionsRandom data generatorsCode benchmarking toolsTools to work with files and directoriesScheduling functionsCustom iteratorsImage manipulation functionsLicenseCheck theLICENSEfileAuthorsAlen FreyVersionVersion 0.1.0How to installpipinstallmandarina
Package: mandate
MandateAsync fork ofwarrant.Part of the code was provided by thewarrantcontributors as part of that software. This code has been duplicated here as allowed by the Apache License 2.0. The warrant code is copyright of the warrant contributors. Any other code is copyright of mandate contributors.ImportfrommandateimportCognitoInitialisecog=Cognito('pool_id',# user pool id'client_id',# client iduser_pool_region='eu-west-2',# optionalusername='your-user@email.com',client_secret='secret',# optionalloop=loop# optional)Registerawaitcog.register(email='your-user@email.com',username='myuser',password='password')admin_create_useris also available:awaitcog.admin_create_user('user@email.com')Confirm Sign upawaitcog.confirm_sign_up('SIGNUP_CODE','your-user@email.com')admin_confirm_sign_upis also available:awaitcog.admin_confirm_sign_up('user@email.com')AuthenticateAll the below examples can be called with or withoutadmin_variants.Perthe documentation, when running a backend server, you can use theadmin_methods for authentication and user-related activities. For example:awaitcog.admin_authenticate(password)Technically, the non-admin workflow can also be used with, however I have not got this to work with app secrets! Help would be appreciated here.awaitcog.authenticate(password)botocore.errorfactory.NotAuthorizedException: An error occurred (NotAuthorizedException) when calling the RespondToAuthChallenge operation: Unable to verify secret hash for client <client id>If you create an app without app secrets, you should also be able to use the non-admin versions without issues.Forgot passwordawaitcog.initiate_forgot_password()# Get the code from the emailawaitcog.confirm_forgot_password(code,new_password)Get user attributesawaitcog.admin_authenticate('password')user=awaitcog.get_user()Change passwordawaitcog.admin_authenticate(old_password)awaitcog.change_password(old_password,new_password)Update profileawaitcog.admin_authenticate(password)awaitcog.update_profile({'address':'foo'})Or as adminawaitcog.admin_update_profile(username='other-user',attrs={'gender':'potato'})Delete userawaitcog.admin_delete_user(username='user.email@example.com')Logoutawaitcog.logout()DevelopmentInstallpoetry, then to install the
dependencies:poetry installUnit testspython -m unittest discover tests
Package: mandatum
MandatumMandatum is a python framework based on rich-python to create beatiful Command-Line-Interface applications in no time. It can create interface for your application in an object oriented approachInstallationTo install via pip type the following commandpipinstallmandatumORInstall poetrypipinstallpoetryClone this repogitclonehttps://github.com/ZayedMalick/mandatumChange directory to mandatum and typepoetryinstallGetting StartedLets create a basic application with mandatumimportmandatum# displaydisplay=mandatum.Display()# printdisplay.print(text="Hello World!",style="bold red",justify="center")The above application was a very simple one , now lets make a bit complicated applicationimportmandatum# Initial setupmenu=mandatum.Menu(options=["Opt1","Opt2"],bold_text=True)prompt=mandatum.Prompt(color="blue")alert=mandatum.Alert(bold_text=True)warning=mandatum.Warning()display=mandatum.Display()if__name__=="__main__":# Displaying Menumenu.start()# User namename=prompt.input("\nEnter your name : ")display.print(text=name,style="bold green",justify="left")# Alertsalert.alert("\nAlerting")# Warningwarning.warn(message="\nWarning!",bold_text=True)Projects made with mandatumCalculusQR-CLILicensemandatum is licensed under the terms of MIT licenseImportant NoteVersion 2.0.0 is coming soon and will contain major syntax and performance change.