Saravanan666/pypi-org huggingface dataset:
Package: teUtils
Additional Utilities for Tellurium that we have found useful in our workThis repo includes a number of useful utilities for Tellurium users. These include:InstallationYou can install teUtils using pip:pip install teUtilsDocumenationThe documentation can be found at:http://teUtils.readthedocs.io/en/latest/buildNetworksThis modules provides two methods to build a linear chain of reactions using either mass-action or Michaelis-Menten
kinetics or a random network using uniuni, unibi, biuni or bibi mass-action governed reactions.odePrintThis provides a number of methods to convert SBML into the equations representing the model.plottingThis modules contains a variety of additional plotting methods, include 3D, heatmaps for control coefficients, ascii plots, phase plots and more.prettyTabularThis modules provides two methods to display fluxes and concentrations in a neat tabular format using jsut ascii characters.fileUtilsFile utilties that simply some operation whch for some reason are not available in PythonparameterScanningThis package only has one method currently which is a single method to make time course parameter scanning easier
Package: teventlet
Teventlet provides a light-weight easy-to-use mechenism for handling events. Each eventlet object is it’s own event, to which you can add callbacks with +=. To call the event, you can call the object with any arguments, or call the invoke method with any arguments.PurposeThe purpose of Teventlet is to provide a mechenism that can be used to handle events. For example, if you wanted to attach events to an object in a game, for events such as collisions, you would have a teventlet per event. The publisher (in this case whatever checks for collisions) would be responsible for calling the invoke method on the event, while anything wanting to know when a collision occured would add a method to the callback list with the += operator.UsageHere is a quick example to get you going.:>>> from __future__ import print_function
>>> from teventlet import teventlet
>>> adder = teventlet(lambda x:print(x+1), lambda x:print(x+2))
>>> adder.invoke(2)
3
4
>>> len(adder)
2
>>>As you can see, we pass two lambdas to the adder: a lambda that prints x+1, and a lambda that prints x+2. You could easily replace these with functions. By calling invoke, we pass in an argument that gets sent to our lambdas. You can also call the event as if it were a function.:>>> adder(5)
6
7
>>>See AlsoI have written a blog post, which can be found athttp://tds-solutions.net/blog/?p=137. This gives some more examples of how to use Teventlet, as well as explains it’s purpose in more detail.
Package: tew652brp
TEW-652BRPPython interface for working with the TEW-652BRP router APIInstallationpipinstalltew652brpUsageimportgetpassfromtew652brp.clientimportClient# Session creationclient=Client('http://192.168.10.1')# Enter your datausername=input('Username: ')password=getpass.getpass()# Try to loginifclient.login.login(username,password):# Get all virtual serversvirtual_servers=client.virtual.get_servers()# Turns on all virtual serversforserverinvirtual_servers:server.enabled=1client.virtual.update_server(server)
Package: tewl
py-tewlKewl tools for PythonGithub repository:https://github.com/kristjanvalur/py-tewl/Documentationhttps://kristjanvalur.github.io/py-tewl/Releasing a new versionCreate an API Token onPypi.Add the API Token to your projects secrets with the namePYPI_TOKENby visitingthis page.Create anew releaseon Github.
Create a new tag in the form*.*.*.For more details, seehere.Repository initiated withfpgmaas/cookiecutter-poetry.
Package: tex
The python-tex project is obsolete!Please have a look atTexcaller.Python-tex is a convenient interface
to the TeX command line tools
that handles all kinds of errors without much fuzz.Temporary files are always cleaned up.
The TeX interpreter is automatically re-run as often as necessary,
and an exception is thrown
in case the output fails to stabilize soon enough.
The TeX interpreter is always run in batch mode,
so it won’t ever get in your way by stopping your application
when there are issues with your TeX source.
Instead, an exception is thrown
that contains all information of the TeX log.This enables you to debug TeX related issues
directly within your application
or within an interactive Python interpreter session.Example:>>> from tex import latex2pdf
>>> document = ur"""
... \documentclass{article}
... \begin{document}
... Hello, World!
... \end{document}
... """
>>> pdf = latex2pdf(document)>>> type(pdf)
<type 'str'>
>>> print "PDF size: %.1f KB" % (len(pdf) / 1024.0)
PDF size: 5.6 KB
>>> pdf[:5]
'%PDF-'
>>> pdf[-6:]
'%%EOF\n'
Package: tex2img
tex2imgA texture decompression C++-extension for Python.InstallationNotesFunctionsSourcesInstallationpip install tex2imgor download/clone the git and usepython setup.py installNotesetcpack causes a segfault on linux systems, so linux systems will use basisu under the hood for etc insteadFunctionsAll functions accept only args and aren't able to handle kwards atm.basisu_decompressDecompresses data to RGBA via basisu's unpack_block function.Args: (compressed data: bytes, width: int, height: int, format: int)Returns: bytesFormats:FormatModeNote0cETC1ETC11cETC1SETC1(subset:diff colors only, no subblocks)2cETC2_RGBETC2 color block3cETC2_RGBAETC2 alpha block followed by ETC2 color block4cETC2_ALPHAETC2 EAC alpha block5cBC1DXT16cBC3DXT5(DXT5A block followed by a DXT1 block)7cBC4DXT5A8cBC53DC / DXN(two DXT5A blocks)9cBC710cASTC4x411cPVRTC1_4_RGB12cPVRTC1_4_RGBA13cATC_RGB14cATC_RGBA_INTERPOLATED_ALPHA15cFXT1_RGB16cPVRTC2_4_RGBA17cETC2_R11_EAC18cETC2_RG11_EACdecompress_astcDecompresses raw astc-compressed data to RGBA.Args: (compressed data: bytes, image width: int, image height: int, block_width: int, block_height: int, isSRGB: False)Returns: bytesdecompress_atcDecompresses raw atc-compressed data to RGB(A).Args: (compressed data: bytes, width: int, height: int, alpha: bool)Returns: bytesalpha = False for ATC_RGB
alpha = True for ATC_RGBAdecompress_pvrtcDecompresses raw pvrtc-compressed data to RGBA.Args: (compressed data: bytes, width: int, height: int, do2bit_mode: 0)Returns: bytesdecompress_etcDecompresses raw etc-compressed data to RGB(A).Args: (compressed data: bytes, width: int, height: int, format: int)This function has a memory leak, so it might crash if you use it on too many images at once (~500+).
The basisu_decompress function also supports the most common ETC formats, so it is a good alternative.Formats:FormatMode0ETC1_RGB_NO_MIPMAPS1ETC2PACKAGE_RGB_NO_MIPMAPS2ETC2PACKAGE_RGBA_NO_MIPMAPS_OLD3ETC2PACKAGE_RGBA_NO_MIPMAPS4ETC2PACKAGE_RGBA1_NO_MIPMAPS5ETC2PACKAGE_R_NO_MIPMAPS6ETC2PACKAGE_RG_NO_MIPMAPS7ETC2PACKAGE_R_SIGNED_NO_MIPMAPS8ETC2PACKAGE_RG_SIGNED_NO_MIPMAPS9ETC2PACKAGE_sRGB_NO_MIPMAPS10ETC2PACKAGE_sRGBA_NO_MIPMAPS11ETC2PACKAGE_sRGBA1_NO_MIPMAPScrunch_get_texture_infoRetrieves texture information from the CRN file.Args: (data: bytes)Returns: dictcrunch_get_level_infoRetrieves mipmap level specific information from the CRN file.Args: (data: bytes, mipmap_leve: int)Returns: dictcrunch_unpack_levelTranscodes the specified mipmap level to a destination buffer.Args: (data: bytes, mipmap_level: int)Returns: bytesSourcesATC & ASTCThe completeBinomialLLC/basis_universalis used and supported. It's default for the ATC and ASTC decompression.ETCThe whole source ofEricsson/ETCPACKis used for the ETC decompression.PVRTCPVRTDecompress.cppandPVRTDecompress.hofpowervr-graphics/Native_SDKare used for the PVRTC decompression.crunchA mixed version ofBinomialLLC/crunchandUnity-Technologies/crunchis used.The Unity fork doesn't yield correct results for the original modes, so the BiomialLLC version is used for all modes besides ETC, which was created byUnity.
Package: tex2ipy
This package makes it easy to convert a LaTeX file (currently) typically
using the beamer package into an IPython notebook withRISE.To use the package, simply run:$ tex2ipy talk.tex talk.ipynbThis does not attempt to completely cover all TeX macros. Bulk of the
basics should work hopefully covering 90% of the basic macros.There is a simple example presentation LaTeX file in theexamplesdirectory along with the converted IPython notebook.CustomizationIf you wish to support more macros or your own, you can subclassTex2Cellsand add any handlers for your own macros. Let us say you
add additional methods to your subclass and in a file calledcustomize.pyyou can use this file as follows:$ tex2ipy -c customize.py talk.tex talk.ipynbThis will use your customizations for the conversion.Known issuesDoes not yet handle tables/tabular environments.tex2ipyuses the very convenientTexSouppackage to parse
LaTeX. This package has a few minor issues with parsing inline math
expressions embedded inside itemize/enumerate lists. This can cause
some issues when converting files.
Package: tex2pix
A little library which renders LaTeX to various formats, using applications on
your system like latex, pdflatex, bibtex, dvips, ps2eps, and convert. LaTeX is
automatically run as many times as necessary to achieve a clean compile (with a
user-provided max number of attempts), and Bibtex processing is supported.Compilation takes place in temporary directories which are automatically cleaned
up, can be initiated on a file or text string and include extra input files, and
rendering stages are cached to reduce rendering latency.See also the ‘tex’ module, for a more established TeX renderer with different
design requirements.Usage example:import tex2pix
f = open('example.tex')
r = tex2pix.Renderer(f, runbibtex=True, extras=['example.bib'])
#r.verbose = True # be loud to the terminal
#r.rmtmpdir = False # keep the working dir around, for debugging
r.mkeps('example.eps')
r.mkpng('example.png')
r.mkpdf('example.pdf')  # uses cached version from PNG build
r.mk('duplicate.pdf') # auto-detect format; uses cached PDF

