Saravanan666/pypi-org huggingface dataset:
Package: python-mango
A Simple wrapper module for Mongo sit on top of PyMongo.InstallationTo installmangolib:pip installpython-mango.UsageTo import module:import mango.Sample:importmangouri="mongodb://user:pwd@localhost:port/database"mango.init_db(uri)# To get database objectdb=mango.mgdb# To get table objectmytable=mango.get_table('mytable')# Select rowsrows=mango.select('mytable')rows=mango.select('mytable',{"qty":{"$gt":4}})# Insertmango.insert('mytable',dict(name='Aung Aung'))# Update_filter=dict(id=1234)_value=dict(mark=80)mango.update('mytable',_filter,_value)_value={"$set":{"name":"Tun Aung"},"$push":{"marks":{"english":60}}}mango.update('mytable',_filter,_value)# Delete_filter=dict(id=456)mango.delete('mytable',_filter)Availabe functionsinit_dbget_tableselectinsertupdatedeleteinit_dbTo initialize MongoDb Connection.Parameter:uri: MongoDb URIget_tableGet the MongoDb Table object.Parameter:table_name: Table nameselectQuery record(s) from table.Parameters:table_name: Table name_filter: MongoDb filter objectis_many: Usefindorfind_one. Default isFalsewhich
meansfind_onewill be used.**kwargs:KwArgswhich will be pass to pymongo functioninsertInsert record(s) to table.Parameters:table_name: Table name_value: Value that will be insertedis_many:insert_oneorinsert_many. Default isFalse(meansinsert_one).**kwargs:KwArgswill be pass to pymongo functionupdateUpdate record(s) to table.Parameters:table_name: Table name_filter: MongoDb filter object_value: Value that will be updatedis_many:update_oneorupdate_many. Default isFalse(meansupdate_one)._operation: MongoDb update operation. Default is$set.**kwargs:KwArgswill be pass to pymongo function.deleteDelete record(s) to table.Parameters:table_name: Table name_filter: MongoDb filter objectis_many:delete_oneordelete_many. Default isFalse(meansdelete_one).**kwargs:KwArgswill be pass to pymongo function.
Package: python-manilaclient
Python bindings to the OpenStack Manila APIThis is a client for the OpenStack Manila API. There’s a Python API (themanilaclientmodule), and a command-line script (manila). Each
implements 100% of the OpenStack Manila API.See theOpenStack CLI guidefor information on how to use themanilacommand-line tool. You may also want to look at theOpenStack API documentation.The project is hosted onLaunchpad, where bugs can be filed. The code is
hosted onGithub. Patches must be submitted usingGerrit,notGithub
pull requests.This code is a fork ofCinderclientof Grizzly release and then it was
developed separately. Cinderclient code is a fork ofJacobian’s python-cloudserversIf you need API support for the Rackspace
API solely or the BSD license, you should use that repository.
python-manilaclient is licensed under the Apache License like the rest of
OpenStack.Contents:Command-line APIPython APICommand-line APIInstalling this package gets you a shell command,manila, that you
can use to interact with any Rackspace compatible API (including OpenStack).You’ll need to provide your OpenStack username and password. You can do this
with the--os-username,--os-passwordand--os-tenant-nameparams, but it’s easier to just set them as environment variables:export OS_USERNAME=foouser
export OS_PASSWORD=barpass
export OS_TENANT_NAME=fooprojectYou will also need to define the authentication url either with param--os-auth-urlor as an environment variable:export OS_AUTH_URL=http://example.com:5000/v2.0/Since Keystone can return multiple regions in the Service Catalog, you
can specify the one you want with--os-region-name(orexport OS_REGION_NAME). It defaults to the first in the list returned.You’ll find complete documentation on the shell by runningmanila help, seemanila help COMMANDfor help on a specific command.Python APIThere’s also a complete Python API, but it has not yet been documented.Quick-start using keystone:# use v2.0 auth with http://example.com:5000/v2.0/
>>> from manilaclient.v1 import client
>>> nt = client.Client(USER, PASS, TENANT, AUTH_URL, service_type="share")
>>> nt.shares.list()
[...]License: Apache License, Version 2.0PyPi- package installationOnline DocumentationLaunchpad project- release managementBlueprints- feature specificationsBugs- issue trackingSourceHow to ContributeRelease Notes
Package: python-mano-wrappers
Python MANO Wrappers (PMW)is a python wrapper around the REST API
calls of various MANOs. It is also a standardisation effort to
unify the REST API of various MANOs by enforcing the ETSI SOL005 standard
on API calls. This project is developed as part of the project group SCrAMbLE
at the University of Paderborn for the 5G-PICTURE project.Documentation is available here -ReadtheDocs.Example usage:importwrappersusername="admin"password="admin"mano="osm"# mano = "sonata"host="manosonatademo.com"ifmano=="osm":_client=wrappers.OSMClient.Auth(host)elifmano=="sonata":_client=wrappers.SONATAClient.Auth(host)response=_client.auth(username=username,password=password)print(response)
Package: python-marconiclient
Version:0.1.0Wiki:Marconi WikiLaunchpad:Marconi LaunchpadReview:Code ReviewDesign:Client WikiIRC:#openstack-marconi @ freenodeWelcome to theMarconiClient Python bindings project!Table of ContentsInstallationContributingInstallationUntil this project is onPyPi, the official way to install these bindings are to:pip install git+https://github.com/openstack/python-marconiclient.gitContributingThe primary maintainer of this project is: TBABe sure to reference theHACKINGfile for all the details.
Package: python-markdown-comments
mkdcommentsOriginal plugin was created byryneeverett.APython-Markdownpreprocessor extension to ignore html comments opened by three dashes and any whitespace prior to them. I believe pandoc has similar functionality.<!-- This is a standard html comment which will remain in the output. --><!--- This is a markdown comment which this extension removes. -->Installationpipinstallpython-markdown-commentsExample>>>importmarkdown>>>frompython_markdown_commentsimportCommentsExtension>>>comments=CommentsExtension()>>>markdowner=markdown.Markdown(extensions=[comments])>>>markdowner.convert("""\... blah blah blah  <!--- inline comment -->...... <!---multiline comment... multiline comment... multiline comment-->...... even more text.""")u'<p>blah blah blah</p>\n<p>even more text.</p>'Infrequently Asked QuestionsHow can I write about markdown comments without them being removed?In order to render markdown comments, you must *(a)*use them in an html block (which are not processed as markdown) and *(b)*escape the brackets so the browser won't think they're html comments. E.g.:<pre>&lt;!--- meta markdown comment --&gt;</pre>
Package: python-markdown-graphviz
A Python Markdown extension that replaces inline Graphviz definitins with inline SVGs or PNGs!refer:https://github.com/sprin/markdown-inline-graphvizInstallGraphvizfirst! The command “dot” should be in system PATH.example:{% dot attack_plan.svg
    digraph G {
        rankdir=LR
        Earth [peripheries=2]
        Mars
        Earth -> Mars
    }
