Saravanan666/pypi-org huggingface dataset:
Package: pygments-style-github
InstallUsing PyPI and pip$ (sudo) pip install pygments-style-githubManual$ git clone git://github.com/hugomaiavieira/pygments-style-github.git
$ cd pygments-style-github
$ (sudo) python setup.py installUsage example>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='github').style
<class 'pygments_style_github.GithubStyle'>Export the style as CSSpygmentize -S github -f html > github.cssUsing in LaTeX documentsSee the minted package athttp://minted.googlecode.comExtra 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.ThanksThis package is based upon thepygments-style-railscastsof Marcus Fredriksson.
Package: pygments-style-monokailight
This is a pygments style based on the popular Monokai color scheme. This version is suitable for light backgrounds, whereas the original scheme is designed for dark backgrounds.InstallationConda$ conda install -c mlgill pygments-style-monokailightPyPI and pip$ pip install pygments-style-monokailightSource$ git clone git://github.com/mlgill/pygments-style-monokailight
$ cd pygments-style-monokailight
$ python setup.py installUsage Sample>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='monokailight').style
<class 'pygments_style_monokailight.MonokaiLightStyle'>Export the style as CSSpygmentize -S monokailight -f html > monokailight.css
Package: pygments-style-rub
APygmentsstyle based on theCorporate Designof theRuhr-University Bochum.The color definitions have been taken from theCorporate Design Manual.pygments-style-rubis compatible with Python 2 & 3.Install thecurrent PyPI release:$pipinstallpygments-style-rubOr install the development version from GitHub:$pipinstallgit+https://github.com/Holzhaus/pygments-style-rubUsageAfter installation, you can userublike any other Pygments style, e.g.
on the command line:$pygmentize-lpython-Ostyle=rub-ooutput.htmlcode.pyOr you can use it with theminted package in LaTeX:\documentclass{article}\usepackage{minted}\usemintedstyle{rub}\begin{document}\inputminted{python}{code.py}\end{document}LicenseThis project has been released under the terms of the BSD-License. Please read
theLICENSEfile for more information.
Package: pygments-style-tomorrownightbright
This is a pygments style based on the Tomorrow color scheme.InstallationFrom pypi:$ pip install pygments-style-tomorrownightbrightFrom Source:$ git clone https://github.com/gbraad/pygments-style-tomorrownightbright
$ cd pygments-style-tomorrownightbright
$ python setup.py installAuthors@gbraad
Package: pygments-tsx
What is this?This package includes lexers for JSX and TSX files for Pygment.
Pull requests are requested, and the code is released under the MIT License. We make no warranties this thing works, just doing our best.To useEither:pip install pygments-tsxor add us to your requirements wherever they may be these days. (Looking at you, SetupTools, Poetry, PyPi... get it together.)AcknowledgmentsThis includesFlavio Curella's awesome packageJSX Lexer, and includes the ideas and some code fromIgor Hatarist's stab at this same problempygments-tsx. Flaws were introduced by StartupOS, good stuff came from them.There's also a hack in here for forcing pygments to accept classes programatically. That was based on discussions in thisthread, and specifically suggestions fromVincent BernatandJean Abou-Samra
Package: pygments-woma-lexer
A Pygments Lexer for the Woma Programming LanguageHow to UseJust add the following lines to your docs/conf.py:frompygments_woma_lexerimportWomaLexerfromsphinx.highlightingimportlexerslexers.update(woma=WomaLexer())Now you can use it like this in ReStructured Text:..code::woma

  [code goes here]LicenseTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.SeeLICENSE.txtfor more info.
Package: pygments-xslfo-formatter
This is a formatter forpygmentsthat produces
output marked up with tags with the appropriate colour and other
presentational attributes set according to the pygments style in use.To be useful this must be embeded in a complete xsl-fo document. It was
developed for use withasciidocto produce
PDF’s usingfopwith minimal
configuration or extra dependencies.It is possible that it could be used in more general docbook to pdf tool
chains.InstallationInstall from pypi:$pipinstallpygments-xslfo-formatterTo install from the from the source distibution. Use any of the normal
installation methods from the top directory of the distribution to install.$pythonsetup.pyinstall# Usual setup.py installation method$pipinstall.# Using pipThis will install pygments if it is not already installed. You can check
that it is working by listing the formatters and checking for the
presence of one containingxslfo.$pygmentize-LformattersFormatters:
~~~~~~~~~~~
[... ommitted output ...]
* xslfo, xsl-fo:
    Format tokens as XSL-FO ``<fo:inline>`` tags.UsageAs this just adds a new formatter type to pygments, you just use’ xslfo’
