Saravanan666/pypi-org huggingface dataset:
Package: matterbabble
Matterbabble is an API client forDiscourseandMatterbridge.  It
mirrors Discourse posts in a topic to Matterbridge messages on a
gateway, and vice versa.  It works well with theDiscourse Babbleplugin, which formats a thread as a chat room.Installation and UsageTo install, execute:pip install matterbabbleTo run, execute:python -m matterbabble CONFIGPATHproviding the path to a Matterbabble configuration file as described
below.ConfigurationMatterbabble is configured with aconfigparserINI file.Example:[discourse]
address = https://forum.bitphoenixsoftware.com/
username = matterbridge
token = 0dwdmaddzludwvntpg7gss6dxdem7byemre3krw86k60n39vn1ni7wganakpzjd0
fmt = {username}: {message}

[matterbridge]
address = http://127.0.0.1:4242/
token = oTUaGHctYYve28nYNMzLZszJvT1RD3kXLlZwPLULEaTFMRrGyvFzdvOdpsuQYFEhD84qL9PP5FJvGFOsQINESs1keaLO8SnvQNHHM6wq41mwHVX0NNKaBXD5uDaDhZ4p

[connections]
lounge = /babble/topics/68

[logging]
level = INFOdiscourseThediscoursesection must contain an address and API key for a
Discourse forum, and the username of the user you want the client to run
as.  You can also change the format used for messages going to Discourse
(thefmtkey is optional).matterbridgeThematterbridgesection must contain theBindAddressof aMatterbridge APIinstance.  If you added aTokento the API,
you must also include that here.connectionsTheconnectionssection maps Matterbridge gateways to Discourse
topics.  The ID of a topic is the last component of the URL after you
navigate to it on Discourse, and the correct format is/topics/{id}.
You can find a Babble chat room’s ID by clicking on it in the admin
chat manager.  The format for those is/babble/topics/{id}.loggingThe optionalloggingsection can containbasicConfigoptions
forloggingin Matterbabble.  You can setleveltoINFOto
log raw objects sent through Matterbabble tostderr.Caveat EmptorInline images in the Discourse post are currently replaced with links
before being sent to the gateway because they generally aren’t
supported by chat rooms.  Maybe there will be a better solution to this
problem in future.CopyrightCopyright 2019 Declan HoareLicensed under Apache License 2.0.
NO WARRANTY
Package: matterdelta
MatterdeltaMatterdelta is aMatterbridgeAPI plugin allowing to connect
Delta Chat group chats to the various chat services supported by Matterbridge.InstallpipinstallmatterdeltaUsageConfigure the bot's Delta Chat account:matterdeltainitbot@example.comPASSWORDYou can runmatterdelta initseveral times to add multiple different accounts to the bot
so it can be reached in more than one email address.The bot's display name, avatar and status/signature can also be tweaked:matterdelta config selfavatar "/path/to/avatar.png"
matterdelta config displayname "Bridge Bot"
matterdelta config selfstatus "Hi, I am a Delta Chat bot"To run the bot so it starts processing messages:matterdeltaserveTo see all available options runmatterdelta --helpExample Configurationmatterbridge.toml[api]
    [api.deltachat]
    BindAddress="127.0.0.1:4242"
    Token="MATTERBRIDGE_TOKEN"
    Buffer=1000
    RemoteNickFormat="{NICK}"

...