tex2pix.check_latex_package('tikz.sty')TODO:Provide mechanism (hidden?) for threaded parallel compilation.
Package: tex2svg
tex2svgpip3installtex2svgA simple program to convert a LaTeX equations to SVGs.# for "inline mode" LaTeXecho"x^2"|tex2svg>x2.svg# for "block" LaTeXecho"x^2"|tex2svg--block>x2.svgDepends onpdflatex,pdfcrop,pdf2svg, andsvgo. On Arch Linux, you can install these with:sudopacman-Spdf2svgtexlive-mostnpm
sudonpminstall-gsvgoThis program automatically caches outputs. The cache is stored in~/.tex2svg.
Package: tex2txt
Tex2txt: a flexible LaTeX filterThis Python script or module extracts plain text from LaTeX documents.
Due to the following characteristics, it may be integrated with a
proofreading software:tracking of line numbers or character positions during text manipulations,simple inclusion of own LaTeX macros and environments with tailored
treatment,careful conservation of text flows,detection of trailing interpunction in equations,proper handling of nestable LaTeX elements like {} braces.A more complete description is available at theGitHub page.
For instance, the LaTeX inputOnly few people\footnote{We use
\textcolor{red}{redx colour.}}
is lazy.will lead to the subsequent output from example application script shell.py.
The script invokesLanguageToolas proofreading software, using a local installation or the Web server
hosted by LanguageTool.1.) Line 2, column 17, Rule ID: MORFOLOGIK_RULE_EN_GB
Message: Possible spelling mistake found
Suggestion: red; Rex; reds; redo; Red; Rede; redox; red x
Only few people is lazy.    We use redx colour. 
                                   ^^^^
