Saravanan666/pypi-org huggingface dataset:
Package: madseq
DescriptionScript to parseMAD-Xsequences from a source file and perform simple
transformations on the elements.Dependenciesdocoptto parse command line optionspydictito store and access element attributespyyamlto parse slicing definition and use YAML output formatInstallationThe setup is to be performed as followspythonsetup.pyinstallUsageThe command should be called as follows:Usage:
    madseq.py [-j|-y] [-s <slice>] [<input>] [<output>]
    madseq.py (--help | --version)

Options:
    -j, --json                      Use JSON as output format
    -y, --yaml                      Use YAML as output format
    -s <slice>, --slice=<slice>     Set slicing definition file
    -h, --help                      Show this help
    -v, --version                   Show version informationIf<input>is not specified the standard input stream will be used to
read the input file. Respectively, the standard output stream will be used
if<output>is not specified.The slicing definition defines a list of slicing instructions where each
entry is a dictionary with the following groups of mutually exclusive keys:str type: match only elements with the specified type
str name: match only elements with the specified name

bool use_at: use manually entered AT values, default is True

float density: slice element with the specified number of slices per meter
int slice: slice element using a fixed count, default=1

bool makethin: whether to convert the slices to MULTIPOLE

bool template: whether to put a template for the element in front

str style: slicing style, either 'uniform' or 'loop', defaults to 'uniform'Example file:-type:driftdensity:10-name:B1DK1slice:10makethin:truestyle:uniformNote, that even if an element is matched by multiple rules, only the first
one will be used.CautionDo not use multi line commands in the input sequences. At the moment
these are not parsed correctly!Do not add anyat=position arguments in the input sequences. The
madseq script takes care of this responsibility.Changelog0.4.4fix check for filename extension0.4.3fix some sliced multipole coefficientshandle QUADRUPOLE.K1S in makethinfix a naming problem when slicing with templatefix python3 problems0.4.2allow .json files to be passed as the -s parameter (extension is used to
distinguish .json from .yaml)0.4.1use different names for slicesfix sequence name in comment before templates0.4.0add ‘use_at’ slicing option that enables to use AT values0.3.2internal: remove attribute access for Element propertiesfix bugged Element.copy and .__contains__ regarding to base elementsfix JSON/YAML serialization errorsfix bugged implementation for predefined elementsfix bugged LOOP stylefix bugged makethinfix bugged use_opticsrename ‘use_optics’ => ‘template’. technically, this is a change in the
public interface, but  we are still in 0.X and furthermore the feature was
not working before anyway.0.3.1usesemantic versioning <http://semver.org/>fix deep attribute lookup for elements0.3redesigned command linefix erroneous parsing of MAD-X arrays, like KNL={…}remove inline attributes for slicingextended slicing via slicing configuration filefix usability of template (predefined) elements
Package: madtornado
madtornadoMadtornado is a project templates for Tornado framework and quickly generate the Tornado project.PyPI page:https://pypi.python.org/pypi/madtornadoInstallationpip install madtornado
sea --init_project [project path]The powerful madtornadoVery easy to check whether is not-null for argumentsargs = self.get_argument_for({"a": None, "b": None, "c": None})
check_rule = {
    "a": [check.not_null], "b": [check.not_null], "c": [check.not_null("c type is error")]
}
result = check.some(args, check_rule)
print(result.__dict__)Used madtornadoworkspace%madtornado_project%\ancient\view\reception.pystart serverpython server.pyCreate routefile : reception.py

@register.route(use=register.PRT)
class IndexHandler(BaseHandler):
    """

    url: http://127.0.0.1:8095/prt/index

    """

    async def get(self):
        self.write("<h1 style='text-align:center'>Index</h1>")

    async def post(self):
        self.throw(404)

    async def put(self):
        self.throw(404)

    async def delete(self):
        self.throw(404)Quickly create routesea --new_recp %madtornado_project%\ancient\view\reception.pyConfigure anything%madtornado_project%\config\tornado.cfgAdviseNginx ( IIS ) use port 80Tomcat use port 8080Apache2 use port 8088madtornado use port 8095ResourcesYou can readmadtornado