[[gateway]]
name="gateway1"
enable=true

    [[gateway.inout]]
    account="api.deltachat"
    channel="api"

    ...Add these to your existing Matterbridge config to set up an API instance that Matterdelta can connect to.config.json{
  "gateways": [
    {"gateway": "gateway1", "accountId": 1, "chatId": 1234}
  ],
  "api": {
    "url": "http://127.0.0.1:4242",
    "token": "MATTERBRIDGE_TOKEN"
  },
  "quoteFormat": "{MESSAGE} (re @{QUOTENICK}: {QUOTEMESSAGE:.46})"
}This file should be in Matterdelta's configuration directory, usually~/.config/matterdelta/in Linux-based systems.To get theaccountIdandchatIdof the chat you want to bridge,
run the bot and add its address to your Delta Chat group, then send/idin the group,
the bot will reply with the account and chat id, then edit the configuration file and restart the bot.
Package: matter-exceptions
matter-exceptionsTable of ContentsInstallationLicenseBackgroundThe matter-exceptions library in Python is a comprehensive package that allows developers to create and customize different types of exceptions. This library includes three major categories of exceptions, namely API exceptions, detailed exceptions, and FastAPI exceptions, that can be tailored to specific use cases.API exceptions are designed to provide clear and concise error messages for clients accessing an API. With this library, developers can easily create and customize API exceptions that contain relevant error messages, HTTP status codes, and detailed descriptions of what went wrong. These API exceptions can also include payloads, which can be forwarded to error tracking systems for debugging and analysis purposes.Detailed exceptions, on the other hand, are designed for internal use by developers. These exceptions can be used to catch specific errors and provide detailed information about what went wrong. Developers can easily create and customize detailed exceptions with this library, including payloads that can be sent to error tracking systems to aid in debugging.FastAPI exceptions are designed specifically for use with the FastAPI framework. With this library, developers can create and customize FastAPI exceptions that are easy to use and integrate seamlessly with FastAPI applications. These exceptions can also contain payloads, which can be forwarded to error tracking systems for analysis and debugging purposes.Overall, the matter-exceptions library in Python is a powerful tool that allows developers to create and customize exceptions that provide clear, concise, and detailed error messages. With the ability to include payloads, these exceptions can be used to aid in debugging and error tracking, ensuring that developers can quickly and effectively resolve any issues that arise in their applications.InstallationBasic:pip install matter-exceptionsWith FastAPI Support:pip install matter-exceptions[fastapi]Getting StartedRaise an API Exception:frommatter_exceptions.exceptions.apiimportConflictErrorraiseConflictError(description="test",detail="any payloads, including dicts or objects")Raise a Fast API Exception:frommatter_exceptions.exceptions.fastapiimportNotFoundErrorraiseNotFoundError(description="test")Raise a Detailed Exception:frommatter_exceptions.exceptions.generalimportAuthenticationFailedErrorraiseAuthenticationFailedError(description="test")ContributingMake sure you have all supported python versions installed in your machine:3.103.11Install hatch in your systemhttps://hatch.pypa.io/latest/install/Create the environmenthatch env createDo your changes...Run the testshatch run testThe command above will run the tests against all supported python versions
installed in your machine. For testing in other operating system you may use the
configured CI in github.Bump a new versionIn general, you just need to execute:hatch versionThis command will update the minor version. i.e.:
No breaking changes and new feature has been addedWe are usingsemantic version, if you are doing a bug fix:hatch version fix
Package: matter-golem
Golem: An algorithm for robust experiment and process optimizationGolemis an algorithm for robust optimization. It can be used in conjunction with any optimization algorithms or
design of experiment strategy of choice.Golemhelps identifying optimal solutions that are robust to input uncertainty,
thus ensuring the reproducible performance of optimized experimental protocols and processes. It can be used to analyze
the robustness of past experiments, or to guide experiment planning algorithms toward robust solutions on the fly. For
more details on the algorithm and its behaviour please refer to thepublicationand
thedocumentation.InstallationGolemcan be installed withpip:pip install matter-golemDependenciesThe installation requires:python >= 3.7numpyscipy >= 1.4pandasscikit-learnCitationGolemis research software. If you make use of it in scientific publications, please cite the following article:@misc{golem,
      title={Golem: An algorithm for robust experiment and process optimization}, 
      author={Matteo Aldeghi and Florian Häse and Riley J. Hickman and Isaac Tamblyn and Alán Aspuru-Guzik},
      year={2021},
      eprint={2103.03716},
      archivePrefix={arXiv},
      primaryClass={math.OC}
      }LicenseGolemis distributed under an MIT License.