2.) Line 3, column 1, Rule ID: PEOPLE_VBZ[1]
Message: If 'people' is plural here, don't use the third-person singular verb.
Suggestion: am; are; aren
Only few people is lazy.    We use redx colour. 
                ^^Run with option --html, the script produces an HTML report:
Package: tex4svg
Project Page :rod2ik/tex4svgThis project is part of other mkdocs-related projects.If you're interested, please consider having a look at this page for a more complete list of all our mkdocs-related projects:https://eskool.gitlab.io/mkhack3rs/Initial Influences and History :For All newer Credits: Rodrigo Schwencke atrod2ik/tex4svg3 lines initially inspired by Ryan Marcus atRyanMarcus/tex2svgLicences:Rodrigo Schwencke :GPLv3+
Package: texar
Texar is an open-source toolkit based on TensorFlow,
aiming to support a broad set of machine learning especially text generation
tasks, such as machine translation, dialog, summarization, content manipulation,
language modeling, and so on.Texar is designed for both researchers and practitioners for fast prototyping
and experimentation. Checkouthttps://github.com/asyml/texar-pytorchfor the
PyTorch version which has the same functionalities and (mostly) the same
interfaces.
Package: texar-pytorch
Texar-PyTorch is an open-source toolkit based on PyTorch,
aiming to support a broad set of machine learning especially text generation
tasks, such as machine translation, dialog, summarization, content manipulation,
language modeling, and so on.Texar is designed for both researchers and practitioners for fast prototyping
and experimentation. Checkouthttps://github.com/asyml/texarfor the TensorFlow
version which has the same functionalities and (mostly) the same interfaces.
Package: texbib
BibTexbib is a program that helps you to manage your BibTeX references.InstallationTo install bib use the following commandspip install --user texbibUsageBasicsTo add the contents of a BibTeXfoo.bibfile to the global bibliography type into a shell$ bib add foo.bibYou can specify as many files as you want in a singe command.
The entries in the bibliography can be addressed by the ID that is specified in the BibTeX file.You can also add a reference via itsDOI,
either in thedoi:…format or as URL starting withhttps://doi.org/.$ bib add doi:10.1002/andp.19053220806This will make a request to the crossref api.Preprints from arXiv may be added similarly:$ bib add arXiv:1306.4856You can have a look at the references in the bibliography with$ bib showLater you probably want to create a new file with all the references in your document directory.
Use the handydumpcommand for that.$ bib dump
Wrote to default.bibTo remove a single item with IDfoo2000from the active bibliography$ bib rm foo2000Using BibliographiesYou can group your references into bibliographies. To create one calledmyBibbib init myBibAfter creation it is your new active bibliography.
Everything you add and remove will be applied to it instead of the default one.To see what bibliographies exist and which is active$ bib list
  default