%}
Package: python-markdown-maker
Python Markdown MakerPython Objects for MarkdownPython Markdown maker use to write markdown documents in the Pythonic wayInstallation$gitclonehttps://github.com/yogeshwaran01/python-markdown-maker/
$cdpython-markdown-maker/
$python3setup.pyinstallUsageElementsNormal MarkdownPythonic MarkdownHeadings## Pythonheaders('Python', level=3)Images![alt](source)image(src, alt)Links[text](link)links(link, text)Bold**Bold**styled_text(text, bold=True)Italic*Italic*styled_text(text, italic=True)Striketrough~~text~~styled_text(text, strikethrough=TrueInline codesome codeinline_code("some code")Blackquotes> text are superblockquotes('text are super')Code Blockscode_block("print('Hello World!')",lang='python')UnOrdered Listlists(['Python','Javascript','Go','PhP'])-Python-Javascript-Go-PhPOrdered Listlists(['order','Python','Javascript','Go','PhP'])1.Python2.Javascript3.Go4.PhPBoth Ordered & Unorder listlists(['Frontend',['order','Html','Css','Javascript'],'Backend',['order','Python','Postgress']])-Frontend 1. Html 2. Css 3. Javascript-Backend 1. Python 2. PostgressTablest=Table(["Languages","Uses"])t.add_item("Python","ML/AI")t.add_item("Javascript","Web Dev")table=t.render()Languages | Uses

