Saravanan666/pypi-org huggingface dataset:
Package: mdx-alerts
Boostrap alerts extension for Python-MarkdownThis extension adds bootstrap alerts support toPython-Markdown.InstallationInstall from PyPI$ python -m pip install mdx_alertsInstall locally using poetryUsepoetry buildto build the extensions.
Then, you can install it via pip:$python-mpipinstalldist/mdx_alerts-1.0.0-py3-none-any.whlUsageThere are two different ways to use the extensions.
Either, by using its identifiermdx_alerts:>>>importmarkdown>>>md=markdown.Markdown(extensions=["mdx_alerts"])... or by supplying an instance ofAlertExtension:>>>importmarkdown>>>frommdx_alertsimportAlertExtension>>>md=markdown.Markdown(extensions=[AlertExtension()])Markdown pattern and customizationThe pattern starts with two colons follows by the alert level, e.g. info.
Everything after the newline character is counted towards the alert message/body until on an empty line the two colons appear again.:: info
This is the body.

Even multi-line is possible.
::The above snippet results in:<divclass="alert alert-info"role="alert"><h4class="alert-heading"><strong>Info</strong></h4><p>This is the body.</p><p>Even multi-line is possible.</p></div>Additionally, you can overwrite the default heading by supplying an alternative via theheading=attribute after the alert level::: info heading="Alternative Heading"
This is the body.
::... which results in:<divclass="alert alert-info"role="alert"><h4class="alert-heading"><strong>Alternative Heading</strong></h4><p>This is the body.</p></div>
Package: mdx_attr_cols
mdx_attr_colsA Markdown extension to add support for Bootstrap 3 rows and columns.Licensed under theISC License.RequirementsThe mdx_attr_cols plugin requires the following additional Markdown
plugins:attr_list(built-in to the markdown library)mdx_outlineInstallationInstall withpip install mdx_attr_cols.DocumentationAllows creating bootstrap container rows and columns using section
attributes as provided by the attr_list and mdx_outline extensions.Markdown example:Header 1 {: cols=6 }====================Some paragraphs go here.Header 2 {: cols=2 }====================More paragraphs go here.Header 3 {: cols=4 }====================Final column.Header 4========This is not in a row or column.Python usage:md=markdown.Markdown(extensions=['mdx_outline','attr_list','attr_cols',],extension_configs={'attr_cols':{'columns':12,'attr':'cols','tags':['section'],}})Configuration options:columns: Number of columns in a row. Default is12.tags: List of HTML tags to look for attributes on. Default is['sections'].attr: Name of column width attribute. Default is'cols'.
Package: mdx_audio
Python Markdown Audio Extension===========![caniusepy3](https://caniusepython3.com/check/a889a646-f7ac-46c1-8c62-f95e8a359aae.png)A markdown extension that generates `<audio>` tags### Usage::audio[your optional title](/your/song.mp3)::audio[your optional title](/your/song.mp3 /your/other-song.ogg)a markdown post---title: "my title"content_type: "micro_post"published: yes---Audio tag test::audio[title](/static/uploads/notification.mp3)
Package: mdx-breakless-lists
Breakless Lists Markdown ExtensionUse lists without requiring a line break above them, as inGitHub flavoured markdown.This markdown:This text comes before the list
- list item 1
- list item 2renders as this HTML:<p>This text comes before the list</p>
<ul>
<li>list item 1</li>
<li>list item 2</li>
</ul>Installationpip install mdx-breakless-listsUsagefrommarkdownimportmarkdownhtml=markdown(text,extensions=['mdx_breakless_lists'])
Package: mdx_collapse
Allow the definition of collapsible blocks in Markdown.Generated code is designed for compatibility withBootstrap.Based on the official Admonition extension.UsageBlocks starting with<<<will start collapsed, blocks
starting with>>>will start uncollapsed.Syntax:<<< [<Panel Id>] "<Panel Title>"
    Paragraph1

    Paragraph2or>>> [<Panel Id>] "<Panel Title>"
    Paragraph1

    Paragraph2Example<<< "Collapsible stuff"
    * Stuff 1
    * Stuff 2
    * Stuff 3
    * Stuff 4becomes<divclass="panel panel-default panel-collapsible"><divclass="panel-heading"><adata-toggle="collapse"data-target="#collapse1"/></div><divid="collapse1"class="panel-body collapse in"><ul><li>Stuff 1</li><li>Stuff 2</li><li>Stuff 3</li><li>Stuff 4</li></ul></div></div>
Package: mdx_embedly
A Python-Markdown extension for embeded url usingEmbedly.[https://github.com/yymm/mdx_embedly:embed]becomes<p>
<a class="embedly-card" href="https://github.com/yymm">embed.ly</a>
<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>
</p>Installation$ pip install mdx_embedlyUsageimportmarkdown# "source"html=markdown.markdown(source,extensions=['embedly'])Usage for PelicanMD_EXTENSIONS=['embedly']In pelicanconf.py.
Package: mdxflavours
Available extensionsAt the moment 2 extensions available:autobr - for converting line breaks to br-tagsautolink - for automatically converting urls to linksInstallationGet source fromGitHub:$ git clone git://github.com/05bit/python-mdxflavours.gitand add mdxflavours to PYTHONPATH:$ export PYTHONPATH=$PYTHONPATH:$(pwd)/mdxflavours/or:$ cd mdxflavours
$ python setup.py installNote: importing packagemdxflavoursautomatically adds required
path to system paths.UsageExample for auto line breaks:>>> import markdown
>>> markdown.markdown(u'And may the force  \nbe with you!') # no extension
>>> u'<p>And may the force<br />\nbe with you!</p>'
>>> markdown.markdown(u'And may the force\nbe with you!', extensions=['autobr'])
>>> u'<p>And may the force<br />\nbe with you!</p>'
Package: mdx-google-map
markdown-google-mapPython markdown extension for Google Maps. Should beloaded as an extensionto themarkdown library.Installation:pip install mdx-google-mapUsage:importmarkdownmd=markdown.Markdown(extensions=["mdx_google_map"])md.convert("[map:Central Paris]")Or if you want to alter the config:importmarkdownfrommdx_google_mapimportGoogleMapExtensionmd=markdown.Markdown(extensions=[GoogleMapExtension(...configvalues...)])md.convert("[map:Central Paris]")Markdown syntax:It's pretty simple:Hey look at my map!
[map:City of London]Which will output:<p>Hey look at my map!<iframeallowfullscreen="true"frameborder="0"height="300"src="//www.google.com/maps/embed/v1/place?key=AIzaSyD5DlGo1lo0V2Np7TxfpuNuWbWcr5TV8Sw&amp;q=City+of+London"width="500"></iframe></p>Configuring:You will need an API Key from Google to use the Maps APIs, once obtained it can
be configured as an environment variable:$ export GOOGLE_API_KEY=MyGoogleAPIKey1234or simply passed through to the extension as with any other config:GoogleMapExtension(google_api_key='MyGoogleAPIKey1234')You can also load the API key by passing a callable that conforms to the same
syntax as dict.get('KEY', 'default value'). This is more of an
implementation detail, but it is supported if you find the need.my_dict={'GOOGLE_API_KEY':'MyGoogleAPIKey1234'}GoogleMapExtension(config_getter=my_dict.get)Explicitly passing the google_api_key config param takes precedence over other
methods of setting the API Key.All other config is optional and detailed belowConfig is passed through when loading the extension as with the API Key example
above:GoogleMapExtension(width='500', height='400', ...)width: Sets width of iframe. Default is 500height: Sets height of iframe. Default is 300fluid: If True the iframe will be wrapped in a styled outer div set to 100%
width. This will make the iframe expand to full width of the page (or any
other container you put it in) fluidly, whilst maintaining the same aspect
ratio. Default is False.ContributingPull requests are welcome, though we'd be grateful if you would
open an issue to discuss your feature/bugfix first.To install the development dependencies locally it's:$ pip install -e .[dev]To run the tests it is just:$ python -m unittestYou'll need to follow PEP8 in addition to theGoogle Python Style Guide.Sensible deviations from the above will be considered.
Package: mdx-journal
Extend Python Markdown with thegthnkjournal annotation format.  With this extension installed, all datestamps and timestamps will be rendered as headings.Installationpip install mdx-journalDocumentationPlease seethe Readme file on github.An exampleFirst, let’s look at a journal entry without this custom markup.>>> from markdown import markdown
>>> text = "2013-12-16\n\n1620\n\nThis is the first entry\n1621\n\nAnd this is the second entry"
>>> markdown(text)
u'<p>2013-12-16</p>\n<p>1620</p>\n<p>This is the first entry\n1621</p>\n<p>And this is the second entry</p>'Now let’s look at a journal entry with journal markup applied.  You will see that dates and times are now wrapped in heading tags.>>> markdown(text, extensions=["journal"])
u'<p><h3>2013-12-16</h3></p>\n<p><h4>1620</h4></p>\n<p>This is the first entry\n<h4>1621</h4></p>\n<p>And this is the second entry</p>'Sourcehttps://github.com/iandennismiller/mdx_journalLicenseMIT License.
Package: mdx-link2md
Mdx Link2MD: Convert markdown to HTML in batchThis extension forPython Markdownchangesmdextension in the markdown links tohtmlbefore links in the text
are converted to HTML hyperlinks. For example, the sample text in markdown format,Please read [help](../read.md)would be converted toPlease read<ahref="../read.html">help</a>.This would allow converting markdown files to HTML format in batch,
with internal links to markdown files being updated to the corresponding HTML files. It
helps most when there are cross references among the markdown documents of
interest.InstallationThe project is onPyPI!$pipinstallmdx_link2mdIf you want the latest version, which might include unreleased-to-PyPI code,
you can always grab thedevelopbranch directly from Git.$pipinstallgit+git://github.com/scyu16/mdx_link2md.gitUsageAs A Utility ScriptThe package can run as a top-level script to convert the multiple markdown files in batch:$python-mmdx_link2md<files_to_be_converted>The converted files are placed in the same directory as the source files with the same
names ofhtmlextension.As A ModuleIf more flexibility is desired, the package could be used as aPythonmodule.frommarkdownimportmarkdownfrommdx_link2md.markdownlinksimportMarkdownLinkExtensionmd=markdown.Markdown(output_format='html5',extensions=[MarkdownLinkExtension(ignore_url=False)])md.convertFile('input_file',output='output_file',encoding='utf-8')Please see__main__.pyfor the source code of the
script that makes the module work as a utility, as described in the preceding subsection.Configuration SettingsThe only setting for the extension isignore_url, with aTruedefault value.
Whenignore_urlisFalse, markdown links to none local files are also updated:ignore_urlinputoutputTrue[help](http://xyz.com/read.mD)<a href="http://xyz.com/read.mD">help</a>False[help](http://xyz.com/read.mD)<a href="http://xyz.com/read.html">help</a>Note:1. If the package is run as a utility script, `ignore_url` is set to `True`.
2. The package is case insensitive to the `md` file extension in either usage.Developmentdevelopbranch holds the latest stable code. Please create branches offdevelopbranch for any changes or enhancement. It's suggested you first create a virtual
environment and activate it, then:$gitclonegit@github.com:scyu16/mdx_link2md.git. For Python 2.x,$pipinstall-rrequirements/python2.txt, while for Python 3.x,$pipinstall-rrequirements/python3.txtWith this being done,import mdx_link2mdwould pick up any local changes made to
the package.TODOMake it work for links in other formsFix circle ci for publishing to PyPi
Package: mdx-linkify
Mdx LinkifyThis extension forPython Markdownwill convert text that look like links to HTML anchors.There's an alternative package that serves the same purpose calledmarkdown-urlize. The main
difference is thatmdx_linkifyis
utilizing the excellentbleachfor
searching links in text. :clap:UsageMinimal Examplefrommarkdownimportmarkdownmarkdown("minimal http://example.org/",extensions=["mdx_linkify"])# Returns '<p>minimal <a href="http://example.org/">http://example.org/</a></p>'InstallationThe project ison PyPI!pip install mdx_linkifyIf you want the bleeding-edge version (this includes unreleased-to-PyPI code),
you can always grab the master branch directly from Git.pip install git+git://github.com/daGrevis/mdx_linkify.gitConfiguring LinkerTo configure used Linker instance, uselinker_optionsparameter. It will be passed tobleach.linkifier.Linkerunchanged.Example: Parse Emailsfrommdx_linkify.mdx_linkifyimportLinkifyExtensionfrommarkdownimportMarkdownmd=Markdown(extensions=[LinkifyExtension(linker_options={"parse_email":True})],)assertmd.convert('contact@example.com'),'<p><a href="mailto:contact@example.com">contact@example.com</a></p>'Example: Custom TLDsfrommdx_linkify.mdx_linkifyimportLinkifyExtensionfrombleach.linkifierimportbuild_url_refrommarkdownimportMarkdownmd=Markdown(extensions=[LinkifyExtension(linker_options={"url_re":build_url_re(["custom","custom2"])})],)assertmd.convert('linked.custom'),'<p><a href="http://linked.custom">linked.custom</a></p>'Example: Ignoring TLDsfrommdx_linkify.mdx_linkifyimportLinkifyExtensionfrommarkdownimportMarkdowndefdont_linkify_net_tld(attrs,new=False):ifattrs["_text"].endswith(".net"):returnNonereturnattrsmd=Markdown(extensions=[LinkifyExtension(linker_options={"callbacks":[dont_linkify_net_tld]})],)assertmd.convert("not-linked.net"),'<p>not-linked.net</p>'Developmentgit clone git@github.com:daGrevis/mdx_linkify.git
virtualenv mdx_linkify/
cd mdx_linkify/
source bin/activate
python setup.py install
python setup.py testPull requests are much welcome! :+1:Releasing(more like a cheatsheet for me actually)Change version insetup.py,Commit and tag it,Push it (including tag),Runpython setup.py register && python setup.py sdist upload;
Package: mdx-poetic
## Install```pip install mdx_poetic```## Usage````pythonimport markdownfrom mdx_poetic import PoeticExtensionmd = """This is just some normal text that is prose. It might have some _markdown_.```poemthis is aline of a poemand this is _another_stanza of a poem that has a really long line which will wrapand more **markdown** in it```And then this is some **more** markdown that follows."""print(markdown.markdown(md, extensions=[PoeticExtension()]))````Running that will give you an output like this:```html<p>This is just some normal text that is prose. It might have some <em>markdown</em>.</p><p><blockquote class="mdx-poem"><p class="mdx-peom--stanza"><span class="mdx-poem--line">this is a<br></span><span class="mdx-poem--line">line of a poem<br></span></p><p class="mdx-poem--stanza"><span class="mdx-poem--line">and this is <em>another</em><br></span><span class="mdx-poem--line">stanza of a poem that has a really long line which will wrap<br></span><span class="mdx-poem--line">and more <strong>markdown</strong> in it<br></span></p></blockquote></p><p>And then this is some <strong>more</strong> markdown that follows.</p>```But that won't be too useful without the help of some CSS:```css.mdx-poem {margin-top: 1rem;}.mdx-poem--stanza {margin-top: 1rem;}.mdx-poem .mdx-poem--line {margin: 0 0 0 40px;text-indent: -20px;padding: 0;display: block;}```This will give you a nice clean result where `<blockquote class="mdx-poem">` will be indented slightly, you get a line in between stanzas, and any wrapped lines will be indented under the beginning of the line:![example](https://github.com/nickwynja/mdx_poetic/raw/master/example.png)Using `<blockquote>` and `<p>` tags with `<span><br></span>` was chosen intentionally to properly format in console RSS readers like [`newsboat`](https://newsboat.org/). Further testing might be necessary for visual compatibility with other readers as well the above is most accurate syntactically to the intended output.### DevelopentFor pushlishing to PyPi:```python3 setup.py sdist bdist_wheeltwine upload dist/*```
Package: mdx_sections
mdx_sectionsOverviewThis module is an extension toPython-Markdownwhich provides the ability to add a small amount of structure to your Markdown documents.There are two premises underlying the operation of this extension:Each heading element indicates the start of a new document section.Document sections can be nested, and the parent of a document section is the section created by the first preceding heading element with a higher ordere.g.anh2section is contained by the heading block appearing prior to it which corresponds to anh1. If there is no such element, then it is a child of the root element.The new section (a containingdivelement) can be configured to have an specificidandclassattribute. The syntax is:# {id,class} TitleBothidandclassare optional, the contaainingdivelement will always be created as long as this extension is enabled.One example should make this clear. Suppose the following input document is provided:# {resume} Resum&eacute;

## {education} Education
Educational experience

## {experience} Working Experience
Work experience

### {xyz_corp,employer} XYZ Corp.
I worked at XYZ

### {acme_inc,employer} Acme Inc.
I also worked at Acme

## Hobbies
- Cards
- Books
- Dogs

### About _my_ hobbies
My hobbies are great.This would transform to become:<div class="section" id="section_resume">
  <h1 class="title">Resum&eacute;</h1>
  <div class="section" id="section_education">
    <h2 class="title">Education</h2>
    <p>Educational experience</p>
  </div>
  <div class="section" id="section_experience">
    <h2 class="title">Working Experience</h2>
    <p>Work experience</p>
    <div class="employer" id="section_xyz_corp">
      <h3 class="title">XYZ Corp.</h3>
      <p>I worked at XYZ</p>
    </div>
    <div class="employer" id="section_acme_inc">
      <h3 class="title">Acme Inc.</h3>
      <p>I also worked at Acme</p>
    </div>
  </div>
  <div class="section">
    <h2 class="title">Hobbies</h2>
    <ul>
      <li>Cards</li>
      <li>Books</li>
      <li>Dogs</li>
    </ul>
    <div class="section">
      <h3 class="title">About <em>my</em> hobbies</h3>
      <p>My hobbies are great.</p>
    </div>
  </div>
</div>The resulting document is, IMO, semantically correct. It’s also easier to style with CSS.InstallationInstall using setuptools, e.g. (within a virtualenv):$ pip install mdx_sectionsOr if you prefer to get the latest from Github:$ git clone git://github.com/jessedhillon/mdx_sections.gitUsageFor an extended introduction to Python-Markdown extensions, seethe documentation http://freewisdom.org/projects/python-markdown/Extensions.This extension is available by the short name ofsections, and it has two config parameters:section_cls,  defaults tosection. This is the default CSS class applied to a generateddiv, when the Markdown document does not specify one.heading_cls,  defaults totitle. This is the default CSS class applied to theh[1-6]element which is being transformed.Changes0.122 Feb 2012Initial public release.
Package: mdx-spanner
mdx_spannerThis package enablesrowspanandcolspanin markdown tables when usingMkDocs.SyntaxBasics (spanning indicators)You can activatecolspanby putting only~~in a cell. This will merge the cell with the cell in the previous column.You can activaterowspanby putting__in a cell. This will merge the cell with the cell in the previous row. If the cell in previous row is empty it will continue to merge until it finds a non-empty cell.Sample:| Header 1 | Header 2 | Header 3 |
| ---------| -------- | -------- |
| Value 1  |    ~~    | Value 2  |
|          |    ~~    | Value 3  |
|_        _|    ~~    | Value 5  |
| Value 6  | Value 7  | Value 8  |This should result in the following table:+----------+----------+----------+
| Header 1 | Header 2 | Header 3 |
+----------+----------+----------+
| Value 1             | Value 2  |
|                     +----------+
|                     | Value 3  |
|                     +----------+
|                     | Value 5  |
+----------+----------+----------+
| Value 6  | Value 7  | Value 8  |
+----------+----------+----------+Advanced (alignment markers)You can change the alignment of a single spanned cell by adding markers to the spanning indicators.To change the horizontal alignment (when multiple columns are merged) put colons before and/or after the~~to indicate the alignment:SampleResult:~~Left aligned:~~:Centered~~:Right alignedTo change the vertical alignment (when multiple rows are merged) put one of the following chars (`^`,`=`,`_`) between the `__` to indicate the alignment:SampleResult_^_Top aligned_=_Centered___Bottom alignedSample:| Header 1   | Header 2 | Header 3 |
| ---------- | -------- | -------- |
| Value 1    |   :~~:   | Value 2  |
|            |    ~~    | Value 3  |
|_     =    _|    ~~    | Value 5  |
| Value 6    | Value 7  | Value 8  |This should result in the following table:+----------+----------+----------+
| Header 1 | Header 2 | Header 3 |
+----------+----------+----------+
|                     | Value 2  |
|                     +----------+
|       Value 1       | Value 3  |
|                     +----------+
|                     | Value 5  |
+----------+----------+----------+
| Value 6  | Value 7  | Value 8  |
+----------+----------+----------+Install$pipinstallmdx_spannerUsageAfter installing the extension you can add it in themkdocs.ymlfile:site_name:...nav:...theme:...markdown_extensions:-mdx_spanner
Package: mdx-staticfiles
mdx_staticfilesA Markdown extension to add support fordjango.contrib.staticfiles.Licensed under theISC License.RequirementsThe mdx_staticfiles plugin requires only the basemarkdownlibrary.InstallationInstall withpip install mdx_staticfiles.DocumentationAllows inserting {% static %} Django tags into Markdown, that will
reference files managed bydjango.contrib.staticfiles.The following Markdown example:A [promotial video]({% static "video/promo.mkv" %}).Might result in:A<ahref="https://cdn.example.net/static/video/promo.mkv">promotional
video</a>.Python usage:md=markdown.Markdown(extensions=['staticfiles',],)
Package: mdx-to-pd
mdx_to_pdmdx to pd is a Python library for retrieving data from Microsoft Analytics Services OLAP cube using the mdx query Returned outcome comes in the pandas dataframe for further data processing.
Works also behind the corporate proxy.InstallationUse the package managerpipto install mdx_to_pd.
In order for mdx_to_pd to work it is necessary to have Microsoft.PowerBI.AdomdClient.dll.
Package works on Windows only!pipinstallmdx-to-pdUsagefrommdx_to_pdimportmdx_retrieverconnection="Data Source=https://biserver.company.com/database/;Catalog=Model;"query="""SELECT NON EMPTY [Measures].[Order Count] ON COLUMNS,NON EMPTY ([Markets].[Country].[Country]) ON ROWSFROM [OLAP_CUBE]"""# returns pd.DataFrame()df=mdx_retriever(query,connection)# mdx or dax query can be provided# returns df based on mdx query with column names with whitespace replaced by '_'# to return own column whitespace replacement string, add parameterdf=mdx_retriever(query,connection,'-')# in case of error due to missing Microsoft.PowerBI.AdomdClient.dll# please follow prompts in terminal.# package expects file located in# c:\Program Files\Microsoft Power BI Desktop\bin\ but path is not# existing it will search for the file on c: drive and will suggest to add this as parameterdf=mdx_retriever(query,connection,'-','c:\\alternative_path_to\\Microsoft.PowerBI.AdomdClient.dll')# all options:mdx_retriever(query:str,# mdx queryconn:str,# connection to OLAP CUBE,whitespace_replacer:str#optional replacement string for column whitespacesalternative_dll_path:str#optional alternative path to Microsoft.PowerBI.AdomdClient.dll)## ContributingPullrequestsarewelcome.Formajorchanges,pleaseopenanissuefirsttodiscusswhatyouwouldliketochange.Pleasemakesuretoupdatetestsasappropriate.## License[MIT](https://choosealicense.com/licenses/mit/)