Saravanan666/pypi-org huggingface dataset:
Package: pygm
PyGM is a Python library that enables fast query operations on sorted lists of numbers (like integers and floats) with a tiny memory overhead. Internally, it features thePGM-index, a state-of-the-art learned data structure that robustly scales to billions of elements in just a few tens of megabytes.Quick startInstall with pip:pipinstallpygmPyGM supports both standard and other useful list and set operations:>>>frompygmimportSortedList,SortedSet>>>sl=SortedList([0,1,34,144,1,55,233,2,3,21,89,5,8,13])>>>slSortedList([0,1,1,...,144,233])>>>sl.find_gt(9)# smallest element > 913>>>sl.count(1)# frequency of 12>>>42insl# membership testFalse>>>list(sl.range(0,21,inclusive=(False,True)))# elements 0 < x <= 21[1,1,2,3,5,8,13,21]>>>sl[2:10:3]# slicing syntax supportSortedList([1,5,21])>>>(sl+[-3,-2,-1]).rank(0)# number of elements <= 04>>>ss=SortedSet([1,2,3,4])^{3,4,5}# set symmetric difference>>>ss.find_lt(5)2The full documentation is availableonlineand in the Python interpreter via thehelp()built-in function.InstallationPyGM is compatible with Python 3.3+. The easiest way to install it is through PyPI:pipinstallpygmOtherwise, you can clone the repo, build it from source and install it as follows:if[["$(uname)"=="Darwin"]];thenbrewinstalllibomp;figitclonehttps://github.com/gvinciguerra/PyGM.gitcdPyGM
gitsubmoduleupdate--init--recursive
pipinstall.Remember to leave the source directoryPyGM/and its parent before running Python.PerformanceHere are some plots that compare the performance of PyGM with two popular libraries,sortedcontainersandblist, on synthetic data.All the graphs are log-log and show, for increasing data sizes, the average time it takes to perform each operation (lower is better). In particular, the__init__plot shows the construction time,__contains__measures membership queries, and__getitem__shows the cost of accessing an element given its position.The interesting operations on sorted lists are: (i)index, which returns the position of the first occurrence of a given element; (ii)count, which returns the number of occurrences of a given element; (iii)bisect_left, which returns the insertion point for a given value in the list to maintain the sorted order (and is used to implementfind_[ge|gt|le|lt]).You can run and plot the experiments on your computer and your data with the notebook intests/benchmark.ipynb.LicenseThis project is licensed under the terms of the GNU General Public License v3.0.If you use the library in an academic setting, please cite the following paper:Paolo Ferragina and Giorgio Vinciguerra. The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds. PVLDB, 13(8): 1162-1175, 2020.@article{Ferragina:2020pgm,
  Author ={Paolo Ferragina and Giorgio Vinciguerra},
  Title ={The{PGM-index}: a fully-dynamic compressed learned index with provable worst-case bounds},
  Year ={2020},
  Volume ={13},
  Number ={8},
  Pages ={1162--1175},
  Doi ={10.14778/3389133.3389135},
  Url ={https://pgm.di.unipi.it},
  Issn ={2150-8097},
  Journal ={{PVLDB}}}
Package: pygmailarchive
pygmailarchive a commandline tool to archive a GMail account to a local Maildir directory.This tool is licensed under the “Simplified BSD License”, see LICENSE for details.pygmailarchive downloads all mails from your GMail account via IMAP, storing them in the same structure
as they are presented on the IMAP server. This means all your labels and sub-labels will be converted into
Maildir folders in the destination folder.You can exclude certain labels or even a complete label-hierarchy easily. This is useful for people having
lists or emails that are already archived elsewhere.Subsequent executions of the tool will download all mails that haven’t been fetched so far, the tool keeps
a list of ‘already seen mails’ along with the Maildir’s.The main intent is to copy the Mails from gmail to your own machine to archive or backup them.Requirements:Python 2.7IMAPClient (http://imapclient.freshfoo.com/)Howto use:
pygmailarchive gmailarchive/See pygmailarchive –help for more options
Package: pygmalion-engine
Pygmalion EngineAn ECS game engine written in Python.Free software: MIT licenseDocumentation:https://pygmalion-engine.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-08-21)First release on PyPI.
Package: pygmc
PyGMCPyGMC is a Python API for Geiger–Müller Counters (GMCs) / Geiger Counters.
It has just one dependency (pyserial) and works on multiple operating
systems: Windows, OSX, Linux. PyGMC aims to be a minimalistic interface -
lowering the installation requirements and allowing the user to build their
own tools on top of a stable package.PYPIDocumentationInstallationpipinstallpygmcExample UsageJupyter NotebookAuto discover connected GMC, auto identify baudrate, and auto select correct device.import pygmcgc = pygmc.connect()ver = gc.get_version()print(ver)cpm = gc.get_cpm()print(cpm)Connect to specified GMC device with exact USB port/device/com.import pygmcgc = pygmc.GMC320('/dev/ttyUSB0')cpm = gc.get_cpm()print(cpm)Read device history into DataFrameimport pandas as pdimport pygmcgc = pygmc.GMC320('/dev/ttyUSB0')history = gc.get_history_data()df = pd.DataFrame(history[1:], columns=history[0])datetimecountunitmodereference_datetimenotes2023-04-19 20:37:1811CPMevery minute2023-04-19 20:36:182023-04-19 20:38:1820CPMevery minute2023-04-19 20:36:182023-04-19 20:39:1819CPMevery minute2023-04-19 20:36:182023-04-19 20:40:1823CPMevery minute2023-04-19 20:36:182023-04-19 20:41:1820CPMevery minute2023-04-19 20:36:18DevicesDeviceBrandNotesGMC-300S ✔️GQ ElectronicsA little pickyGMC-300E+ / GMC-300E PlusGQ ElectronicsGMC-320+ / GMC-320 Plus ✔️GQ ElectronicsWorks smoothlyGMC-320SGQ ElectronicsGMC-500GQ ElectronicsGMC-500+ / GMC-500 Plus ✔️GQ ElectronicsWorks smoothlyGMC-600GQ ElectronicsGMC-600+ / GMC-600 PlusGQ ElectronicsGMC-800GQ ElectronicsGMC-SE ✔️GQ ElectronicsRFC1201(✔️=physically confirmed works)Theoretically, any GQ GMC device following communication protocol RFC1201 or RFC1801 should work (e.g. the old GMC-280 )ContributorsNotesAlternative Python projects for GQ GMC:GeigerLoggq-gmc-controlgmcDevice websiteGQ ElectronicsSeattle, WANot affiliated in any way.Known IssuesUbuntu IssueUbuntu requires fixing a bug to be able to connect to any GQ GMC device.USB devices use VID (vendor ID) and PID (Divice ID)... It is common for unrelated devices to use a common manufacture for their USB interface.
The issue with Ubuntu is that it assumes1A86:7523is a "Braille" device (for the blind) and, ironically, blindly treats it as such.This causes the GQ GMC device to not connect.Ubuntu fixThe fix is to comment out theudevrule that does this. The text file may be in two places./usr/lib/udev/85-brltty.rules/usr/lib/udev/rules.d/85-brltty.rulesFind the line below and comment it out.ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"We see Ubuntu assumes1A86:7523is aBaum [NLS eReader Zoomax (20 cells)]device.
Package: pygmentize-faster
Pygmentize FasterThis package usespygments-cacheto runpygmentizejust a little bit faster.It overrides thepygmentizescript provided bypygments.Benkmarkspygmentize-fasterruns about twice as fast aspygmentize:$timefd-d1-j1'.py$'-xpython-mpygmentize{}>/dev/null';'/usr/lib/python3.10user=65.25ssystem=7.81scpu=98%total=1:14.45

$timefd-d1-j1'.py$'-xpython-mpygmentize_faster{}>/dev/null';'/usr/lib/python3.10user=33.61ssystem=4.96scpu=99%total=38.663
Package: pygments-agentspeak
APygmentslexer for both the AgentSpeak extension interpreted byJasonand Jason/JaCaMoproject files.InstallWith PyPI:$ sudo pip3 install pygments-agentspeakFrom GitHub:$ git clone https://github.com/copycat-killer/pygments-agentspeak.git
$ cd pygments-agentspeak
$ sudo pip3 install .UsageJust definejason,jasonprojectorjacamoprojectas the language to be used.You can also usejacamoas style.Usage in LaTeX documentsSee themintedpackage.NoteCheck alsothis.
Package: pygments_anyscript
Pygments AnyScript pluginPygments lexer and style for the AnyScript language. AnyScript is the
scripting langugage used for the AnyBody Modeling System; a system for
multibody musculoskeletal analysis.InstallationPip:Runpip install pygments-anyscriptConda:Runconda -c conda-forge pygments_anyscriptSource:Download source and executepython -m pip install .RequirementspygmentsUsageThe lexer and style can be used with the Pygments api like any other lexer or style.::$ pygmentize -l AnyScript MyAnyScriptFile.any
$ pygmentize -l AnyScript -O style=anyscript MyAnyScriptFile.any
$ pygmentize -l AnyScript -f html -O full,style=anyscript -o  MyAnyScriptFile.html MyAnyScriptFile.any
Package: pygments-arm
This is a lexer for ARM Assembly language.InstallUsing PyPI and pip$ (sudo) pip install pygments-armManual$ git clone https://github.com/heia-fr/pygments-arm.git
$ cd pygments-arm
$ (sudo) python setup.py installUsingJust use theARM“language”.Using in LaTeX documentsSee the minted package athttp://minted.googlecode.com.Extra informationPygments supported languagesPygments at the moment supports over 150 different programming languages,
template languages and other markup languages. To see an exhaustive list of the
currently supported languages, use the command:$ pygmentize -L lexersPygments styles avaibleTo get a list of all available stylesheets, execute the following command on the
command line:$ pygmentize -L stylesPlease read theofficial documentationfor further information on the usage
of pygment styles.
Package: pygments-asl
OverviewThis package provides anACPIsource language (ASL) lexer forPygments.
The lexer is published as an entry point and, once installed, Pygments will
pick it up automatically.You can then use theasllanguage with Pygments:$ pygmentize -l asl test.aslInstallationUse your favorite installer to install pygments-asl into the same
Python you have installed Pygments. For example:$ easy_install pygments-aslTo verify the installation run:$ pygmentize -L lexer | grep -i asl
* asl:
    ASL (filenames *.asl, *.aml)Changelog1.0 - 2013-10-05Initial release.
Package: pygments-bsl
pygments-bslPygments_ is a syntax highlighting tool that supports a wide range of
languages and data formats.Made for MkDocshttps://www.mkdocs.org.
Online examplehttps://zeegin.github.io/pygments-bsl/Syntax rools fromhttps://github.com/1c-syntax.Install$ pip install pygments-bslInstall localpipinstall.Buildpython-mbuildTestpytestUsagePygment json highlighting is available without any further customization from code as well
as from the pygementize command:pygmentize"C:\git\pygments-bsl\tests\examplefiles\bsl\samples.bsl"pygmentize"C:\git\pygments-bsl\tests\examplefiles\bsl\samples.os"pygmentize"C:\git\pygments-bsl\tests\examplefiles\sdbl\samples.sdbl"_Pygments:http://pygments.org/_pygments-bsl:https://github.com/zeegin/pygments-bsl_PyPI:http://pypi.python.org/pypi_pip:http://www.pip-installer.org/Used:https://1c-syntax.github.io/bsl-language-server/https://pr-mex.github.io/vanessa-automation/
Package: pygments-cache
A fast, drop-in replacement for pygmentsget_*()andguess_*()funtions.The following pygments API functions are currently supplied here:from pygments_cache import get_lexer_for_filename, guess_lexer_for_filename
from pygments_cache import get_formatter_for_filename, get_formatter_by_name
from pygments_cache import get_style_by_name
from pygments_cache import get_filter_by_nameThe cache itself is stored at the location given by the$PYGMENTS_CACHE_FILEenvironment variable, or by default at~/.local/share/pygments-cache/cache.py.
The cache file is created on first use, if it does not already exist.If a pygements extentsion is not found in the cache, the API functions listed here
will fallback to the original pygments version and the extension will be added to
the cache for future use. That is, the cache will discover and save new extensions
as you would expect.If you ever need to reset the cache for some reason, simply delete the$PYGMENTS_CACHE_FILEfrom your file system. The next time you call one of
the API functions, the cache will be regenerated. Alternatively, you may
manually rebuild the cache (after removing the file) with theload_or_build()function.The cache itself is fully accessible as thepygments_cache.CACHEdict.This project is implement as single file, making it easy to redistribute.
Feel free to copy this file to your own project!ComparisonNOTE:All of the following tests were inxonsh.TL;DR Table:All timings in seconds.pygments0.483.09e-3pygments_cache0.039.90e-6speedup16x306xFrom acold start(i.e. the first import and use), pygments can take a long
time (about half a second) to get a single lexer, as seen below:$time-ppython-c!frompygments.lexersimportget_lexer_for_filename;get_lexer_for_filename('index.html')real 0.48
user 0.46
sys 0.01The pygments-cache project speeds this up considerably, assuming the cache file already exists.
The timing can be seen here:$time-ppython-c!frompygments_cacheimportget_lexer_for_filename;get_lexer_for_filename('index.html')real 0.03
user 0.03
sys 0.00This represents a16xspeedup. However, most of the 0.03 sec is actually coming from Python itself starting
up and shutting down.A more fair test is to look at how long theget_lexer_for_filename()function takes to run
once Python has been started and the function imported.From ahot start, pygments itself tok about 3 ms, as seen below:$frompygments.lexersimportget_lexer_for_filename$timeit!get_lexer_for_filename('index.html')100 loops, best of 3: 3.09 ms per loopAlternatively, pygments-cache took only 9.9 µs, as seen below.$frompygments_cacheimportget_lexer_for_filename$timeit!get_lexer_for_filename('index.html')100000 loops, best of 3: 9.9 µs per loopThis is a speedup of306x!
Package: pygments-ccl-lexer
Contents========CCL Lexer for the Cerner Command Language.This module extends the *SqlLexer* lexer of `Pygments`_ to support morekeywords of CCL.Installation============Use the following commands to install the package::$ cd pygments-sql-pl-lexer$ [sudo] python setup.py installCheck if the lexer is present=============================Simply grep the output of the following command for **ccl**.::$ pygmentize -L lexers | grep cclUse the lexer in LaTeX======================Replace <language> with **ccl**::\begin{minted}{<language>}<code>\end{minted}For example::\begin{minted}[linenos=true,frame=single]{ccl}--#SET TERMINATOR @CREATE OR REPLACE MODULE project @\end{minted}
Package: pygments-cl-repl
OverviewThis package provides aPygmentslexer forCommon Lisp REPLsessions.  The lexer is published as an entry point and, once
installed, Pygments will pick it up automatically.You can then use this lexer with Pygments:$ pygmentize -l common-lisp-repl pygments_cl_repl/test.common-lisp-replInSphinxdocuments the lexer is selected with thehighlightdirective:.. highlight:: common-lisp-replInstallationUse your favorite installer to install pygments-cl-repl into the same
Python you have installed Pygments. For example:$ pip install pygments-cl-replTo verify the installation run:$ pygmentize -L lexer | grep -i common-lisp-repl
* common-lisp-repl:
    Common Lisp REPL (filenames *.common-lisp-repl)
Package: pygments-dmdl
DMDL lexer and highlighter for PygmentsInstallationfrom PyPIpipinstallpygments-dmdlfrom source codegitclone<repo_url>cd.../pygments-dmdlpythonsetup.pyinstallHow to useYou do not need any configuration in conf.py...code-block::dmdl"desc"
   @attribute
   sample = {
       id : INT;
       name : TEXT;
   };
Package: pygments-doconce
pygments-doconce: syntax coloring for DocOnce filesOverviewThis package provides aPygments <http://pygments.org/>_ lexer forDocOnce <http://doconce.github.io/doconce>_ files.
The lexer is published as an entry point and, once installed, Pygments will
pick it up automatically.You can then use thedoconcelanguage with Pygments::$ pygmentize -l doconce test.do.txtInSphinx <http://sphinx-doc.org/>_ documents the lexer is selected with
thehighlightdirective::.. highlight:: doconceThanks to pygments-openssl project for providing a template<https://github.com/stefanholek/pygments-openssl>_InstallationUse your favorite installer to installpygments-doconceinto the same
Python you have installed Pygments.Installingpygments-doconcedistributed onPyPi <https://pypi.org/project/pygments-doconce/>:$ pip install pygments-doconceConstructing an egg from repository::$ git clone https://github.com/doconce/pygments-doconce.git
    $ cd pygments-doconce
    $ python setup.py installDocOnce is needed for the lexer to work. Refer toDocOnce <http://doconce.github.io/doconce>To verify the installation ofpygments-doconcerun::$ pygmentize -L lexer | grep -i doconce
    * doconce:
    DocOnce
Package: pygments-epsilon
Epsilon Plugin for PygmentsPygmentslexer support for Epsilon languages (ready to use withMkDocs Material)Installationgit clone https://github.com/iNafey/pygments-epsilon.git
cd pygments-epsilon
sudo python setup.py installCould also replace the last line for (sudo python setup.py develop) if you will make changes to the code.If you want to install it from PyPI:pip install pygments-epsilonUsageTo use the Epsilon lexers, you need to have Pygments installed (so you can use thepygmentizecommand). Then, you can perform syntax highlighting using the following command:pygmentize -l <LexerAlias> -x <RelativePathToFile>WhereLexerAliasis the alias of the lexer you want to use (e.g.emffor Emfatic) andRelativePathToFileis the relative path to the file you want to highlight.For example, if you want to highlight the filetest.eglusing the EGL lexer, you would use:pygmentize -l etl -x test_scripts/test.etlMkDocs Material SupportIf you want to use the lexers with MkDocs Material, simply call theLexerAliasin the code blocks of your Markdown files. For example, if you want to highlight an ETL code block using the ETL lexer, you would use:``` etl
        //MT definition containing rules
    ```Color CustomizationYou can select from various pygmentsstylesalready available for highlighting within the terminal:pygmentize -O <StyleName>  -l <LexerAlias> -x <RelativePathToFile>WhereStyleNameis the name of the style you want to use (e.g.monokai). The default style isdefault.To change the style for MkDocs Material, you will need to find the token types of the keywords you want to highlight (Inspect Element via your browser). Then, follow the instructionshereto add the custom style to your documentation site.Available Epsilon lexersETL:etlEOL:eolEmfatic:emf
Package: pygments-gchangelog
Pygments lexer and style for Gentoo Portage’schangelog files.Installationrunpip installpygments-gchangelogdownload source and executepython setup.py installRequirementspygmentsUsageYou may use lexer and/or style with pygments console program or with it’s api
like any other lexer or style.$ pygmentize -l changelog ChangeLog
$ pygmentize -l changelog -O style=changelog ChangeLog
$ pygmentize -l changelog -f html -O full,style=changelog ChangeLog > changelog.htmlLICENSEMIT
Package: pygments-gemini
Gemini Lexer for PygmentsThis package contains aGeminilexer forPygments.frompygmentsimporthighlightfrompygments.formattersimportHtmlFormatterfrompygments_geminiimportGeminiLexersource='''# Hello World=> gemini://gemini.circumlunar.space'''lexer=GeminiLexer()formatter=HtmlFormatter(linenos='table',cssclass='highlight')result=highlight(source,lexer,formatter)print(result)
Package: pygments-git
Pygments lexers for Git output and files.InstallationUsepip:python-mpipinstallpygments-gitPython 3.8 to 3.12 supported.Working on a Django project?Improve your skills withone of my books.UsageWith the package installed, Pygments will autodiscover the below lexers.When using Pygments directly, you can refer to them by name.
Within Sphinx/docutils, you can refer to them incode-blockdirectives:..code-block::git-console$ git log --oneline
    82fbbd3 D'oh! Fix math proof
    91e9879 Aye carumba! Grammar mistake
    61c4c08 Cowabunga! Update bibliographyTo preview the lexers, open thetests/index.htmlfile within the repository.git-attributesA lexer for.gitattributesfiles.git-blame-ignore-revsA lexer for the file format used byblame.ignoreRevsFile.
The de facto name for a repository-wide ignore file is.git-blame-ignore-revs, as recognizedby GitHuband potentially other Git hosting services.git-commit-edit-msgA lexer for theCOMMIT_EDITMSGfile that Git opens when you rungit commit.
It calls out toDiffLexerfor highlighting any diff, as added bygit commit--verbose.git-conflict-markersA lexer for the conflict markers that Git adds to indicate conflicts during a merge.
All other text in the file is lexed as plain text.git-consoleA lexer for interactive shell sessions with Git.
It calls out toBashLexerfor highlighting commands on lines starting with a$andDiffLexerfor highlighting inline diffs.git-rebase-todoA lexer for thegit-rebase-todofile that Git opens when you rungit rebase--interactive.
It calls out toBashLexerfor highlighting commands on lines starting withxorexerca$andDiffLexerfor highlighting inline diffs.
Package: pygments-hack
pygments-hack~~~~~~~~Pygments is a syntax highlighting package written in Python.This hack adds code lines highlighting for enhancing visibility of certainlines of the code.Pygments is a generic syntax highlighter for general use in all kinds of softwaresuch as forum systems, wikis or other applications that need to prettifysource code. Highlights are:* a wide range of common languages and markup formats is supported* special attention is paid to details, increasing quality by a fair amount* support for new languages and formats are added easily* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image       formats that PIL supports and ANSI sequences* it is usable as a command-line tool and as a library* ... and it highlights even Brainfuck!The `Pygments tip`_ is installable with ``easy_install Pygments==dev``... _Pygments tip:http://bitbucket.org/birkenfeld/pygments-main/get/tip.zip#egg=Pygments-dev:copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.:license: BSD, see LICENSE for details.
Package: pygments-hackasm-lexer
Pygmentslexer forNand2Tetris Hack Assemblerlanguage.Part of the languages used/developed in theBuilding a Modern Computer from First Principlesbook.UsageThe name of the lexer ishack_asmso you can call it frompygmentizelike this:pygmentize -l hack_asm -f html -O full test.asmThe recognize extension is.asmbut it is as well used by many other lexers (like, you know, other assemblers), so I recommend passing  directly the lexer name.InstallationThe lexer is available in PyPI, just install usingpip:pip install pygments-hackasm-lexerAnd start using it.
Package: pygments-ipython-console
========================
pygments-ipython-consoleSyntax coloring for IPython Console FilesOverviewThis package provides a Pygments_ lexer for IPython Console Files.
The lexer is published as an entry point and, once installed, Pygments will
pick it up automatically.You can then use theipythonlanguage with Pygments::$ pygmentize -l ipython test.ipy[Or use the standard sphinx import of ipython_console_highlight.py]
In Sphinx_ documents the lexer is selected with thehighlightdirective::.. highlight:: ipython.. _Pygments:http://pygments.org/.. _Sphinx:http://sphinx-doc.org/Thanks to pygments-openssl project for providing a template [https://github.com/stefanholek/pygments-openssl]RequirementsThis needs IPython 1.0+ for sphinxext moduleInstallationUse your favorite installer to install pygments-ipython into the same Python you have installed Pygments.
Constructing an egg from repository::$ git clone https://sanguineturtle@bitbucket.org/sanguineturtle/pygments-ipython-console.git
$ cd pygments-ipython-console
$ python setup.py bdist_eggFor example [change directory to dist/ folder to locate egg file]::$ easy_install pygments-ipython-console.eggTo verify the installation run::$ pygmentize -L lexer | grep -i ipy
* ipy:
	IPy session (filenames *.ipy)ChangelogChanged IPython lexer class name.
[hplgit]Initial release.
[sanguineturtle]