--------- | ----
Python | ML/AI
Javascript | Web DevRenderingfrompython_markdown_makerimport*ou=lists(['Frontend',['order','Html','Css','Javascript'],'Backend',['order','Python','Postgress']])t=Table(["Languages","Uses"])t.add_item(["Python","ML/AI"])t.add_item(["Javascript","Web Dev"])table=t.render()items=lists(['order','Python','Javascript','Go','PhP'])md=Document()md.write([ou,table,items])withopen('code.md','w')asfile:md.render.save_as_md(file)# md.render.save_as_html(file)# md.render.to_html()# md.render.text
Package: python-markdown-math
Math extension for Python-MarkdownThis extension adds math formulas support toPython-Markdown.InstallationInstall from PyPI$ pip install python-markdown-mathInstall locallyUsesetup.py buildandsetup.py installto build and install this
extension, respectively.The extension name ismdx_math, so you need to add that name to your
list of Python-Markdown extensions.
CheckPython-Markdown documentationfor details on how to load
extensions.UsageTo use this extension, you need to includeMathJaxlibrary in HTML files, like:<scripttype="text/javascript"src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>Also, you need to specify a configuration for MathJax. Please note that
most of standard configurations includetex2jaxextension, which is not needed
with this code.Example of configuration for MathJax 2.x:<scripttype="text/x-mathjax-config">MathJax.Hub.Config({config:["MMLorHTML.js"],jax:["input/TeX","output/HTML-CSS","output/NativeMML"],extensions:["MathMenu.js","MathZoom.js"]});</script>If you want to use MathJax 3.x, you need to teach it to understand 2.x-style<script>tags. See theupgrading documentationon how to do it.
Alternatively, you may use theArithmatexextension which has a generic
output mode, that does not require such special configuration.To pass the extension to Python-Markdown, usemdx_mathas extension name.
For example:>>>md=markdown.Markdown(extensions=['mdx_math'])>>>md.convert('$$e^x$$')'<p>\n<script type="math/tex; mode=display">e^x</script>\n</p>'Usage from the command line:$ echo "\(e^x\)" | python3 -m markdown -x mdx_math
<p>
<script type="math/tex">e^x</script>
</p>Math DelimitersFor inline math, use\(...\).For standalone math, use$$...$$,\[...\]or\begin...\end.The single-dollar delimiter ($...$) for inline math is disabled by
default, but can be enabled by passingenable_dollar_delimiter=Truein the extension configuration.If you want to useGitLab-style delimiters($`...`$for inline math,
and a code block-like```math...```syntax for standalone), useuse_gitlab_delimiters=Trueconfiguration option.If you want to this extension to generate a preview node (which will be shown
when MathJax has not yet processed the node, or when JavaScript is unavailable),
useadd_preview=Trueconfiguration option.NotesIf you useReText, this extension
is not needed as it is included by default.This extension also works with Katex.  Use the following in your page<head>:<linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"crossorigin="anonymous"><scriptsrc="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"crossorigin="anonymous"></script><scriptsrc="https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js"defer></script>
Package: python-markdown-mathjax
=====================================MarkJax extension for Python-Markdown=====================================.. note::"\" is a escape character and use "\\" to show "\".TeX or LaTeX============::```markdowninline preprocess : \( E = mc^2 \)display preprocess: $$ E = mc^2 $$display preprocess: \[ E = mc^2 \]```html output::```html<script type="math/tex">E = mc^2</script><script type="math/tex; mode=display">E = mc^2</script>```.. note::"$" is USD unit, so ignore it.AsciiMath=========::```markdownpreprocess: \` E = mc^2 \````html output::```html<script type="math/asciimath; mode=display">E = mc^2</script>```
Package: python-markdown-oembed
# Python Markdown oEmbed[![Build Status](https://travis-ci.org/rennat/python-markdown-oembed.svg?branch=master)](https://travis-ci.org/rennat/python-markdown-oembed)Markdown extension to allow media embedding using the oEmbed standard.## Installationpip install python-markdown-oembed## Usage>>> import markdown
>>> md = markdown.Markdown(extensions=['oembed'])
>>> md.convert('![video](http://www.youtube.com/watch?v=zqnh_YJBvOI)')
u'<iframe width="459" height="344" src="http://www.youtube.com/embed/zqnh_YJBvOI?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe>'## Links[python-markdown-oembed](https://github.com/rennat/python-markdown-oembed)[Markdown](http://daringfireball.net/projects/markdown/)[oEmbed](http://www.oembed.com/)[python-oembed](https://github.com/abarmat/python-oembed)## LicenseA Public Domain work. Do as you wish.## Changelog### 0.2.1add Slideshare endpoint (thanks to [anantshri](https://github.com/anantshri))### 0.2.0backwards incompatible changesallows arbitrary endpoints ([commit](https://github.com/Wenzil/python-markdown-oembed/commit/1e89de9db5e63677e071c36503e2499bbe0792da))works with modern Markdown (>=2.6)dropped support for python 2.6added support python 3.x
Package: python_markdown-oembed_extension
Python Markdown oEmbedInstallationpip install from python_markdown-oembed_extensionLinkspython_markdown-oembed_extensionMarkdownoEmbedpython-oembedDevelopmentThis project uses flit as packaging tool.Install flitpip install flitBuild needed packages for projectflit installChangelog0.2.1add Slideshare endpoint (thanks toanantshri)0.2.0backwards incompatible changesallows arbitrary endpoints (commit)works with modern Markdown (>=2.6)dropped support for python 2.6added support python 3.x0.3.0Updated version ofpython-markdown-oembedVarious small fixes and code modernizations.
Package: python-markdown-pretty
Code Pretty Extension for Python Markdown=====================================================Adds enhenced code/syntax highlighting to standard Python-Markdown code blocks.## Installation```shpip install python-markdown-pretty```## UsageTo use (with caution), simply do:```pythonimport markdowncode = r'''```cint main(int argc, char* argv[]) {return 0;}```'''md = markdown.Markdown(extensions=['pretty'])print md.convert(code)```
Package: python-marketing-research
Python for Marketing Research and AnalyticsThis package contains all of the data files, notebook files, and code modules the support the bookGetting startedWe recommend using pip to install, allowing the functions from the chapters to be easily importedpip3 install python_marketing_researchThe chapter modules, which contain all the functions defined in each chapter, are under /modules.Once installed, the function for a given chapter can be imported:from python_marketing_research_functions import chapter2