Documentationonline for more
information.Licensemadtornado uses the MIT license, see LICENSE file for the details.
Package: madtornado4
Madtornado4Madtornado4是一个构建MVC Tornado项目的工具。安装pip install madtornado4用法madtornado4通过mad命令提供构建操作，在控制台中键入mad即可获得帮助mad install [version]: 指定madtornado的版本号在当前目录下初始化项目。mad list: 查看所有可用的madtornado版本。mad new [Template]: 在madtornado4项目下新建制定模板文件，如果不输入模板名称列出所有模板。文档你可以阅读madtornado4 Documentation在线文档获取更多使用方法。你也可以阅读tornado Documentation来了解tornado基础使用LicenseMadtornado4 uses the MIT license, see LICENSE file for the details.
Package: madura-api
madura_apiA Python API to access online madura dictionaryUsageInstall the packagepip3installmadura-apiExample 1frommadura_apiimporttranslateresult_list=translate('Home')print(result_list)result_listis a list of lists like this,[['n.','ආල'],['n.','ආලය'],['n.','උත්පත්ති ස්ථානය'],['n.','උන්හිටි තැන'],['n.','ගෘහය'],['n.','ගෙදර'],['a.','ගෙදර පිළිබඳ වූ'],['vi.','ගෙදරට ආපසු පැමිණෙනවා'],['n.','ගේ'],['n.','ගේදොර'],['n.','ඝර'],['n.','නිවස'],['n.','නිවහන'],['n.','නිවාසය'],['n.','නිවෙස'],['Ele.','නිවෙසනවා'],['Ele.','නිවෙසීම'],['n.','පදිංචිය'],['Soc.','පවුල'],['Soc.','ස්වදේශ'],['n.','සියරට']]Example 2frommadura_apiimporttranslateresult_list=translate('පොත')print(result_list)result_listis a list of lists like this,[['n.','bood'],['n.','book'],['n.','scroll']]If there is no result, translate function will return FalseExample 3frommadura_apiimporttranslateresult_list=translate('meen')print(result_list)FalseAdvanced Usage (Suggestions)Example 4This is how you translate something if you wanna work with suggestionsimportmadura_apiresult=madura_api.Translate('home')print(result.list)[['n.','ආල'],['n.','ආලය'],['n.','උත්පත්ති ස්ථානය'],['n.','උන්හිටි තැන'],['n.','ගෘහය'],['n.','ගෙදර'],['a.','ගෙදර පිළිබඳ වූ'],['vi.','ගෙදරට ආපසු පැමිණෙනවා'],['n.','ගේ'],['n.','ගේදොර'],['n.','ඝර'],['n.','නිවස'],['n.','නිවහන'],['n.','නිවාසය'],['n.','නිවෙස'],['Ele.','නිවෙසනවා'],['Ele.','නිවෙසීම'],['n.','පදිංචිය'],['Soc.','පවුල'],['Soc.','ස්වදේශ'],['n.','සියරට']]If you try to translate something that can't be translated it'll give you a suggestion list like this,Example 5importmadura_apiresult=madura_api.Translate('meen')print(result.list)['meed','meek','meekness','meerkat','meerschaum','meet','meeting','meeting adjourned','meeting annual general','meeting extraordinary']But you will need to know if the output you get is a suggestion or not. This how you do that,Example 6importmadura_apiresult=madura_api.Translate('meen')print(result.is_a_suggestion)TrueMiscellaneous StuffIf you thinkmadura_apiis a pain in the ass to type, do thisimportmadura_apiasmapi
Package: mad-webhooks
Mad WebhooksMad webooks app for django to webhooks to the userQuick startAdd "mad_webhooks" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'mad_webhooks',]Include the middlewre at the end in your settings like this:MIDDLEWARE=[..."mad_webhooks.middleware.getWebhookMiddlewareClass",]Runpython manage.py migrateto create mad_webhooks models.Overriding Default ClassesUpdate your project settings"MAD_WEBHOOKS_WEBHOOK_MODEL":"mad_webhooks.Webhook","MAD_WEBHOOKS_EVENTS_MODEL":"mad_webhooks.Event","MAD_WEBHOOKS_WEBHOOK_EVENT_POST_ATTEMPT_MODEL":"mad_webhooks.WebhookEventPostAttempt","MAD_WEBHOOKS_LOG_MODEL":"mad_webhooks.Log",MAD_WEBHOOKS={"WEBHOOK_ADMIN_CLASS":"mad_webhooks.admin.WebhookAdmin","WEBHOOKS_WEBHOOK_EVENT_POST_ATTEMPT_ADMIN_CLASS":"mad_webhooks.admin.WebhookEventPostAttemptAdmin","EVENT_ADMIN_CLASS":"mad_webhooks.admin.EventAdmin","LOG_ADMIN_CLASS":"mad_webhooks.admin.LogAdmin","GET_USER_TOKEN_CLASS":"mad_webhooks.application.GetUserTokenClass","GET_ACCESS_TOKEN_CLASS":"mad_webhooks.application.GetAccessTokenClass","GET_ACCESS_TOKEN_DETAILS_CLASS":"mad_webhooks.application.GetAccessTokenDetailsClass","GET_APPLICATION_DATA_FROM_REQUEST_CLASS":"mad_webhooks.application.GetApplicationDataFromRequestClass","GET_WEBHOOK_MIDDLEWARE_CLASS":"mad_webhooks.middleware.Webhook","CREATE_LOG_CLASS":"mad_webhooks.webhook.CreateLogClass","POST_EVENT_TO_WEBHOOK_CLASS":"mad_webhooks.webhook.PostEventToWebhookClass"}see existing class for override reference.
Package: madzpy
madz-pymadzpy is a rpc and api wrapper.First, install it:pip3 install madzpyAll commands interfacing with the node need to use an Instance ofmadz()To create a new instance, run:import madzpy