* myBibTo change the active bibliography to an existing one use thecheckoutcommand.$ bib checkout defaultA bibliography can be removed with$ bib delete myBib
Package: texbld
texbldAlthough we expect LaTeX compilation to be a declarative process (source to
PDF), the compilations for large projects eventually require a large number of
custom external programs and dependencies. For example, a compilation step might
require running a script written in haskell, piping that output into pandoc,
then putting everything into a LaTeX file for compilation withpdflatex. Good
luck installing all of those programs (ESPECIALLY the pesky ghc dependencies) in
a production system!Furthermore, different LaTeX distributions will have ever so slightly different
outputs (especially when working with biblatex), which is an issue for
reproducibility.The first take on these problems wasmktex. Although it solves some
dependency issues, it suffers from the various fragility and reproducibility
issues that come with using pre-built docker images. Furthermore, because of its
design, these images were forced to be monolithic, bloated, and ultimately
inflexible. Each build should have exactly the dependencies that it requires
and nothing more!texbldaims to solve these problems by providing an environment where build
images are fully reproducible and shareable. It uses docker for absolute system
reproducibility and for usage across all platforms which it supports (MacOS, its
native Linux, and Windows (untested)).Image hashes are used to ensure that any docker image iscompletely immutable,
preventing dependency modification issues.Users can specify their build image in a simple TOML file (along with associated
files) and upload them to github, from which it can be inherited and used by
other people in their own projects.Images can be inherited from packages in the local filesystem, GitHub, or Docker.InstallationThe project is live onpypi.Various installation methods are describedhere.NixOSCheck the nix expressions in the release branch and configure accordingly.In order to build the master branch, runnix-buildornix build(to use
flakes).Setting Up This ProjectNixOSRunningnix developshouldset up everything. Note, however, that the
resulting poetry virtual environment will be installed in~/.cache/pypoetry/virtualenvs, so it's not completely nix-based.Non-NixOSThis project uses poetry as its dependency manager. Simply runpoetry installandpoetry shellinside the project directory, and you should land in a
virtual environment with all of your dependencies.TestingIn order to run tests in the virtual environment, runpytest.The Local EnvironmentThe project configuration file should be in(project root)/texbld.toml, while
local image configurations should be in$HOME/.config/texbld/packages.
Package: texbuild
texbuildtexbuildis a build system for LaTeX documents.
It provides namespacing for labeled items.
Consider a LaTeX document composed of a main file% main.tex

\documentclass{article}
\begin{document}
This is an equation
\begin{equation}
  f(x) = x \label{equation}
\end{equation}
\input{foo.tex}
Let's refer to Equation~(\ref{equation}).
\end{document}which includes a subordinate file% foo.tex

\begin{equation}
  f(x) = x^2 \label{equation}
\end{equation}In this situation,\ref{equation}is ambiguous because both files use\label{equation}and the namespace for labeled items in LaTeX is global.texbuildfixes this by supporting import semantics:% main.tex

% -- begin imports --
% import foo as foo
% -- end imports --

\documentclass{article}
\begin{document}
This is an equation
\begin{equation}
  f(x) = x \label{equation} % export
\end{equation}
\input{foo.tex}
We can refer to foo's Equation~(\ref{foo.equation}) or our own Equation~(\ref{equation}).
\end{document}and% foo.tex

\begin{equation}
  f(x) = x^2 \label{equation} % export