adder = chapter2.Adder(3, 4)The data files are under /data and Notebooks are under /notebooks. These are not included in the pip package.
Package: python-marketman
Python Marketman is a basic marketman.com REST API client built for Python 3.6, 3.7 and 3.8. The goal is to provide a very low-level interface to the REST Resource, returning a dictionary of the API JSON response.You can find out more regarding the format of the results in theOfficial Marketman.com REST API DocumentationRequirementsPython: 3.6, 3.7, 3.8InstallationInstall with pip, or your preferred package manager:$pipinstallpython-marketmanExamplesTo access your Marketman account, provide your API Key and API Password to your Marketman instance.For example:frompython_marketmanimportMarketmanmm=Marketman(api_key='',api_password='')InventoryAccess your inventory by calling the relevant method on your Marketman instance:mm.get_items()ItemsAccess your inventory by calling the relevant method on your Marketman instance:mm.get_vendors()Authors & LicenseThis package is released under an open source Apache 2.0 license: Copyright 2020 Lukas Klement. It was inspired by the excellent libraryOfficial Marketman.com REST API Documentation
Package: python-masakariclient
masakariclient module and a CLI tool for masakariPlease fill here a long description which must be at least 3 lines wrapped on
80 cols, so that distribution package maintainers can use it in their packages.
Note that this is a hard requirement.Free software: Apache licenseDocumentation:https://docs.openstack.org/python-masakariclient/latest/Source:https://opendev.org/openstack/python-masakariclientBugs:https://bugs.launchpad.net/python-masakariclientRelease Notes:https://docs.openstack.org/releasenotes/python-masakariclientFeaturesTODO
Package: python-masscan
python-masscanpython-masscan is a python library which helps in using masscan port scanner... image::https://badge.fury.io/py/python-masscan.svg:target:https://badge.fury.io/py/python-masscan.. image::https://img.shields.io/badge/python-2.7|3.7-brightgreen.svg:target:https://www.python.org/.. image::https://img.shields.io/github/issues/MyKings/python-masscan.svg:alt: GitHub issues
:target:https://github.com/MyKings/python-masscan/issues.. image::https://img.shields.io/github/forks/MyKings/python-masscan.svg:alt: GitHub forks
:target:https://github.com/MyKings/python-masscan/network.. image::https://img.shields.io/github/stars/MyKings/python-masscan.svg:alt: GitHub stars
:target:https://github.com/MyKings/python-masscan/stargazers.. image::https://img.shields.io/github/license/MyKings/python-masscan.svg:alt: GitHub license
:target:https://github.com/MyKings/python-masscan/blob/master/LICENSEINSTALL.. code-block:: bash$ pip install python-masscanUSAGE.. code-block:: pythonimport masscanmas = masscan.PortScanner()
mas.scan('172.0.8.78/24', ports='22,80,8080', arguments='--max-rate 1000')
print(mas.scan_result)Result.. code-block:: json{
"command_line": "masscan -oJ - 192.168.1.1 -p 80,1900",
"scan": {
    "192.168.1.1": [
        {
            "status": "open",
            "reason": "syn-ack",
            "ttl": 64,
            "port": 1900,
            "proto": "tcp"
        },
        {
            "status": "open",
            "reason": "syn-ack",
            "ttl": 64,
            "port": 80,
            "proto": "tcp"
        }
    ]
}}ContributorsMatt LebrunGonçalo RibeiroFabian AffolterREFERENCEhttps://bitbucket.org/xael/python-nmap/
Package: pythonmastery-adomas
# Python Mastery @ Turing CollegeIn order to install the package use:pip install pythonmastery-adomasTo import the class Calculator from calculator module use this import:from mastery.calculator import Calculator### Calculator has multiple features:AdditionSubstractionMultiplicationDivisionnth root of a number.Reset memory### Suppose you’ve made a calculator object from the classcalculator = Calculator()Addition:calculator.add(_value_)Substraction:calculator.substract(_value_)Multiplication:calculator.multiply(_value_)Division:calculator.divide(_value_)Root of nth:calculator.root(_n_)Reset memory:calculator.reset()
Package: python-materialsdb
python-materialsdb is an unofficial python library formaterialsdb.organ open format and database for building materials.Features :Packageserialiser.py :from xml : deserialise from materialsdb*.xsd compliant xml fileto xml : serealise classes to a materialsdb*.xsd compliant xml fileclasses.py : generated classes corresponding to XML elementscache.py : cache latest materials data from producersconfig.py : set and get user config as language and countryifc/project_library.py : convert deserialised source into IFC (IfcProjectLibrary)devutilsclasses_generator.py : generate classes (dataclasses except for simple type) for materialsdb*.xsd elementsconfigMaterials data are often localized. You can set your language and country this way:frommaterialsdbimportconfigconfig.set_lang("fr")config.set_country("CH")Note: in materialsdb standard languages areISO 639-1codes and countries areISO_3166-1_alpha-2codes.Usage examples :Check out someexamples:Convert lastest materials data to ifcCreate your own materialsdb.org compliant XMLHow to installUsing pippipinstallpython-materialsdbDependencieslxml(BSD) : xml parserifcopenshell(LGPL) : ifc read/writeThird parties :materialsdb.org(GPL) : materials schema
Package: python-mathematics-exercises-generator
python-mathematics-exercises-generatorAdd a short description here!A longer description of your project goes here…Making Changes & ContributingThis project usespre-commit, please make sure to install it before making any
changes:pip install pre-commit
cd python-mathematics-exercises-generator
pre-commit installIt is a good idea to update the hooks to the latest version:pre-commit autoupdateDon’t forget to tell your contributors to also install and use pre-commit.NoteThis project has been set up using PyScaffold 4.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: python-matrixbot
python-matrixbotA Python module meant to act as a base class for aMatrixbot.CompatibilityPython 3.6+Installationpip install python-matrixbotUsageThe MatrixBot class will connect to the Matrix server, start a listener on each joined
room, and listen for room invites from other users. It also includes helper methods you
can use to extend the functionality. It is built on theMatrix Python SDKwhich can be
directly accessed viaMatrixBot.clientfrom matrixbot import MatrixBot