madz = madzpy.madz()Here are some commands you can use:#                      Private key               From            To            Amount
print(madz.transaction("XXXXXXXXXXXXXXXXXXXXXX", "0x4ba...b313", "0xbd...164", 1))
# returns False 

#                  Address
print(madz.balance("0x4ba...b313"))

#                     Address
print(madz.is_address("0x4ba...b313"))Better docs soon!If you face any issues, file a issue on Github.If you want to support the developer, send, Madz, BNB, MATIC or ETH to the following address:0xAFDfedC5311218B636EEbe3837C489c3BeAcFfB4This code is released under MIT License.
Package: mae
🔥 maemaecollects Prometheus metrics from your Mesos apps.SeeDeployment Strategyto learn how to set upmaeon your Mesos cluster.Requirementsmaerequires Python (>= 2.7), and supports Python 3 (>= 3.5).Installationpip install maeUsage$ mae --help

usage: mae [-h] app_port slave_address slave_port

positional arguments:
  app_port       Port on which this exporter will run on
  slave_address  Mesos slave address
  slave_port     Mesos slave portThe logging level of the CLI can also be configured with theLOG_LEVELenvironment variable. Read thelogginglibrary's levelsfor all the available levels.Task LabelsOncemaeis up and running, it will start collecting metrics from all apps that have theprometheus.metrics.enabledlabel. You can also customize how the metrics are collected  —Task LabelDescriptionRequired?Defaultprometheus.metrics.enabledEnables metrics collection. If the label isn't found, the app's metrics are not collected.Yesprometheus.metrics.port_indexThe port index where your app is exposing its Prometheus metrics. This is useful for Mesos apps that use multiple ports.No0prometheus.metrics.endpointThe endpoint where your app is exposing its metrics.No/metricsDeployment Strategymaeis designed to be run as a daemon on all Mesos slave nodes. This ideally involves 2 steps —Installmaeas part of your base image/AMI or viauser data.Runmaeas a daemon. For example, if your distro supportssystemd, here's a sample script that runs the exporter on port8888—# Save this to /etc/systemd/system/mae.service
