Saravanan666/pypi-org huggingface dataset:
Package: madlag3dware
Madlag 3DWare==========================This package contain various solidpython/openscad designs like raspberry pi case elements, specific robot parts.You can install it by :.. code-block::pip install madlag3dwareCredits-------- `Distribute`_- `Buildout`_- `modern-package-template`_.. _Buildout: http://www.buildout.org/.. _Distribute: http://pypi.python.org/pypi/distribute.. _`modern-package-template`: http://pypi.python.org/pypi/modern-package-template.. This is your project NEWS file which will contain the release notes... Example: http://www.python.org/download/releases/2.6/NEWS.txt.. The content of this file, along with README.rst, will appear in your.. project's PyPI page.News====0.2a1-----*Release date: UNRELEASED** Example news entry for the in-development version0.1---*Release date: 15-Mar-2010** Example news entry for a released version
Package: madlib-generator
madlib_generatorI made this in a few hours because I was bored and thought it would be funny. This uses thegoogle-research-datasets/sentence-compressiondataset as a base for it's dictionary and sentence list.Installationpip install madlib_generatorUsage>>> import madlib
>>> madlib.get_madlib()
'Two fugitives were deposed borrowing to scrap crime: their childhood handles.'"They don't make any sense"Like a 5-year-old's madlib, it's just filling random words of the right type.
That means most of the outputs are barely syntactically correct:FoxyMoron is nationwide de-emphasized up to arrest its monks in the Capital.
RMIT has capitalized a Wexford.
newsday lay DURRINGTON rests CONMAN.
An African quay has evaluated a Ofer Holdings Group waveguide guy.
The Schlumberger will fight new 5 and $ 10 Hull beers next Eusebio.
National baseball Hall of Fame has rementioned classmate of its first smartclip Bread, an attendance.
ruby would avoid its Hardware.
Paul Johnson insisted NAN 27.
Radio descendant SECP has been godown bankrupt.
Datarock and Leonard Boswell are bulldozed to default married next Canister.
Zoltan Gera would have added Community Transit assuming.
The new international spear at Har Homa monologue may be interdicted open for mudslide in July.Though sometimes it strikes gold:Plaster Rock considered his hunger.
welfare mother is remaining the hosepipe plunder.
A major founder has upgraded southwestern Pakistan.
All Revellers jetted off in the dark pizzas.
The real bassist Reports.
Taylor Cleared his Household.
Wells Fargo & Co. is clearing its Canadian Islanders.
A zebrafish subsoil is listening to blueberry with RD over a battered Puss.ContributingIf you want to fix the formatting or make it more intelligent, I welcome PRs
Package: madlibspy
MadlibsPyCreate your own madlibs game!InstallationUsepython -m pip install madlibspyExampleimportmadlibspyasmadlibsdata=madlibs.Madlibs(API_TOKEN)# You need an API token from api.bytestobits.devanswers=[input(f"Enter a/an{i}: ")foriindata.variables]text=data.convert(answers)"""text = answers >> dataThis also works, it's a faster way of convertion."""print(data.title)print(text)And much more!DocumentationComing soon...!
Package: madmac
MadMACMAC address generator library for testers.ContentInstallationUsageCommandModuleInstallationUsingpip:pip install madmacUsing source:$gitclonehttps://github.com/laminko/madmac.git
$cdmadmac
$pythonsetup.pyinstallUsageAs a commandCan be usedmadmacas command. The following will generate random MAC address.madmacTo see help, entermadmac --help.madmac--help
usage:madmac[-h][-oOUI][-rSTART][-sSTOP][-tTOTAL][-dDELIMITER][-cCASE]MACaddressgeneratorlibraryfortesters.