# create a new bot
bot = MatrixBot(
    host="example.com",
    display_name="Example Bot",
    token=access_token,
    user_id="@bot:example.com"
)
# run forever
bot.start()Get a list of joined rooms:room_ids = bot.rooms.keys()
room_objects = bot.rooms.values()Leave abandoned 1-on-1 roomsfor room in bot.rooms.values():
    bot.leave_if_empty(room)Cache results from external API callsTo prevent abuse of commands that rely on external API calls, MatrixBot includes a
very basic caching mechanism. Wrap all API calls inMatrixBot.fetch()to return
cached results and automatically refresh stale data.def get_url(url):
  return response.get(url)

result = bot.fetch(
    "cache_key", lambda: get_url("https://example.com"), timeout=900
)By default the module uses an in-memory cache which is lost between restarts. To create
a persistent cache provide the constructor with the path to a sqlite database:bot = MatrixBot(
    ...
    cache_db="/path/to/sqlite_database"
)Sub-classingCreate a subclass to extend and override default featuresclass MyBot(MatrixBot):
    # override `process_message()` to filter/parse/react to room events:
    def process_message(self, room, event):
        # say hello when a user joins the room
        if event["type"] == "m.room.member":
            if event["content"]["membership"] == "join":
                self.say(room, "Hello!", mention=event["sender"])

    # override `accept_invite()` to disable auto-join:
    def accept_invite(self, room_id):
        pass

bot = MyBot(...)LicenseMITMaintainerBrian Óblacksam@gibberfish.orgContributions welcome.About GibberfishGibberfish, Inc is a volunteer nonprofit that develops free tools to promote online
privacy for activists and regular people alike. If you like this module and decide to
use it in your project, please consider donating $1 to help keep us going. Thanks!https://gibberfish.org/donate/
Package: pythonmatsim
Python API for MATSimThis is a Python API to interact with the MATSim Software.
It is mostly meant for teaching MATSim to non-programmers without loosing too much
of the ability to configure, modify and analyse MATSim runs.InstallationPipTo install the package usingpip, simply run the following:# The installation procedure requires numpy to be available,
# so you have to install it first if not already available
pip install numpy
pip install --no-binary JPype1 JPype1
pip install pythonmatsimCondaComing soon!RoadmapThis is a wish-list of what should be there by Fall 2019:Fast (enough) event handlingFast (enough) data manipulationGood enough IDE support for scenario and configDeploy to PyPiDeploy to conda-forgeChangelogNext version - unreleased0.1.2 - 2019-08-26fix additional problems with distribution0.1.1 - 2019-08-26fix distribution of stub files (type hints)0.1.0 - 2019-08-26static type hints for all java classesprotocol-buffer based event communication