where ever you might, for example, specify ‘html’ as a formatter name.$pygmentize-fxslso-lpythonsetup.pyYou should see lots of tagsTo use with asciidoc, which is the initial purpose of this extension
look at the example directory which contains a simple but complete
example.Example resultYou can see an example pdf file
here:[1]
Package: pygmes
pygmes is a wraper for GeneMark-ESThis project aims at making GeneMark-ES more usable. By default
GeneMark-ES has some problems with fragmented and incomplete genomes.For metagenomic analysis this is an issue, thus I developed pygmes.StatusCurrently this project is very much WIP, so do expect problems and
incomplete documentation.It is just on pip already as it is a suggested package for EukCC (https://github.com/Finn-Lab/EukCC/)
Package: pygmidi
pygmidiA general representation for MIDI files for symbolic music data-driven approachesMIDI files are a common way to represent symbolic music. pygmidi (Python General Midi) is a facade for the most used python packages focused on midi files manipulation, so it can used transparently. For now, it includes:midi PatternPrettyMidipianoroll MultitrackMidiFileMidiArray: a new minimalistic representation that uses only an array and a list of instruments, allowing to easily have a tensor representation of the midi file aimming machine learning purposesNew Features:Methods to automatically orchestrate and slice midi files to help pre-processing midi datasparrayis a sparse array representation for efficient disk saving purposes with which you may save and load tensor representated midi files for both time and space efficiencySet of evaluation tools for variable sized sequences of pianoroll blocks and metrics for music evaluationA lot of different ways to export to jpg, gif and wav formats (comming exporting to PDF)Instalation$ git clone https://github.com/LESSSE/pygmidi
$ cd pygmidi
$ pip install . --userTypical Use#!/usr/bin/env python

    from pygmidi import pygmidi
    g = pygmidi("path_to_midifile.mid")

    g.transpose(-1)
    g.to_npz("new_npz_path")
    g.to_gif("new_gif_path")For processing midi files in a directory#!/usr/bin/env python

    from pygmidi import pygmidi,utils,midiarray
    from glob import glob
    from os import path

    programs_map = {('woods',False): 0,
                ('brass',False): 1,
                ('percussion',True): 2,
                ('timpani',False): 3,
                ('chromatic_percussion',False): 4,
                ('voices', False): 5,
                ('guitars',False): 6,
                ('basses',False): 6,
                ('strings',False): 6,
                ('keyboards',False): 7}

    #Tracks_map is the configuration for the new orchestrated tracks
    tracks_map = [{'program':71,'is_drum':False,"name":"woods"}, #woods
                {'program':60,'is_drum':False,"name":"brass"}, #brass
                {'program':0,'is_drum':True,"name":"percussion"},  #percussion
                {'program':47,'is_drum':False,"name":"timpani"}, #timpani
                {'program':14,'is_drum':False,"name":"tubular bells"}, #tubular bells
                {'program':52,'is_drum':False,"name":"voices"}, #voices
                {'program':48,'is_drum':False,"name":"strings"}, #strings
                {'program':1,'is_drum':False,"name":"piano"}] #piano

    for i in glob('{}/*.mid'.format("midi")):
         a = pygmidi.process(songs[0],
                  i_to_t=programs_map,
                  t_to_i=tracks_map,
                  ticks=4*24*4,
                  transpose=(0,1))
         utils.sparray.save("{}/{}.npz".format("npz",path.splitext(path.basename(i))[0]),a)
Package: pygml
pygmlA pure python parser and encoder for OGC GML Geometries.Installation$pipinstallpygmlFeaturesParse GML 3.1, 3.2, compact encoded GML 3.3 and GeoRSS geometries to aGeo Interfacecompliant class.>>>importpygml>>>geom=pygml.parse("""... <gml:Point gml:id="ID" xmlns:gml="http://www.opengis.net/gml/3.2">...    <gml:pos>1.0 1.0</gml:pos>... </gml:Point>... """)>>>print(geom)Geometry(geometry={'type':'Point','coordinates':(1.0,1.0)})>>>print(geom.__geo_interface__){'type':'Point','coordinates':(1.0,1.0)}Conversely, it is possible to encode GeoJSON or Geo Interfaces to GML>>>frompygml.v32importencode_v32>>>fromlxmlimportetree>>>tree=encode_v32({'type':'Point','coordinates':(1.0,1.0)},'ID')>>>print(etree.tostring(tree,pretty_print=True).decode())<gml:Pointxmlns:gml="http://www.opengis.net/gml/3.2"srsName="urn:ogc:def:crs:OGC::CRS84"gml:id="ID"><gml:pos>1.01.0</gml:pos></gml:Point>>>>
Package: pygmlib
pygmlibGMLib项目的python绑定，利用pybind11进行绑定已经通过测试的环境操作系统CPUpython版本Windows11i5-12500H3.9Windows11i5-12500H3.101 快速开始1.1 通过pypi安装（推荐）pipinstallpygmlib1.2 通过源码包安装（推荐）在pypi主页下载pygmlib项目的源码包并解压运行pip install ./pygmlib1.3 通过github项目安装克隆仓库git clone https://github.com/oldprincess/py-gmlib.git获取子模块cd py-gmlib
git submodule update --init --recursive
cd ..pip安装pygmlibpip install ./pygmlib2 支持的密码算法SM3SM4: ECB, CBC, CFB, OFB, CTR, GCMAES: ECB, CBC, CFB, OFB, CTR, GCM3 使用样例下面的样例实现SM4算法ECB模式的加密和解密功能，并校验正确性importpygmlibsm4_key=bytes(16)# 16 bytes ZEROsm4_pt=bytes(16)# 16 bytes ZERO# sm4 ecb encryptsm4e=pygmlib.cipher.Sm4EcbEncryptor(sm4_key)ct=sm4e.update(sm4_pt)ct+=sm4e.final()# sm4 ecb decryptsm4d=pygmlib.cipher.Sm4EcbDecryptor(sm4_key)pt=sm4d.update(ct)pt+=sm4d.final()assertpt==sm4_pt# key: 00000000000000000000000000000000# pt : 00000000000000000000000000000000# ct : 9f1f7bff6f5511384d9430531e538fd3print("key:",sm4_key.hex())print("pt :",sm4_pt.hex())print("ct :",ct.hex())
Package: pygmlparser
PyGMLParseris aGraph Modeling Language (GML)standalone parser for Python 3.It is a fork of:icasdri/gml.pyGet it from PyPi by doing:pip3 install PyGMLParserUsesTravis CIfor continuous  integration.The class documentation ishereThe specific updates are:Updated to Python 3Use f-stringsSeparate files for each classUse packages instead of single fileUpdated GML format from Tulip .gml files to include the following keywords keyword used by thePython Tulipgml exporter ('GML Export')graphicsLinepointUse dataclasses for graphics and pointsUse type hinting and custom typing for readability and maintainabilityUse Python logging for debuggingIntroduced a set of small unit testsThe fast and the dirtyfromorg.hasii.pygmlparser.ParserimportParserfromorg.hasii.pygmlparser.GraphimportGraphfromorg.hasii.pygmlparser.EdgeimportEdgefromorg.hasii.pygmlparser.NodeimportNodefromorg.hasii.pygmlparser.graphics.NodeGraphicsimportNodeGraphicsfromorg.hasii.pygmlparser.graphics.EdgeGraphicsimportEdgeGraphicsfromorg.hasii.pygmlparser.graphics.PointimportPoint# Instantiate a parser, load a file, and parse it!parser:Parser=Parser()parser.load_gml('/path/to/aGraph.gml')parser.parse()# Retrieve the graph nodesnodes:Graph.Nodes=graph.graphNodes# a map of id -> Node objects# Retrieve the graph edgesedges:Graph.Edges=graph.graphEdges# list of Edge objects# Directly access the node or edge attributesnode:Node=graph.graphNodes[0]edge:Edge=graph.graphEdges[0]node.id# the id of this nodeedge.source# the source id of this edgenode.is_anon# whether or not this node actually appeared as a node block# in the input GML (or if it was inferred, via edge source/targets)# _True_ if inferred, False if actually appearednode.forward_edges# List of Edge instances whose source is this nodenode.backward_edges# List of Edge instances whose target is this node# Special attributes on Edgesedge.source_node# Node object corresponding to edge.source (which is an id)edge.target_node# Node object corresponding to edge.target (which is an id)# Get the Tulip extensionsedgeGraphics:EdgeGraphics=edge.graphicsnodeGraphics:NodeGraphics=node.graphics# Get the edge line drawing descriptionline:Tuple[Point]=edgeGraphics.line
Package: pygmm
pyGMMGround motion models implemented in Python.I have recently learned that additional ground motion models have been implemented through GEM’s OpenQuakeHazardlib, which I recommend checking out.FeaturesModels currently supported:Akkar, Sandikkaya, & Bommer (2014) with unit testsAtkinson & Boore (2006)Abrahamson, Silva, & Kamai (2014) with unit testsAbrahamson, Gregor, & Addo (2016) with unit testsBoore, Stewart, Seyhan, & Atkinson (2014) with unit testsCampbell (2003)Campbell & Bozorgnia (2014) with unit testsChiou & Youngs (2014) with unit testsDerras, Bard & Cotton (2013) with unit testsIdriss (2014) with unit testsPezeshk, Zandieh, & Tavakoli (2001)Tavakoli & Pezeshk (2005)Conditional spectra models:Baker & Jayaram (2008) with unit testsKishida (2017) with unit testsDuration models:Kempton and Stewart (2006)Afshari and Stewart (2016)Most models are tested with unit tests that test the implemention of the model.CitationPlease cite this software using theDOI.ContributorsAlbert KottkeGreg LavrentiadisArtie RodgersHistory0.6.6 (2023-12-11)Added: Return tau and phi in the standard deviation calculations0.6.5 (2022-09-16)Added: Afshari and Stewart (2016) duration modelAdded: Kempton and Stewart (2006) duration model0.6.4 (2022-01-24)Added: Bayless and Abrahamson (2019)0.6.3 (2021-12-08)Fixed: error in ASK14 on a7 term0.6.2 (2021-10-19)Changed: Move site amplification to static functions on some GMPEs0.6.1 (2020-06-03)Added Coppersmith & Bommer (2014) model for HanfordFactored tests0.6.0 (2019-08-12)Added Abrahamson, Gregor, Addo (2014)Added Abrahamson & Gulerce (2011)Added conditional mean spectra models.Added Scenario objects.Added typing for all classes.0.4.0 (2016-04-08)Added Hermkes et al. (2014).Improved documentation.Added Baker & Jayaram (2008), Kishida (2017)0.3.2 (2016-03-30)Nothing changed yet.0.3.1 (2016-03-30)First release on PyPI.
Package: pygmol
Introduction to PyGMolPyGMol(the Python Global Model) is a simple-to-use 0D model of plasma chemistry.At its current form, thepygmolpackage defines the
system of ordinary differential equations (ODE) which govern the plasma chemistry, and
solves them using thescipy.integrate.solve_ivpsolver.
Quantities resolved presently by thepygmolmodel are the densities of all the
heavy species specified by the chemistry input, electron density, and electron
temperature (while heavy-species temperature is treated as a parameter to the model).The equations being solved for by the model are documented in their full form in theequationsdocument. The package inner workings, structure and some useful examples
are discussed in thedocumentation. For further info, refer to the codebase
docstrings.Installation:Thepygmolpackage can be installed either fromPyPIpython3-mpipinstallpygmolor from theGitHubpagepython3-mpipinstallgit+https://github.com/hanicinecm/pygmol.gitFor Developers:It goes without saying that any development should be done in a clean virtual
environment.
After cloning or forking the project from itsGitHubpage,pygmolcan be
installed into the virtual environment in the editable mode by runningpipinstall-e.[dev]The[dev]extra installs (apart from the package dependencies) also several
development-related packages, such aspytest,coverage,ipython, orblack.
The unit tests can then be executed, as well as the suite of run tests and documentation
tests, by running (from the project root directory)pytest[--cov]pytestrun_testspytestdocsrespectively.The project does not have therequirements.txtfile by design, as all the package
dependencies are rather handled by thesetup.py.
The package therefore needs to be installed locally to run the tests, which grants the
testing process another layer of usefulness.Docstrings in the project adhere to thenumpydocstyling.
The project code is formatted byblack.For anyone interesting in further development ofpygmol,thisis where one might start.A note on version numbering: Following themajor.minor.microversioning convention,
theminorversion should be increased, if the document describing the maths behind
theequationsrequires an update. Themicroversion increases are reserved for any
other non-breaking changes, such as documentation updates, some minor api tweaks, etc.
And themajorversion? You tell me, I have no plan as where to go with it…
Package: py-gmp
pygmp - Multicast Routing in LinuxPython interface and services for Linux multicast routing.Limitations / RoadmapThis is a work in progress.  Currently, only IPv4 multicast routing is supported.  The software has only been tested on Ubuntu 20.04, and is not garenteed to work on other distros.  The only implementation thus far is a simple, IPv4, static multicast router with a REST API.Quick StartInstall the library with all dependencies needed to run router services.pipinstallpy-gmp[daemons]IPv4 Static Multicast RoutingSetup the simple daemon's config file.  The default location for the file is at/etc/simple.ini.For example, say I have two network interfaces: eth0 and br0.  I'd like route all incoming multicast for groups239.1.0.1/24on the eth device to the bridge.  The config file would look like this.[phyints]names=eth0,br0[mroute_1]from=eth0group=239.1.0.1/24to=br0Next, start the daemon.sudopython3-mpygmpsimpleSourceInstall thetaskutility.  This utility is used to standardize build and test processes.taskinstallIPv4 Static Multicast RoutingRun an example static multicast router implementationtaskrunIn your browser, you should be able to hithttp://172.20.0.2:8000/docsto see the OpenAPI documentation.Roadmapfinalize IPv4 simple multicast daemon implementationCI/CD / semantic versioning / create a pip registryMLD/IPv6 supportpimd daemon implementationDockerized exampleexpand testing to other distrosHost Configuration GotchasMost new distibutions set the IGMP version to 3.  To test with IGMPv2, you'll need to set it to 2 and reboot.  Also, make sure mc_forwarding is enabled.  Change the values in/etc/sysctl.conf.  Then, reboot.net.ipv4.ip_forward = 1
net.ipv4.conf.all.force_igmp_version = 2
net.ipv4.conf.default.force_igmp_version = 2
net.ipv4.conf.all.mc_forwarding = 1
net.ipv4.conf.default.mc_forwarding = 1
Package: pyGMs
pyGM : A Python toolbox for Graphical ModelsThis code provides a simple Python-based interface for defining probabilistic
graphical models (Bayesian networks, factor graphs, etc.) over discrete random
variables, along with a number of routines for approximate inference.  It is
being developed for use in teaching, as well as prototyping for research.The code currently usesNumPyfor representing and
operating on the table-based representation of discrete factors, andSortedContainersfor some
internal representations.  Smaller portions usenetworkxandscipyas well.InstallationSimply download or clone the repository to a directorypyGM, and add its
parent directory to your Python path, either:$ export PYTHONPATH=${PYTHONPATH}:/directory/containing/or in Pythonimport sys
sys.path.append('/directory/containing/')
Package: pyg-multiagent
DocumentationThe official repo for the CoRL 2022 paper 'Learning Control Admissibility Models with Graph Neural Networks for Multi-Agent Navigation' [project page]The ultimate goal is to provide a benchmark and a handy tool for GNN researchers to conduct evaluations properly and fairly for multi-agent tasks.Note: The current repo is actively under maintenance.Installationcondacreate-npygmapython=3.8
condaactivatepygma# install pytorch, modify the following line according to your environmentcondainstallpytorchtorchvisiontorchaudiocudatoolkit=11.3-cpytorch# install torch geometric, refer to https://github.com/pyg-team/pytorch_geometriccondainstallpyg-cpyg# install pyg_multiagentpipinstallpyg_multiagent
Package: pygmy
pygmy is a little app that colorizes source codez in your Python templates.
Supported template engines:DjangoandJinja2.RequirementsPython 2.6+ (or Python 3.2+)pygments 1.6+Requirements for DjangoDjango 1.3+Requirements for Jinja2Jinja2 2.4+InstallationInstall using pip:pip install pygmyInstallation for DjangoAddpygmyto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'pygmy',
)Usage for DjangoRender the awesomeness in your template:{% load pygmy %}

{% pygmy object.code %}It also takes the same options asHtmlFormatterclass:{% pygmy object.code nowrap='True' linenos='table' %}LexersBy defaultpygmytries to guess which lexer to use based on the provided code.If you wish you can define any lexer ofPygments lexerslike so:{% pygmy object.code lexer='python' %}