[Unit]
Description=Mesos App Exporter
After=network.target

[Service]
Type=simple
Restart=on-failure
Environment="LOG_LEVEL=INFO"
ExecStart=/usr/local/bin/mae 8888 localhost 5051 # Assuming the Mesos slave process is running on port 5051

[Install]
WantedBy=multi-user.target
Package: maec
A Python library for parsing, manipulating, and generatingMalware Attribute Enumeration and Characterization (MAEC™)v4.1 content.Source:https://github.com/MAECProject/python-maecDocumentation:https://maec.readthedocs.io/Information:https://maecproject.github.io/Download:https://pypi.python.org/pypi/maec/OverviewA primary goal of the python-maec library is to remain faithful to both the
MAEC standard and to customary Python practices. There are places where these
will conflict, and the goal is to make the library intuitive both to those
familiar with the XML schemas (but less familiar with Python) and also to
experienced Python developers who want to add MAEC support to their programs.There are currently two levels of APIs for dealing with MAEC content:A low-level API is provided by auto-generated XML Schema - Python class
bindings. These bindings were generated usinggenerateDS. With these, any MAEC
content can be parsed from or written to XML, but requires a bit more
knowledge of the actual MAEC schemas. These “binding classes” are all located
in themaec.bindingspackage.A higher-level API consisting of manually designed Python classes.  These
“native classes” are intended to behave more like Python programmers would
expect. As they are designed manually, they currently do not support the
entire MAEC standard, but rather those object types we expect are used most
frequently. These “native classes” also support exporting their content as
Python dictionaries and lists, which can easily be converted to JSON.
Importing from JSON is also supported.CompatibilityThe python-maec library is tested against Python 2.7 and 3.4+.VersioningReleases of the python-maec library will be given version numbers of the formmajor.minor.update.revision, wheremajor,minor, andupdatecorrespond to the MAEC version being supported. Therevisionnumber is used
to indicate new versions of the python-maec library itself.InstallationThe python-maec library can be installed via the distutils setup.py script
included at the root directory:$ python setup.py installThe python-maec library is also hosted onPyPIand can be installed withpip:$ pip install maecDependenciesThemaecpackage depends on the following Python libraries:lxmlpython-cyboxsetuptools(only if installing using setup.py)For Windows installers of the above libraries, we recommend looking here:http://www.lfd.uci.edu/~gohlke/pythonlibs. python-cybox can be found athttps://github.com/CybOXProject/python-cybox/releases.To buildlxmlon Ubuntu, you will need the following packages from the
Ubuntu package repository:python-devlibxml2-devlibxslt1-devzlib1g-devFor more information about installing lxml, seehttp://lxml.de/installation.html.FeedbackBug reports and feature requests are welcome and encouraged. Pull requests are
especially appreciated. Feel free to use the issue tracker on GitHub, join theMAEC Community Email Discussion List, or send an email directly tomaec@mitre.org.
Package: maec411
A Python library for parsing, manipulating, and generatingMalware Attribute Enumeration and Characterization (MAEC™)content.Source:https://github.com/MAECProject/python-maecDocumentation:http://maec.readthedocs.orgInformation:https://maecproject.github.io/Download:https://pypi.python.org/pypi/maec/OverviewA primary goal of the python-maec library is to remain faithful to both the
MAEC standard and to customary Python practices. There are places where these
will conflict, and the goal is to make the library intuitive both to those
familiar with the XML schemas (but less familiar with Python) and also to
experienced Python developers who want to add MAEC support to their programs.There are currently two levels of APIs for dealing with MAEC content:A low-level API is provided by auto-generated XML Schema - Python class
bindings. These bindings were generated usinggenerateDS. With these, any MAEC
content can be parsed from or written to XML, but requires a bit more
knowledge of the actual MAEC schemas. These “binding classes” are all located
in themaec.bindingspackage.A higher-level API consisting of manually designed Python classes.  These
“native classes” are intended to behave more like Python programmers would
expect. As they are designed manually, they currently do not support the
entire MAEC standard, but rather those object types we expect are used most
frequently. These “native classes” also support exporting their content as
Python dictionaries and lists, which can easily be converted to JSON.
Importing from JSON is also supported.CompatibilityThe python-maec library is tested and written against python2.6, 2.7, and 3.3+. Compatibility with other python versions is neither guaranteed nor implied.VersioningReleases of the python-maec library will be given version numbers of the formmajor.minor.update.revision, wheremajor,minor, andupdatecorrespond to the MAEC version being supported. Therevisionnumber is used
to indicate new versions of the python-maec library itself.InstallationThe python-maec library can be installed via the distutils setup.py script
included at the root directory:$ python setup.py installThe python-maec library is also hosted onPyPIand can be installed withpip:$ pip install maecDependenciesThemaecpackage depends on the following Python libraries:lxmlpython-cyboxsetuptools(only if installing using setup.py)For Windows installers of the above libraries, we recommend looking here:http://www.lfd.uci.edu/~gohlke/pythonlibs. python-cybox can be found athttps://github.com/CybOXProject/python-cybox/releases.To buildlxmlon Ubuntu, you will need the following packages from the
Ubuntu package repository:python-devlibxml2-devlibxslt1-devzlib1g-devFor more information about installing lxml, seehttp://lxml.de/installation.html.FeedbackBug reports and feature requests are welcome and encouraged. Pull requests are
especially appreciated. Feel free to use the issue tracker on GitHub, join theMAEC Community Email Discussion List, or send an email directly tomaec@mitre.org.
Package: maec-to-stix
A Python library for extracting STIX Indicators from MAEC data, and also wrapping MAEC data in STIX.Source:https://github.com/MAECProject/maec-to-stixDocumentation:http://maec-to-stix.readthedocs.orgInformation:http://maecproject.github.ioOverviewThe maec-to-stix package provides APIs and scripts for wrapping MAEC Packages
in STIX, and also extracting STIX Indicators from dynamic analysis data captured
in MAEC. It is compatible with the latest versions of MAEC and STIX,4.1and1.1, respectively.InstallationUse pip to install or upgrade maec-to-stix:$ pip install maec-to-stix [--pre] [--upgrade]For more information, see theInstallation instructions.DependenciesThe maec-to-stix library depends on the presence of certain packages/libraries
to function. Please refer to their installation documentation for installation
instructions.python-maec >=4.1.0.9 and <= 4.2.0.0python-stix >=1.1.1.3 and <= 1.2.0.0.python-cybox >=2.1.0.9 and <= 2.2.0.0.Getting StartedRead theGetting Started guide.LayoutThe maec-to-stix repository has the following layout:docs/- Used to build thedocumentation.maec_to_stix/- The main maec-to-stix source.examples/- Examples of maec-to-stix usage.VersioningReleases of maec-to-stix are givenmajor.minor.patchversion numbers and
followsemantic versioningguidelines.FeedbackYou are encouraged to provide feedback by commenting on open issues or signing
up for theMAEC discussion listand posting your
questions.TermsBY USING MAEC-TO-STIX YOU SIGNIFY YOUR ACCEPTANCE OF THE TERMS AND CONDITIONS
OF USE. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT USE MAEC-TO-STIX.For more information, please refer to the LICENSE.txt file
Package: mael
Tool to convertmarkdown list to Excel, mael.MotivationDo you use Excel for summarizing some lists as tables?
Isn’t it difficult to manage Excel in git?
The common repositories show differences in text files between versions but not in Excel files.
How can we manage spreadsheet tables with versions?
CSV is one of the choices but is it really easy?
What if we can manage table data as markdown file?This tool can convert markdown files to tables in an Excel file.InstallationThis tool is installed with pip:$pipinstallmaelUsageInitialize the directory, then initial files are created based on the templates.$maelinitsome_dirWrite your data in markdown. You can put multiple markdown files in the directory.# List title## SummaryPlease write summary of the table data.## List### Column 1Value 1-1### Column 2Value 1-2---### Column 1Value 2-1---### Column 2Value 3-2Separate each item with---.Build Excel, then you can get an Excel file in the directory.$maelbuildsome_dirThere, the Excel file contains the sheet as:SummaryPlease write summary of the table data.Column 1Column 2Column 3Value 1-1Value 2-1Value 2-1Value 3-2If you put multiple markdown files, the Excel file contains multiple sheets.AttentionPlease write all the files in UTF-8 encoding.Advanced useYou can use variables.
Also, you can define environmental variables for each environment.Define variables insome_dir/config/variables.ini:VARIABLE_1=ABCDEFGVARIABLE_2=HIJKLMNUse the variables in markdown files.
Surround the variable name with{{and}}:# List title## SummaryVariable 1 is {{ VARIABLE_1 }}.Variable 2 is {{ VARIABLE_2 }}.......Of course, you can use the variables not only in the summary but also in the list.Build Excel, then you can get an Excel file in the directory.$maelbuildsome_dirThere, the Excel file contains the sheet as:Summaryvariable 1 is ABCDEFG.variable 2 is HIJKLMN.......To use environmental variables, define the variables insome_dir/config/variables.${env_name}.ini, such assome_dir/config/variables.dev.ini. Environmental variable file overwrite the varabiles defined in the normal variable file,variable.ini. To build the environmental file, executemael build some_dir -e dev, and you will get the Excel file,some_dir_dev.xlsx.PyPI packagehttps://pypi.org/project/mael/
Package: maelstrom
Maelstrommaelstromis a set of custom PyMC3 Models and solvers for
modelling binary orbits through thephase modulation technique.
Unlike previous codes,maelstromfits each individual datapoint in the time series by forward modelling the time delay onto the light curve. This approach fully captures variations in a light curve caused by
an orbital companion.To install the current versiongitclonehttps://github.com/danhey/maelstrom.gitcdmaelstrompipinstall-e.To get startedfrommaelstromimportMaelstromms=Maelstrom(time,flux)ms.optimize()Read the docs here
Package: maelstrom-py
A model based database library for Apache Cassandra built on top of DataStax Python Driver. This library has tested support for Python 2.7.InstallationInstalling through pip is recommended:$ pip install maelstrom-pyYou must have setuptools installed prior to installation. To install the package manually please refer to our installation guide.Get StartedExample usage of Maelstrom:fromuuidimportuuid4importmaelstromfrommaelstrom.baseimportBasefrommaelstrom.lookupimportimportLookUp#ip1 and ip2 are IP address of some, but not necessarily all, nodes of your Cassandra cluster.maelstrom.start([ip1,ip2])classUser(Base):__tablename__="users"defaults={'id'=uuid4(),'name'='','email'='',}lookups=["email"]def__init__(self,*args,**kwargs):self.update_data(**self.defaults)Base.__init__(self,*arks,**kwargs)#constructs table in the specified keyspaceUser.build()LookUp.build()new_user=User(name="Joe",email="example@email.com")new_user.commit()get_user=Account.get_by_lookup("example@email.com")maelstrom.stop()DocumentationTODOLicenseCopyright 2014 Matt Morse, Joe Peacock and contributorsMaelstrom is licensed under theMIT License.
Package: maelzel
maelzelmaelzelis a framework for computer music in python. It provides
datatypes to define notes, chords, sequences, lines, voices, scores, etc.
These objects can be combined with soundfiles and samples, rendered as notation
and synthesized in realtime.It provides functionality for composition, music notation, sound analysis
and synthesis, feature extraction, transcription and machine learningDocumentationhttps://maelzel.readthedocs.io/en/latest/index.htmlInstallationpip install maelzelDependenciespython >= 3.9csound (>= 6.18)lilypondDemoshttps://maelzel.readthedocs.io/en/latest/Introduction.html#demo-notebooksOr check the example notebooks:https://github.com/gesellkammer/maelzel/tree/master/docs/notebooks