Package: matterhook
Simply send messages to your Mattermost team usingincoming webhooks.Getting the API keyLogin to your Mattermost team site and go toAccount Settings -> IntegrationsNext toIncoming WebhooksclickEditSelect the channel or private group to receive webhook payloads, then clickAddto create the webhookThe API key is the last part of the URL (eg: u2x8rkfugj8zbqby9pw3huqnyc)UsageBasic usagematterhookis very simple and efficient to use:frommatterhookimportWebhook# mandatory parameters are url and your webhook API keymwh=Webhook('https://mattermost.MYCOMPANY.com','API_KEY')# send a message to the API_KEY's channelmwh.send('coconut webhook message')Advanced usagefrommatterhookimportWebhook# mandatory parameters are url and your webhook API keymwh=Webhook('https://mattermost.MYCOMPANY.com','API_KEY')# personalized bot name and iconmwh.username='cocobot'mwh.icon_url='http://3.bp.blogspot.com/-bEcLJDp_u7o/UJKPRGazv6I/AAAAAAAABGY/75z_6bbegao/s1600/coconut-oil-alzheimers-study.jpg'# send a message to the specified channelmwh.send('coconut is da thruth',channel='special_channel')# override the username for this messagemwh.send('secret message',channel='special_channel',username='secret_user')# for convenience, you can also do this...mwh['incredible_channel']='incredible message'# ...and even thismwh['incredible_channel']={'text':'incredible message',username='incredible user'}# or create fancy messages using attachments (https://docs.mattermost.com/developer/message-attachments.html)attachments=[]message={}message['color']='#88fc03'message['image_url']='https://about.mattermost.com/wp-content/uploads/2017/08/Mattermost-Logo-Blue.svg'message['fallback']='A fallback message'markdown_msg='#### Title\n'markdown_msg+='This is a line of text\n'markdown_msg+='All markdown syntax works in attachments, like tables :\n'markdown_msg+='''
| name                               |   date |
|------------------------------------|--------|
| Monty Python and the Holy Grail    |   1975 |
| Monty Python's Life of Brian       |   1979 |
| Monty Python's The Meaning of Life |   1983 |
'''message['text']=markdown_msgattachments.append(message)mwh.send(attachments=attachments)
Package: matterllo
What is Matterllo ?===================.. image:: https://readthedocs.org/projects/matterllo/badge/?version=latest:target: http://matterllo.readthedocs.org/en/latest/?badge=latest:alt: Documentation StatusSimple integration between Trello and Mattermost: send Trello activity notifications to Mattermost channels.. image:: examples/matterllo.pngDocumentation=============`Here <http://matterllo.readthedocs.org/en/latest/index.html>`_Quick Start===========`Here <http://matterllo.readthedocs.org/en/latest/usage.html>`_
Package: mattermost-api-reference-client
mattermost-api-reference-clientA client library for accessing Mattermost API ReferenceGenerated using the awesomeopenapi-python-clientusing
the schema provided on themattermost api docs.Should provide correct signatures for endpoint calls and correct type hinting for all response models.
Auto-completion works like a charm in pycharm (pun intended), and probably other editors.UsageFirst, create a client:frommattermost_api_reference_clientimportClientclient=Client(base_url="https://mattermost.example.com/api/v4")If the endpoints you're going to hit require authentication, useAuthenticatedClientinstead.
Get your token either by using theusers.loginendpoint or by grabbing theMMAUTHTOKENfrom
a web session, using the "storage" tab of developer console to inspect cookies.frommattermost_api_reference_clientimportAuthenticatedClientclient=AuthenticatedClient(base_url="https://mattermost.example.com/api/v4",token="MMAUTHTOKEN_VALUE")Now call your endpoint and use your models:frommattermost_api_reference_client.modelsimportUserfrommattermost_api_reference_client.api.usersimportget_userfrommattermost_api_reference_client.typesimportResponsemy_data:User=get_user.sync("me",client=client)# or if you need more info (e.g. status_code)response:Response[User]=get_user.sync_detailed("me",client=client)Or do the same thing with an async version:my_data:User=awaitget_user.asyncio(client=client)response:Response[User]=awaitget_user.asyncio_detailed(client=client)By default, when you're calling an HTTPS API it will attempt to verify that SSL is working correctly. Using certificate verification is highly recommended most of the time, but sometimes you may need to authenticate to a server (especially an internal server) using a custom certificate bundle.client=AuthenticatedClient(base_url="https://internal_api.example.com",token="MMAUTHTOKEN_VALUE",verify_ssl="/path/to/certificate_bundle.pem",)You can also disable certificate validation altogether, but beware thatthis is a security risk.client=AuthenticatedClient(base_url="https://internal_api.example.com",token="MMAUTHTOKEN_VALUE",verify_ssl=False)Things to know:Every path/method combo becomes a Python module with four functions:sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut async instead of blockingasyncio_detailed: Likesync_detailedbut async instead of blockingAll path/query params, and bodies become method arguments.If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)Any endpoint which did not have a tag will be inmattermost_api_reference_client.api.defaultSimilar tohttps://github.com/Vaelor/python-mattermost-driverhttps://pypi.org/project/mattermost/
Package: mattermost_log_handler
Python log Handler that posts to a Mattermost channel. Post to
Mattermost usingIncoming
Webhooks.
Inspired byhttps://github.com/mathiasose/slacker_log_handlerand
others slack logsMattermost Log Handler use asyncio to generate requests non-blocking.exc_infois sent as a attachmentsMattermost don’t supporticon_emojias slack, maybe change icon_url
to icon with differents levels of warnings, using /static/emoji as url
Package: mattermost-notify
mattermost-notifyThis tool is desired to post messages to a mattermost channel.
You will need a mattermost webhook URL and give a channel name.Table of ContentsInstallationRequirementsInstall using pipUsageLicenseInstallationRequirementsPython 3.7 and later is supported.Install using pippip 19.0 or later is required.You can install the latest stable release ofmattermost-notifyfrom the Python
Package Index (pypi) using [pip]python3 -m pip install --user mattermost-notifyUsagePrint a free text message:mnotify-git <hook_url> <channel> --free "What a pitty!"Print a github workflow status:mnotify-git <hook_url> <channel> -S [success, failure] -r <orga/repo> -b <branch> -w <workflow_id> -n <workflow_name>LicenseCopyright (C) 2021-2022 Jaspar StachLicensed under theGNU General Public License v3.0 or later.
Package: mattermost-post-utils
mattermost-utilsRequirementspip package managerpython version 3.8Deployment on LinuxClone project on your local machinegit clone https://gitlab.tech.orange/dtrs-security/devops/mattermost-utils.gitUsageBuildMake sure you have the latest versions of setuptools and wheel installed:python3 -m pip install --user --upgrade setuptools wheelNow run this command from the same directory where setup.py is located:python setup.py sdist bdist_wheelThis command should output a lot of text and once completed should generate two files in the dist directory:dist/
  mattermost_post_utils-0.0.1-py3-none-any.whl
  mattermost_post_utils-0.0.1.tar.gzUploading the distribution archivesThe first thing you’ll need to do is register an account onPyPINow you’ll create a PyPIAPI tokenso you will be able to securely upload your project.
Go tohttps://test.pypi.org/manage/account/#api-tokensand create a newAPI token;
don’t limit its scope to a particular project, since you are creating a new project.Don’t close the page until you have copied and saved the token — you won’t see that token again.Now that you are registered, you can use twine to upload the distribution packages. You’ll need to install Twine:python3 -m pip install --user --upgrade twineOnce installed, run Twine to upload all of the archives under dist:python3 -m twine upload dist/*You will be prompted for a username and password. For the username, usetoken. For the password, use the token value, including the pypi- prefix.After the command completes, you should see output similar to this:Uploading distributions to https://pypi.org/legacy/
Enter your username: __token__
Enter your password: <your_token>
Uploading example_pkg_YOUR_USERNAME_HERE-0.0.1-py3-none-any.whl
100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s]
Uploading example_pkg_YOUR_USERNAME_HERE-0.0.1.tar.gz
100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s]Once uploaded your package should be viewable on TestPyPI,
for example,https://pypi.org/project/example-pkg-YOUR-USERNAME-HEREInstalling your newly uploaded packageYou can use pip to install your package and verify that it works.python3 -m pip install --no-deps example-pkg-YOUR-USERNAME-HERE
Package: matter-persistence
matter-persistenceTable of ContentsInstallationLicenseInstallationpip install matter-persistenceWith migration supportpip install matter-persistence[database-migration]With postgres supportpip install matter-persistence[database-postgres]With cache supportpip install matter-persistence[cache]With memcached supportpip install matter-persistence[cache-memcached]UsageFirst you need to configure your database.frommatter_persistence.databaseimportDatabaseConfigdb_config=DatabaseConfig(connection_uri="sqlite:///test.db")Then you need start the DatabaseClientfrommatter_persistence.databaseimportDatabaseConfig,DatabaseClientdb_config=DatabaseConfig(connection_uri="sqlite:///test.db")DatabaseClient.start(db_config)One now have two options:Create ORM modelsUse the sqlalchemy connection directlyORM modelsfrommatter_persistence.databaseimportDatabaseBaseModelfromsqlalchemyimportColumn,Integer,StringclassExampleModel(DatabaseBaseModel):__tablename__="example"id=Column(Integer,primary_key=True)name=Column(String)asyncdefan_async_function():example=ExampleModel(name="test")awaitexample.save()If you need to define a different schema or namespace for your class you can do:frommatter_persistence.databaseimportDatabaseBaseModelfromsqlalchemyimportColumn,Integer,StringclassExampleModel(DatabaseBaseModel):__tablename__="example"__table_args__={"schema":"some_schema"}id=Column(Integer,primary_key=True)name=Column(String)sqlalchemy connection directlyfrommatter_persistence.databaseimportget_or_reuse_connectionimportsqlalchemyassaasyncdefanother_sync_function():asyncwithget_or_reuse_connection()asconn:awaitconn.execute(sa.text("SELECT 1"))MigrationsOne may use the commandmigrationsto create and apply migrations.First you need to configure you database client:frommatter_persistence.databaseimportDatabaseConfigdb_config=DatabaseConfig(connection_uri="sqlite:///test.db",migration={"path":<apathtoyourmigrationsfolder>,"models":[<alistoffullqualifiedclasspathofyourORMmodels>]})If models is an empty array, or you don't have changed the models, the command will create an empty migration
and you can customize it.Then you can use the commandmigrationsto create and apply migrations. You must provide the full qualified
python path to your configuration instancemigrations create --config python.path.to.your.db_config.instance --message <migration name>Then apply it, You must provide the full qualified  python path to your configuration instance:migrations apply --config python.path.to.your.db_config.instanceSchema supportIf you need deal with schemas in your database, you can define one for you versions:frommatter_persistence.databaseimportDatabaseConfigdb_config=DatabaseConfig(connection_uri="sqlite:///test.db",migration={"path":<apathtoyourmigrationsfolder>,"models":[<alistoffullqualifiedclasspathofyourORMmodels>]},"version_schema":"another_schema")However, the autogenerated migrationsmustbe manually edited.Contributingfor contributions, check theCONTRIBUTING.mdfile
Package: mattersend
CLI tool to send messages to the Incoming webhook of mattermost (http://www.mattermost.org/).Helpusage: mattersend [-h] [-V] [-C CONFIG] [-s SECTION] [-c CHANNEL] [-U URL]
                  [-u USERNAME] [-i ICON] [-t [DIALECT] | -y SYNTAX] [-n]
                  [-f FILE]

Sends messages to mattermost's incoming webhooks via CLI

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -C CONFIG, --config CONFIG
                        Use a different configuration file
  -s SECTION, --section SECTION
                        Configuration file section
  -c CHANNEL, --channel CHANNEL
                        Send to this channel or @username
  -U URL, --url URL     Mattermost webhook URL
  -u USERNAME, --username USERNAME
                        Username
  -i ICON, --icon ICON  Icon
  -t [DIALECT], --tabular [DIALECT]
                        Parse input as CSV and format it as a table (DIALECT
                        can be one of sniff, excel, excel-tab, unix)
  -y SYNTAX, --syntax SYNTAX
  -n, --dry-run, --just-print
                        Don't send, just print the payload
  -f FILE, --file FILE  Read content from FILE. If - reads from standard input
                        (DEFAULT: -)Configuration fileThe only required option to start sending messages to mattermost is the webhook url.
You can either set this in a configurations file (globally in/etc/mattersend.confor locally in$HOME/.mattersend.conf) or specify it on the CLI with the –url argument.You can have multiple sections to override DEFAULT settings and later select them from the CLI with the –section argument.This is an example of a configuration file for mattersend:[DEFAULT]
url = https://mattermost.example.com/hooks/XXXXXXXXXXXXXXXXXXXXXXX
icon = :ghost:
username = This is a bot
channel = @myself

[angrybot]
icon = :angry:
username = AngryBotExample usageecho "Hello world!" | mattersend -U https://mattermost.example.com/hooks/XXX

# you can omit -U with mattersend.conf
echo "Hello world!" | mattersend

# send file content
mattersend -f todo.txt

# table data
echo -e "ABC;DEF;GHI\nfoo;bar;baz" | mattersend -tLICENSECopyright (c) 2016 Massimiliano Torromeomattersend is free software released under the terms of the BSD license.See the LICENSE file provided with the source distribution for full details.ContactsMassimiliano Torromeo <massimiliano.torromeo@gmail.com>
Package: mattes-allegro-pl
Supports both Rest and SOAP APIsUsage:import allegro_pl
cs = ClientCodeStore('CLIENT ID','CLIENT SECRET')
ts = TokenStore('ACCESS TOKEN','REFRESH TOKEN)

auth = ClientCredentialsAuth(cs, ts)
allegro = allegro_pl.Allegro(auth)

rest_service = allegro.rest_service()

categories = rest_service.get_categories(cat_id)

# access to soap service
soap_service = allegro.soap_service()

# direct access to rest and soap clients:
rest_service = allegro.rest_client()
soap_client = allegro.soap_client()
Package: mattes-dada
Matte's DadaSemi-random text generator using Markov chainsUsagemdadainput_filewhere input_file is a path to either a txt ot odt file.Example output:the emancipation proclamation, the phrase goes, thirty, when, as the principal insurgent army, could not whether they ask the white, the new louisiana
now, and means of constituency, reached, and yet been my duty to some supposed to my own opinion whether these, the arms of louisiana, a national constitution, whenever i shall treat with it
if we, as before stated
we say this i abstain from any professed emancipationist, adopted a new state, and each state government for him, civil and inflexible plan
i shall sooner by sustaining it