\end{equation}ExampleTo seetexbuildin action, install it and use it to build the example LaTeX documemt provided in this repo, by following these steps:$ pip install texbuild
$ git clone https://github.com/DanielSank/texbuild
$ cd texbuild/example
$ texbuild

This produces `texbuild/example/texbuild-out/main.pdf`, which illustrates the use of `texbuild`.
Package: texdown
pyfoobarA Python project template that highlights some best practices in Python packaging. Can
be used as aGitHub
templatefor your new Python project.Best practicesThenameof the Git repository should be the PyPi name of the package and should
be what you type asimport mypackagename. That means no hyphens in package
names!Your package should be aone-trick pony. Nobody wants to install a huge toolbox if
all they need is the image converter in it.Choose alicensefor your code and provide aLICENSE[.txt]in the root level of
your package as well as a statement in your main README.choosealicense.comcan help you make a decision.Uselinting and formatting, include those in your integration tests.blackis a formatter that I like because you
cannot configure it -- black is black.Good linters areflake8andpylint.isortsorts your imports.pre-commithas gained some popularity. It runs your
linters and formatters on every commit. Not more "lint fix" commits.Once you have tests in order, make sure they are executed with every git push.
PopularCI servicesthat run your tests areGitHub
Actions,Travis CI,
andCircleCI. This repository contains the config files for
each of them.Make sure thatnobody can push to main. On GitHub, go to Settings -> Branches ->
Add rule and selectRequire status checks to pass before mergingandInclude
administrators. Development happens in pull requests, this makes sure that nobody --
including yourself -- ever accidentally pushes something broken to main.Use a tool for measuringtest coverage.codecovis one, and
your CI provider submits the data to it.If you have CI set up, want to show test coverage, or advertise
the availability on PyPi, do so using abadgeat the top of your README. Check outshields.iofor what's available.Includecontributing guidelinesand acode of
conduct(edit to add appropriateenforcementcontacts oruse a
template)
to help foster a community.What you can do with this templateFirst runfind . -type f -print0 -name "*.py" -o -name "*.yml" | xargs -0 sed -i 's/pyfoobar/your-project-name/g'and rename the foldersrc/pyfoobarto customize the name.There is a simplejustfilethat can help you with
certain tasks:Runjust formatto apply formatting.Runjust lintto check formatting and style.Runjust publishtotag your project on git (just tag)upload your package to PyPi (just upload)After publishing, people can install your package withpip install pyfoobarTestingTo run the pyfoobar unit tests, check out this repository and dotoxLicenseThis software is published under theMIT
license.
Package: texel
texel - Command line interface for reading spreadsheets inside terminal.Sometimes, you have to deal with spreadsheets. Those are sad times.
Fortunately there is texel!Texel is a useful CLI for quickly reading spreadsheets and
copying their contents to clipboard in CSV format.Usagetexel [-h] [-d DELIMITER] [-c CELLWIDTH] [-p PRECISION]
             [--fillna FILLNA]
             FILE

positional arguments:
  FILE                  Spreadsheet path (csv, xls, xlsx, xlsm,
                        xlsb, odf, ods or odt)

optional arguments:
  -h, --help            show this help message and exit
  -d DELIMITER, --delimiter DELIMITER
                        Delimiter for csv files
  -c CELLWIDTH, --cellwidth CELLWIDTH
                        Width of a cell
  -p PRECISION, --precision PRECISION
                        Precision of floating point numbers
  --fillna FILLNA       Value to use to fill holes in the
                        spreadsheetCommands⬆️⬇️⬅️➡️ /kjhl- Move<TAB> <SHIFT-TAB>/n <SHIFT-n>- Switch sheetv- Visual/selection mode<ESC>- Exit visual/selection modec/y- Copy selected cell(s)?- Helpq- ExitSupported file formats:xlsxxlsmxltxxltmxlsbxlscsvodtodfodsInstallation$ pip install texelLicenceMIT
Package: texeq
LaTeX equation to vector image. This is a Python script/module that allows to produce images from LaTeX equations. In particular it has been designed to manage a cache of expressions generated to speedup the process in certain conditions, and also to automatically convert the output to the required target.Currently it supports PDF SVG and PNG by means of some external toolsRequirements:
- pdflatex with standalone and varwidth packages
- SVG requires the package pdf2svg
- PNG requires ImageMagick that provides convert utilityNote: the conversion from PDF to SVG provided by ImageMagic does not work wellTested under Ubuntu 13.04Repository:https://github.com/sankazim/pytexeq