optionalarguments:-h,--helpshowthishelpmessageandexit-oOUI,--ouiOUI6-digitorganizationallyuniqueidentifier-rSTART,--startSTARTNICspecificstartaddress-sSTOP,--stopSTOPNICspecificendaddress-tTOTAL,--totalTOTALNumberofMACstogenerate-dDELIMITER,--delimiterDELIMITERDelimiterforMACaddress-cCASE,--caseCASEUselowerorupperNOTE:madmacis not a binary file. You need to install python 3.5 to execute the command.As a moduleImportMacGeneratorclass frommadmacmodule. And create an object usingMacGeneratorand call its membergenerate()function.generate()function will return python generator object.The following code will generate single MAC address using default values.frommadmacimportMacGeneratormacg=MacGenerator()macs=macg.generate()# generator object which contains one itemfrompprintimportpprintpprint(list(macs))Default values are as follows:# 'oui':  None,# 'start': None,# 'stop': None,# 'total': 1,# 'delimiter': ':',# 'case': 'lower'One can provideoui:frommadmacimportMacGeneratormacg=MacGenerator(oui='F0-9F-C2')list(macg.generate())Also specifystartaddress andendaddress if they are known:frommadmacimportMacGeneratorstart='00-B0-A0'stop='00-B0-DF'macg=MacGenerator(start=start,stop=stop)NOTE: Above snippet describes to use randomoui, but to use certain range fromstartandstopvalues. It will ignoretotalparameter. Delimiter and Case will be default values.Sometimes, we might want to generate certain amount of MAC addresses:frommadmacimportMacGeneratormacg=MacGenerator(total=100)
Package: madml
Materials Application Domain Machine Learning (MADML)Research with respect to application domain with a materials science emphasis is contained within. The GitHub repo can be found inhere.ExamplesTutorial 1: Assess and fit a single model from all data:Tutorial 2: Use model hosted on Docker Hub:StructureThe structure of the code packages is as follows:materials_application_domain_machine_learning/
├── examples
│   ├── jupyter
│   └── single_runs
├── src
│   └── madml
└── testsCoding StylePython scripts follow PEP 8 guidelines. A usefull tool to use to check a coding style is pycodestyle.pycodestyle <script>AuthorsGraduate StudentsLane Schultz-Main Contributer-leschultzAcknowledgmentsTheComputational Materials Group (CMG)at the University of Wisconsin - MadisonProfessor Dane Morganddmorganand Dr. Ryan Jacobsrjacobs914for computational material science guidence
Package: mad-monkey
Mad MonkeyMad Monkey is a command-line utility which helps developers to view file without opening it.Just like cat command in linux and unixInstallationInstall Mad Monkey with pippipinstallmad-monkeyUsagemonkey<path-to-file>ExamplesI have created a filehello-world.txtand running monkey command to view this file.monkeyhello-world.txtOutputHello worldAuthors@AadityanshaLicenseMIT
Package: madnbdev
madnbdevThis file will become your README and also the index of your
documentation.InstallpipinstallmadnbdevHow to usespeaker1=Speaker("Detective Maxwell",model_engine="gpt-4")speaker2=Speaker("Goldilocks",model_engine="gpt-4")Understood, I will adhere to the rules you’ve outlined.SCENE PLOT: You are in an interrogation room questioning Goldilocks
about a recent burglary. She doesn’t know you have an ace up your
sleeveDETECTIVE MAXWELL: Alright Miss Goldilocks, we can do this the easy way
or the hard way. You see, I have surveillance video clearly showing you
entering the Bears’ residence. Can you explain why exactly you were
there?He leans back in his chair, watching her reaction closelySCENE PLOT: You are being interrogated by a detective about a burglary
that you definitely committed, but you aren’t going to give him the
satisfaction of cracking the case. After all, you are a hardened
criminal that lives for the rush of the crimeGOLDILOCKS: Oh Detective Maxwell, I believe in an innocent until proven
guilty stance, don’t you? As for the Bears’ home, they happen to be
close friends of mine. We have a little comedy improv routine.She
crosses her legs, her casualness contrasting dramatically with the
serious atmosphere.We were simply rehearsing, surely you don’t
consider that a crime?DETECTIVE MAXWELL: Close friends, you say? Committing improv? That sure
is a funny way to go about friendship, don’t you think? Breaking in and
causing a ruckus…He raises an eyebrow, tapping his pen rhythmically on
the table…not what most people would call rehearsing. Can you perhaps
explain why they are pressing charges then?GOLDILOCKS: Hmmm, pressing charges, is it? Now, that’s certainly a twist
in our little drama.She chuckles lightly, drumming her fingers on the
side of her chair.Could it be they thought the play had turned too
real and panicked? Or maybe they are still in character? They do take
our little performances very seriously.DETECTIVE MAXWELL: Interesting theory, Miss Goldilocks. However,
vandalizing property and violating privacy don’t quite sound like
elements of comedy improv to me…He leans forward, his fingers locked
in front of him.Now, would you like to revise your interesting, yet
hard-to-believe, alibi, or shall we keep on with this little
‘performance’?GOLDILOCKS: I see no need to change my tune, Detective.She leans back
in her chair, a mischievous smile curving her lips.Improv is all about
unpredictability, isn’t it? And I must say, aren’t you enjoying our
little performance here? I mean, your questioning is quite entertaining,
almost as good as our improv!DETECTIVE MAXWELL: Your audacity does have a certain…charm, Miss
Goldilocks. But let’s not forget where we are.He interlaces his
fingers, resting his chin on them.This is an interrogation room, not a
stage. And your antics could land you in serious trouble, not an encore.
Is maintaining this act really worth the risk, or would the truth
perhaps serve you better?
Package: madness
madness: a method for your madnessIt is built upon WSGI and the fabulouswerkzeugrouting system, like Flask.Guiding PrinciplesDon't repeat yourselfDependency inversion principleDo One Thing and Do It Well.The Zen of PythonGoalsCohesionInstalling$pipinstall-UmadnessA Simple Examplefrommadnessimportapplication,getdefhello():return'Hello, world!'if__name__=='__main__':application(get('/',hello)).run()Routingroute and variantsroutes and variantsdefaultsurl parametersfrommadnessimportroutes,route,get,post,indexdefhello():return'world'defbar():return'zing!'# recommended styleurls=routes(index(hello),routes(index(lambda:'foo')route(bar,methods=['GET','POST','PUT']),path='/foo'))# flat styleurls=routes(route('/',hello,methods=['GET']),route('/foo',lambda:'foo',methods=['GET']),route('/foo/bar',bar,methods=['GET','POST','PUT']),)# add GET to all routesurls=routes(route('/',hello),route('/foo',lambda:'foo'),route('/foo/bar',bar,methods=['POST','PUT']),methods=['GET'])Abstractions (Dependency inversion principle)gextending gmadness.G and g_factoryMiddleware (Coroutines)as decoratoras serializeras request-contextmanageras response contextmanageras request-response contextmanageras error handlerExtensionsjsoncors
Package: mad-notifications
Mad NotificationsMad Notifications app for django to send notifications to the userQuick startAdd "mad_notifications" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'mad_notifications',]Include the notifications URLconf in your project urls.py like this:path('notifications/',include('mad_notifications.api.urls')),Runpython manage.py migrateto create the notifications models.UsageShorthand methodfrommad_notifications.shorthandimportnewNotification# create and sendreturnnewNotification(user,# django user objecttitle,# stringcontent,# stringtemplate_slug=None,# slug from mad_notification.EmailTemplatedata={},# dictactions={}# dict)Notification Classfrommad_notifications.notificationimportNotification# create a notificationnotification=Notification(user=user,title="New Order",content="You have a new order!",data={'order':order_data,},actions={'click_action':"ORDER_SCREEN"},template=email_template,# mad_notification.EmailTemplate Object)# send the notificationnotification.notify()Overriding defaultMAD_NOTIFICATIONS={"FIREBASE_MOBILE_PUSH_NOTIFICATION_CLASS":"mad_notifications.senders.firebase.FirebaseMobilePushNotification","EMAIL_NOTIFICATION_CLASS":"mad_notifications.senders.email.EmailNotification",}Developer GuideSetting up a new providerCreate logic in~/senders/PROVIDER.pyand call via tasks in~/notify/PROVIDER.py
Package: mad-oauth2
Mad Oauth2Mad Oauth2 app is an extension of django-oauth-toolkit that implements scopes and schemes in detailQuick startAdd "mad_oauth2" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'oauth2_provider','mad_oauth2',...]REST_FRAMEWORK={..."DEFAULT_PERMISSION_CLASSES":("oauth2_provider.contrib.rest_framework.TokenMatchesOASRequirements",# OR"oauth2_provider.contrib.rest_framework.TokenHasResourceScope",),'DEFAULT_THROTTLE_CLASSES':['mad_oauth2.throttling.BaseScopedRateThrottle'],...}OAUTH2_PROVIDER_APPLICATION_MODEL="mad_oauth2.Application"OAUTH2_PROVIDER={"SCOPES_BACKEND_CLASS":"mad_oauth2.oauth2.ApplicationScopes","APPLICATION_ADMIN_CLASS":"mad_oauth2.admin.ApplicationAdminClass",}Runpython manage.py migrateto create mad_oauth2 models.Important NoteFirst add scopes and throttles from the admin, then mark the view with the respective scope. Changes will take effect once the code is deployed(redeployed/rebuild).Clearing Expired TokensRun celery periodic task to clear expired tokensmad_oauth2.tasks.removeExpiredTokensRestricting Views with Scopesthis_view="user"throttle_scope=this_viewrequired_alternate_scopes=mad_oauth2.utils.requiredScopesForView(this_view)Visit the official documentation fordjango-oauth-toolkitfor more details on this:https://django-oauth-toolkit.readthedocs.io/en/latest/rest-framework/permissions.htmlThrottling RequestsREST_FRAMEWORK={...'DEFAULT_THROTTLE_CLASSES':['mad_oauth2.throttling.BaseScopedRateThrottle',],...}Visit the official documentation fordjangorestframeworkfor more details this:https://www.django-rest-framework.org/api-guide/throttling/#scopedratethrottle
Package: madoc
MadocWhat is Madoc for ?It is a terminal tool to automatically generate a single html documentation file from all
the .md files found in the directory.Cool stuff to join a clean and easy to read documentation to some project.Installationpip install madocUsageOpen a terminal in the directory where the .md files are,
and just type:madocdone, you have your documentation in a single html file.Know more options withmadoc -h.Changelog1.1.1: responsive design1.1.0: Recursive build modeLibraries used by MadocBulma (CSS framework)Vue.js (JS framework)Marked (JS library)Jinja2 (python library)
Package: madonna
MadonnaA Python semver parsing library.Free software: MIT LicenseDocumentation:https://FollowTheProcess.github.io/madonna/Project DescriptionMadonna is a small, simplesemverutility library with support for parsing, writing, and otherwise interacting with semantic versions in code.Why the stupid name?Get it? "Like a Version"... 👏🏻Also naming things on PyPI is hard!InstallationpipinstallmadonnaQuickstartThe only construct in madonna is theVersionobject, you can use it for all sorts of useful things...Create a New VersionfrommadonnaimportVersionv=Version(major=1,minor=2,patch=4)Parse a Version from a stringfrommadonnaimportVersionVersion.from_string("v1.2.4-rc.1+build.123")# Version(major=1, minor=2, patch=4, prerelease="rc.1", buildmetadata="build.123")Or JSONfrommadonnaimportVersionVersion.from_json('{"major": 1, "minor": 2, "patch": 4}')And you can also dump aVersionto a variety of formats too!Contributingmadonnais an open source project and, as such, welcomes contributions of all kinds :smiley:Your best bet is to check out thecontributing guidein the docs!CreditsThis package was created withcookiecutterand theFollowTheProcess/cookie_pypackageproject template.
Package: madookan
PyPi:https://pypi.org/project/madookan/Hello, this package is provided information about attractions Japan.วิธีติดตั้งเปิด CMD / Terminalpipinstallmadookanวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…```python from madoo import Lookjapan = Look() # ประกาศชื่อ Class japan.info() # โชว์ Infomation
japan.about() # Information detail japan.show_art() # Show art
Package: madoop
Madoop: Michigan HadoopMichigan Hadoop (madoop) is a light weight MapReduce framework for education.  Madoop implements theHadoop Streaminginterface.  Madoop is implemented in Python and runs on a single machine.For an in-depth explanation of how to write MapReduce programs in Python for Hadoop Streaming, see ourHadoop Streaming tutorial.Quick startInstall Madoop.$pipinstallmadoopCreate example MapReduce program with input files.$madoop--example$treeexampleexample├── input│   ├── input01.txt│   └── input02.txt├── map.py└── reduce.pyRun example word count MapReduce program.$madoop\-inputexample/input\-outputexample/output\-mapperexample/map.py\-reducerexample/reduce.pyConcatenate and print the output.$catexample/output/part-*Goodbye 1Bye 1Hadoop 2World 2Hello 2Comparison with Apache Hadoop and CLIMadoop implements a subset of theHadoop Streaminginterface.  You can simulate the Hadoop Streaming interface at the command line withcatandsort.Here's how to run our example MapReduce program on Apache Hadoop.$hadoop\jarpath/to/hadoop-streaming-X.Y.Z.jar-input example/input \-output output \-mapper example/map.py \-reducer example/reduce.py$catoutput/part-*Here's how to run our example MapReduce program at the command line usingcatandsort.$catinput/*|./map.py|sort|./reduce.pyMadoopHadoopcat/sortImplement some Hadoop optionsAll Hadoop optionsNo Hadoop optionsMultiple mappers and reducersMultiple mappers and reducersOne mapper, one reducerSingle machineMany machinesSingle Machinejar hadoop-streaming-X.Y.Z.jarargument ignoredjar hadoop-streaming-X.Y.Z.jarargument requiredNo argumentsLines within a group are sortedLines within a group are sortedLines within a group are sortedContributingContributions from the community are welcome! Check out theguide for contributing.AcknowledgmentsMichigan Hadoop is written by Andrew DeOrioawdeorio@umich.edu.
Package: madrona
A software framework for effective place-based decision makingOverviewMadrona offers a flexible set of building blocks and design patterns that allow you to create cutting-edge tools for decision support and spatial planning at any scale.Madrona leverages open source technology including Django, PostGIS, Mapnik, GDAL, and JQuery.  It provides robust support for 2D and 3D mapping using the GeoJSON and KML data standards allowing you to use mapping clients such as OpenLayers and Google Earth.  The architecture is modular allowing you to integrate almost any third party library both proprietary and open-source.Getting StartedVisithttp://madrona.ecotrust.orgfor case studies, a technology overview, and much more.  Documentation, Installation instructions, tutorials, and other developer essentials can be found athttp://madrona.ecotrust.org/developer
Package: mads
Mesh Adaptive Direct Search (MADS)This package provides an implementation of the Mesh Adaptive Direct Search (MADS) algorithm for gradient-free optimization [1]. More specifically, it uses a modified variant of MADS with orthogonal search directions (OrthoMADS) [2]. However, it abandons using the deterministic Halton sequence for search directions in favor of random search directions, and only performs poll steps.Using MADSThe user must provide the following argumentsA numpy array of initial design variablesA numpy array of upper bounds for the design variablesA numpy array of lower bounds for the design variablesAn objective function to be minimizedAn initial poll sizeAn initial mesh sizeA stopping tolerance based on the poll size e.g. 1E-6A stopping tolerance based on the objective function e.g. 1E-6A stopping tolerance based on the maximum number of iterationsTrue/False flag for printing optimization statisticsTrue/False flag for saving optimization statistics to a log.txt fileMADS will perform up to the specified maximum number of design iterations. At each iteration it will perform up to 2N evaluations of the objective function, where N is the number of design variables, skipping points that have already been evaluated. It automatically shrinks/expands the poll size to search the design space, and exits when any one of the three aforementioned stopping criteria is met.Upon completion, MADS returnsThe mimimized value of the objective functionA numpy array of the design variables that yielded this minimaExample ApplicationsHere we provide a simple example problem to minimize f(x,y) = (x-0.3)2+ (y-0.7)2. This is a strictly postive function, which trivially takes a minimum value at [x,y] = [0.3,0.7]. We will an initial guess of [x,y] = [0.5,0.5] and take upper and lower bounds within the unit square.importnumpyasnpfrommadsimportmads# Define objective functiondefobjective_function(d):f=(d[0]-0.3)**2+(d[1]-0.7)**2returnf# Provide the problem configurationdesign_variables=np.array([0.23,0.97])# Initial design variablesbounds_lower=np.array([0,0])# Lower bounds for design variablesbounds_upper=np.array([1,1])# Upper bounds for design variablesdp_tol=1E-6# Minimum poll size stopping criterianitermax=1000# Maximum objective function evaluationsdp=0.1# Initial poll size as percent of boundsdm=0.01# Initial mesh size as percent of bounds# Run the optimizerorthomads(design_variables,bounds_upper,bounds_lower,objective_function,dp,dm,dp_tol,nitermax,True,True)This should exit with the following resultsOptimization Results...
Optimal:  0.0565000000 Parameters: [ 0.2100000000  0.9200000000] Iter/Eval: 1 3
Optimal:  0.0153000000 Parameters: [ 0.2700000000  0.8200000000] Iter/Eval: 2 6
...
Optimal:  0.0000000000 Parameters: [ 0.3000002117  0.7000000651] Iter/Eval: 62 243References[1] C. Audet and J. E. Dennis, Mesh Adaptive Direct Search Algorithms for Constrained Optimization, SIAM Journal on Optimization, 2006, 17 (1), 188-217.[2] M. A. Abramson, C. Audet, J. E. Dennis, and S. Le Digabel, OrthoMADS: A Deterministic MADS Instance with Orthogonal Directions, SIAM Journal on Optimization, 2009, 20 (2), 948-966.