Saravanan666/pypi-org huggingface dataset:
Package: mazepy
Maze classes for Python. Translated from Ruby sources in the book “Mazes for Programmers” by Jamis Buck (https://pragprog.com/book/jbmaze/mazes-for-programmers).Includes additional code not in the aforementioned book.RequirementsPython 3.InstallInstall latest version:pip install mazepy.UsageUse with other programs like this:from mazepy import mazepy

grid=mazepy.Grid(10,20)
grid=mazepy.getRandomMaze(grid)
print("%s Maze:" % grid.algorithm)
print(grid)and output of the above program would be similar to:Recursive Backtracker Maze:
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|       |               |                   |               |           |       |
+   +   +   +---+---+   +   +   +---+---+---+   +---+   +   +   +---+---+   +   +
|   |   |   |           |   |       |           |       |   |               |   |
+   +---+   +---+---+---+---+   +   +   +---+---+   +---+   +---+   +---+---+   +
|       |       |           |   |           |       |   |       |       |       |
+   +   +---+   +   +   +   +---+---+---+---+   +---+   +---+   +---+---+   +---+
|   |       |   |   |   |           |           |   |       |           |       |
+   +---+   +   +   +   +---+---+   +   +---+---+   +   +   +---+---+   +   +   +
|   |       |   |   |   |       |   |   |           |   |           |   |   |   |
+   +   +   +   +---+   +---+   +   +   +   +   +---+   +---+---+   +   +   +   +
|   |   |   |       |   |       |   |   |   |   |       |   |       |   |   |   |
+   +   +---+---+   +   +   +---+   +   +   +---+   +---+   +   +---+   +---+   +
|   |           |       |   |       |   |       |           |       |           |
+   +---+---+   +---+---+   +   +---+   +   +   +---+---+   +---+   +---+---+   +
|           |       |           |       |   |           |   |   |       |       |
+---+---+   +---+   +   +---+---+   +---+   +---+---+   +   +   +   +   +   +---+
|       |   |       |   |           |   |       |       |       |   |   |       |
+   +---+   +   +---+   +---+---+   +   +---+   +   +---+---+   +   +---+---+   +
|           |                       |           |               |               |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+See also: mazingame (https://github.com/samisalkosuo/mazingame)LicenseThe MIT license for my own code.Original Ruby code:#---
# Excerpted from "Mazes for Programmers",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/titles/jbmaze for more book information.
#---
Package: mazerunner_sdk
This library implements a convenient client for MazeRunner™ API for Python.
Using this library, you will be able to easily configure and manipulate the key features
of MazeRunner, such as the creation of a deception campaign, turning decoys on or off, deployment on
remote endpoints, and inspecting alerts with their attached evidence.See the documentation athttps://community.cymmetria.com/apiFork us athttps://github.com/Cymmetria/mazerunner_sdk_python
Package: mazesolver
Maze SolverThis algorithm finds the shortest path through black and white maze images. It outputs an image with the path marked in green.InstallingCheck that your python version is >=3.5 withpython3 -V.
Also make sure that pip is installed withpython3 -m pip -V.To install, simply runpython3 -m pip install mazesolver --useron the command line.You can run the tool usingmazesolverormazesolver.exe.What are the rules for maze images?Walls marked with black pixels and paths marked with white pixelsWalls around the entire mazeOne entrance on the top row and one exit on the bottom rowYou can generate a compatible maze usingmazegenerator, or just make your own image in an image editing program.If this is confusing, check out some of the example mazes in thepicsdirectory.How do I use it?You can usemazesolver --helpto get a list of commands.Make sure that your image meets the specifications above.Normal usage will look something like this:mazesolver -i path/to/input_img -o path/to/output_dir/How does the algorithm work?Start at the entrance and label it zero.Move to any neighbouring cells and mark them with 1Move to any of the cells neighbouring the ones marked 1 and label them 2Continue doing this until all cells are markedStart from the exit of the maze and move to any neighbouring cell that == the current cell's number -1. Until we reach 0 (the entrance).We now have the shortest path from the entrance to the exit!
Package: mazetool
mazetoolA simple maze tool for managing 2D mazes using a cli.Free software: ISC licenseDocumentation:https://mazetool.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-1-22)First release on PyPI.
Package: maze-utils
maze-utilsInstallationpipinstallmaze-utilsUsageMaze Generatorfrommaze_utilsimportmazesgenerator=mazes.KruskalMaze(n_x=20,n_y=20)# Either step by stepforstepingenerator.steps:print(step)# Or finalprint(generator.maze)Maze Solverfrommaze_utilsimportmazes,solvers# first get maze as numpy arraymaze_generator=mazes.KruskalMaze(n_x=20,n_y=20)maze=maze_generator.maze# Then generate solutionsolver_generator=solvers.AStarSolver(maze)# step by stepforstepinsolver_generator.steps:print(step)# or finalprint(solver_generator.solution)
Package: maze-world
maze-worldRandom maze environments with different size and complexity for reinforcement learning and planning research. This is in-particular to investigate generalization and planning ability in dynamically changing environment.Disclaimer: This project is largely a amalgam of references mentionedhere.InstallationUsing PyPI:pipinstallmaze-worldDirectly from source (recommended):gitclonehttps://github.com/koulanurag/maze-world.gitcdmaze-world
pipinstall-e.Environments Zoo!RandomMaze-11x11-v0RandomMaze-21x21-v0RandomMaze-31x31-v0RandomMaze-101x101-v0See allhere.Quick-Start:importgymnasiumasgymenv=gym.make("maze_world:RandomMaze-11x11-v0",render_mode="human")terminated,truncated=False,Falseobservation,info=env.reset(seed=0,options={})episode_score=0.whilenot(terminatedortruncated):action=env.action_space.sample()observation,reward,terminated,truncated,info=env.step(action)episode_score+=rewardenv.close()See entire quick-start guidehere.Testing:Install:pip install -e ".[test]"Run:pytestDevelopment:If you would like to develop it further; begin by installing following:pip install -e ".[develop]"References:Gym-MazeMazelabCustom Gym environment based out of gymnasiumWilson Maze Generator
Package: mazikeen
mazikeenis a test framework for command line applications.mazikeenwas created to facilitae testing of CLI application that have a predictable output. It facilitates testing on different operating systems by provideing a diff method that is agnostic to newline and make / remove directory. Formazikeenevery test has it’s own directory helping debugging and organizing tests.mazikeenempathise parralel testing.The test structure looks like:Testsuit1
├── Testcase1
│   └── script.yaml
├── . . .
└──TestcaseN
    └── script.yaml
Testsuit2
├── Testcase1
│   └── script.yaml
├── ...
└──TestcaseN
    └── script.yamlAn example of a simple test:# content of script.yaml---steps:-rmdir:Output-makedirs:Output-run:echo "Hello World" > Output/hello.txt-diff:Output/hello.txt Expected/hello.txtTo execute it:$ mazikeen
[RUN       ] --- simple
[    PASSED] --- simple
----------------------------------------------------------------
Total test cases: 1 passed: 1 skipped: 0 error: 0 failed: 0
----------------------------------------------------------------
process time: 0.02 execution time: 0.01FeaturesProvides diff functions agnostic to newline and other common operations for different operating systems like make and remove directory.Every test case is a directory. Making it easy to debug a failing test as all relevant data is stored in one place.Parallel execution support. Testscases can be executed in parallel. A testcase can call multiple CLI applications in parallel.DocumentationFor full documentation, please seehttps://github.com/hanniballar/mazikeen/blob/master/Documentation/Mazikeen.rst.Bugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.
Package: maznet
maznetA lightweight deep learning library made for learning
purposes using Python. The code is easy to understand
but suggestions are welcome and feel free to contact for
queries. We extensively use type hints for better code
comprehension instead of filling our code with docstrings
and comments.RequirementsnumpySetupYou can either download the package frompip install maznet==1.0.0or download this repository and use accordingly.UsageSeexor.pyandfizzbuzz.pyfor usage examplesFuture workBroaden the library functionality by adding more optimizers,
losses, layers and such.ContributionTo get assigned to any issue leave a comment or if
you feel you have any ideas feel free to create an issue.
Before making a pull request make sure to check code usingmypyfor type hints andblackfor linting.AcknowledgmentsInitial work has been inspired by joelnet.
Package: mb8611
MB8611 CLICLI tool and library for managing the Motorola MB8611 series modem and maybe other Motorola devices.InstallationPoetrypoetryaddmb8611Pippipinstallmb8611Command line usageUsage: mb8611 [OPTIONS] {addr|address|clear-log|conn|connection|connection-
              info|conninfo|down|downstream|lag|lag-
              status|log|reboot|software|software-status|startup|startup-
              sequence|up|upstream}

  Main CLI.

Options:
  -H, --host TEXT      Host to connect to.
  -d, --debug          Enable debug level logging.
  -j, --json           Only output JSON. Encoded lists (tables) will still be
                       parsed.
  -p, --password TEXT  Administrator password.
  -u, --username TEXT  Administrator username.
  --help               Show this message and exit.Library usageRefer tomb8611.apifiles for fields. Almost every field type is a string.ActionsGetHomeAddressGetHomeConnectionGetMotoLagStatusGetMotoStatusConnectionInfoGetMotoStatusDownstreamChannelInfoGetMotoStatusLogGetMotoStatusLogXXXGetMotoStatusSecAccountGetMotoStatusSecXXXGetMotoStatusSoftwareGetMotoStatusStartupSequenceGetMotoStatusUpstreamChannelInfoGetNetworkModeSettingsSome actions require a specific payload:Login—LoginPayloadSetMotoLagStatus—SetMotoLagStatusPayloadSetMotoStatusDSTargetFreq— seeSetMotoStatusDSTargetFreqPayloadSetStatusLogSettings— seeClearLogPayloadSetStatusSecuritySettings— seeRebootPayloadExampleimportpprintfrommb8611.clientimportClientwithClient(the_password)asclient:addr=client.call_hnap('GetHomeAddress')# Fully typed dictionaryassertaddr['GetHomeAddressResponse']['GetHomeAddressResult']=='OK'pprint.pprint(addr)Clientimplements a context manager. CallingClient.loginunnecessary when using it with thewithstatement.{'GetHomeAddressResponse':{'GetHomeAddressResult':'OK','MotoHomeIpAddress':'...','MotoHomeIpv6Address':'','MotoHomeMacAddress':'...','MotoHomeSfVer':'8611-19.2.18'}}ExamplesCheck if the modem is onlinemb8611--output-jsonconn|jq-r.MotoHomeOnlineConnectedDisplay the modem's Upstream Bonded ChannelsThe output is a list of lists. Columns are:ChannelLock StatusChannel TypeChannel IDSymb. Rate (Ksym/sec)Freq. (MHz)Pwr (dBmV)mb8611up-j|jq-r'.MotoConnUpstreamChannel[]|@csv'|tr-d'"'|tabulate-s','-  ------  ------  -  ----  ----  --
1  Locked  SC-QAM  1  5120  17.6  43
2  Locked  SC-QAM  2  5120  24    47
3  Locked  SC-QAM  3  5120  30.4  43
4  Locked  SC-QAM  4  5120  36.8  44
-  ------  ------  -  ----  ----  --Known issuesNote:The modem does not require any authentication for the currently working actions such asaddr.The following actions do not work as they require proper authentication (these return'UN-AUTH'at this time):clear-log/SetStatusLogSettingsSetStatusSecuritySettingsSetMotoLagStatusSetMotoStatusDSTargetFreq
Package: mba
===
MBA  V0.0.2.1
===market basket analysisFree software: MIT licenseDocumentation:https://mba.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-11-25)First release on PyPI.
Package: mbam
MBAMCode for the Manifold Boundary Approximation MethodInstallUsing pippipinstallmbamFrom sourcegitclonehttps://github.com/mktranstrum/MBAM.git
pipinstall./MBAMExampleSeeexamples.Start by looking atexp_example.py. This script defines a simple model
which is the sum of two exponentials sampled at 3 points. It defines a function
to evaluate the model as well as its first and second derivatives with respect
to the parameters. It then imports functions for solving the geodesic equation.
It solves the geodesic equation and then plots the parameter values along the
geodesic. The output of this script should be similar toexp_example.pngNext, consider theMMR.pywhich defines a model (a Michaelis-Menten
reaction) by solving a nonlinear ordinary differential equation. This script
defines a model by sampling by evaluating this model at three time points. It
also defines functions for calculating first and second derivatives. Note that
evaluating these derivatives involves solving the so-called sensitivity
equations. Alternatively, they can be estimated using finite differences.The scriptMMR_Plots.pysolves the geodesic equation for the MMR model
and creates several plots to visualize the parameter space, parameter values
along the geodesic, and the model manifold.AttributionPlease citeTranstrum, Machta, and Sethna (2011)andTranstrum and Qiu (2014)if you find this code useful in your research.Licensembam is free software distributed under the MIT License; see theLICENSEfile for
details.
Package: mb-app
mb_appearanceSmall Python program to manipulate Mount & Blade character appearance.Install it with:pip install mb-appusage: mb-app [-h] [-v] [--verbose] [-b BACKUP_TO] [-r RESTORE_FROM] [-g N]

Python util for Mount&Blade characters file manipulation.

optional arguments:
-h, --help                               Show this help message and exit.
-v, --version                            Print version info.
--verbose                                Output verbose status messages.
-b BACKUP_TO, --backup BACKUP_TO         Backup characters file.
-r RESTORE_FROM, --restore RESTORE_FROM  Restore characters file from backup.
-g N, --gen N                            Generate N random characters.
Package: mbapy
BA_PYmbapy is a Python package that includes a collection of useful Python scripts as sub-modules, and it's goal isBasic for All in Python.mbapy primarily focus on areas such as sci-plot, stats, web-crawler, sci-paper utilities, and deep learning with pytorch.get startinstallNow, mbapy only support pypi install:pip install mbapymbapy is a multi-funtional package, and it does not require every third-party packages to make every sub-module work. However, it provides some requriements option to install more specified requirements to make some sub-modules work:bio: some packages for biology(sci).install aspip install mbapy[bio]full: full requirements to make almost every sub-module in mbapy work(except dl_torch).install aspip install mbapy[full]If you find the latest release version has some problems, you can try install the up-to-date version on github or gitee:pip install git+https://github.com/BHM-Bob/BA_PY.gitpip install git+https://gitee.com/BHM-Bob/BA_PY.gitdocsThe documentation for mbapy can be found onread the docs, and it is the one that I will regularly update.
The API document for mbapy is available on itswiki. However, please note that this wiki on GitHub has not been updated since 2023-07.web sitesopen source at:github： https://github.com/BHM-Bob/BA_PYgitee： https://gitee.com/BHM-Bob/BA_PYdocs at:read the docs: https://ba-py.rtfd.iocontainmbapy python package__version__some version infobasesome utils for easier codingfileimageimgae utils, including reading, saving and process a image into a feature tensor via pytorch.videovideo utils, including extract frames or unique frames from a video.plotpandas.dataFrame utils for plot and some simple plot based on pltwebutils for web-crawlerrequestget a web hyml page or a selenium browser warpper for easier usage.parseutils for parsing htmltasksmall task managerstatsclusterBAKmeans, KOptim, KBayesian from KMeans, and a func for many clusterdfpandas.dataFrame utils for statsregregressiontestsome test func(using scipy and mostly give a support for mbapy-style data input)dl-torchpytorch utils for deeplearningbbbasic blocks : tiny network structuresdatautils for dataset loadinglosssome loss functionmmodel : deeplearning model constructed with basic blocksutilsdeeplearning training utilsoptimlearning rate schedulerpapersci-paper utils, contains paper searching, downloading and parsingpaper_searchsearch papers via pubmed, baidu xueshu, wospaper_downloaddownload papers via scihubpaper_parseparse paper from a pdf file into a dict of each sectionsscriptssome useful scripts for command userlaunch bypython -m mbapy.scripts.XXXormbapy-cli XXX.examplesfilesome file utils thingsplotstack bar plot with hue styleweb/crawlerchaoxin ppt multi threads downloader (jpg->pdf)wujin searchhttp://www.basechem.orgchemSub searchhttp://chemsub.online.frcnipahttps://pss-system.cponline.cnipa.gov.cn/seniorSearch
Package: mbbank-lib
MBBank API for PythonA unofficially light weight Python Api for the "Military Commercial Joint Stock Bank" accountwhy we  have this lib ?Because I don't want to lose money on some api services likecasso.vnRequirestesseract (windows)tesseract (Linux & Mac)and python3Installpip install mbbank-libor Dev Verpip install git+https://github.com/thedtvn/MBBankHow to Usesyncimportdatetimeimportmbbankmb=mbbank.MBBank(username="<account number>",password="<account password>"[,tesseract_path="path/to/tesseract"])daynow=datetime.datetime.now()lasttime=daynow-datetime.timedelta(weeks=4*3)# maximum time 3 Monthmb.getTransactionAccountHistory(from_date=lasttime,to_date=daynow[,accountNo="<sub account number default is main account number>"])mb.getCardTransactionHistory(cardNo="<get `cardNo` key from card json obj in `getCardList`>",from_date=lasttime,to_date=daynow)mb.getBalance()mb.getBalanceLoyalty()mb.getInterestRate()mb.getFavorBeneficiaryList(transactionType="TRANSFER"or"PAYMENT",searchType="MOST"or"LATEST")mb.getCardList()mb.getSavingList()mb.getLoanList()mb.userinfo()asyncimportasyncioimportmbbankimportdatetimeasyncdefmain():mb=mbbank.MBBankAsync(username="<account number>",password="<account password>"[,tesseract_path="path/to/tesseract"])daynow=datetime.datetime.now()lasttime=daynow-datetime.timedelta(weeks=4*3)# maximum time 3 Monthawaitmb.getTransactionAccountHistory(from_date=lasttime,to_date=daynow[,accountNo="<sub account number default is main account number>"])awaitmb.getCardTransactionHistory(cardNo="<get `cardNo` key from card json obj in `getCardList`>",from_date=lasttime,to_date=daynow)awaitmb.getBalance()awaitmb.getBalanceLoyalty()awaitmb.getInterestRate()awaitmb.getFavorBeneficiaryList(transactionType="TRANSFER"or"PAYMENT",searchType="MOST"or"LATEST")awaitmb.getCardList()awaitmb.getSavingList()awaitmb.getLoanList()awaitmb.userinfo()asyncio.run(main())and all this is return json for you have full control your data
Package: mbclib
mbclibA library for querying the STIX data for the MBC (Malware Behavior Catalog).ProgressCurrently being developed along with thembscan.py tool.About the Malware Behavior CatalogThe Malware Behavior Catalog (MBC) is a catalog of malware objectives and behaviors, created to support malware analysis-oriented use cases, such as labeling, similarity analysis, and standardized reporting. More infohere.Available functionsFetch FunctionsDescriptionget_all_objectivesFetches all objectivesget_all_behaviorsFetches all behaviorsget_all_malwaresFetches all malwareget_objective_by_idGet an objective by id (x-mitre-tactic--0735bfd3-bffa-4476-9e3b-e33cc5c553e0)get_objective_by_external_idGet an objective by external id (x-mitre-tactic--0735bfd3-bffa-4476-9e3b-e33cc5c553e0)get_objective_by_shortnameGet an objective by shortname (file-system-micro-objective)get_behavior_by_idGet a behavior by id (attack-pattern--001ca78e-188e-4725-9f43-706d0f487837)get_behavior_by_external_idGet a behavior by external id (B0030.001)get_malware_by_idGet a malware by id (malware--0c0d59b7-4ff0-4a09-9c64-558334485ece)get_malware_by_external_idGet a malware by external id (X0005)Property functionsDescriptionget_mbc_external_idGiven an mbc object, return the mbc external idget_parent_behaviorGet the related parent behavior for a given behaviorRelationship functionsDescriptionget_relationships_byGet a list of related mbc objects, returned mbc object depends on the inputget_behaviors_used_by_malwareGet a list of behaviors used by a given malwareget_malwares_using_behaviorGet a list of malware that uses a given behavior
Package: mb-confy
# Confy: A dictionary backed by a real .json fileConfy is a dictionary with a `.save()` method. Acts exactly the same as a regular dictionary otherwise.## Install`pip install mb-confy`## Use```pythonfrom confy import ConfyconfigPath = "config.json"config = Confy(configPath)if "timesOpened" in config:timesOpened = config["timesOpened"]else:timesOpened = 0print("Opened {} times".format(timesOpened))config["timesOpened"] = timesOpened + 1```## LicensingMIT## AuthorMade by Martijn Brekelmans. This project is used in [SMG music display](https://martijnbrekelmans.com/SMG).
Package: mbcradiomusic
MBCMusicCrawlerMBC의 동의 없는 선곡 콘텐츠의 상업적 이용을 금합니다.해당 코드 또한 MBC 의 요청대로 상업적으로 사용할수 없습니다해당 코드로 가져온 모든 선곡표의 저작권은 MBC 에 있음을 알립니다BASIC EXAMPLESimportdatetimefrommbcmusiccrawler.MBCMusicCrawlerimportMBCMusicCrawlermbc_music_crawler=MBCMusicCrawler()# specify Datemusic_list=mbc_music_crawler.get_music_list_by_date(datetime.date.fromisoformat('2020-11-21'))# non-specify Date (today)music_list=mbc_music_crawler.get_music_list_by_date()print(music_list)DETAILdefget_music_list_by_date(self,search_date:date=date.today(),program_code:ProgramCode=ProgramCode.MUSIC_CAMP)->list[Music]:"""get_music_list_by_date:param search_date: datetime.date, search date:param program_code: ProgramCode, search radio program code:return:"""pass
Package: mbctools
mbctoolsWe developed a python package called mbctools, designed to offer a cross-platform tool for processing amplicon data from various organisms in the context of metabarcoding studies. It can handle the most common tasks in metabarcoding pipelines like paired-end merging, primer trimming, quality filtering, zero-radius operational taxonomic units (ZOTU) denoising and filtering. This pipeline has the capability to process  multiple genetic markers simultaneously. mbctools is a menu-driven program that eliminates the need for expertise in command-line skills and ensures documentation of each analysis for reproducibility purposes. In our workflow, VSEARCH is utilized for processing fastq files derived from amplicon data. To adapt to the diversity of projects in metabarcoding, we facilitate the  reprocessing of  datasets with the possibility to adjust parameters. mbctools can also be launched in headless mode, making it suited for integration into pipelines running on High-Performance Computing (HPC) environments. mbctools is available at:https://github.com/GuilhemSempere/mbctools.Test data are available athttps://doi.org/10.23708/W3TODJ.