Saravanan666/pypi-org huggingface dataset:
Package: texere
Texere: This is the start of a new ModuleCurrently it has two function 1.Text Removal from Images and generate mask 2.Marking Edges in ImagesTexere is a Python package that provides functionality for removing text from images and marking edges, along with the option to generate a mask for further processing.InstallationYou can install Texere using pip:pip install texereUsage:Removing Text from Imagesfrom texere.purge import txt

modified_image, mask = txt('image_path.jpg',pixels,threshold)

# 'modified_image' contains the image with text removed
# 'mask' is a binary image indicating the regions where text was removed
# Further processing using the 'mask' image can be done hereMarking Edges in the imagefrom texere.edges import mark

# Replace 'image_path.jpg' with the path to your input image
marked_image = mark('image_path.jpg',threshold)

# 'marked_image' contains the image with marked edges
# You can further process or visualize the edges hereExample:Removing Text from Imagesfrom texere.purge import txt

# Replace 'input_image.jpg' with the path to your input image
modified_image, mask = txt('input_image.jpg',7,10)

#threshold value is from 0-100
#pixels value >0
#depending on these two value the image will turn out Good 
# Save the modified image
cv2.imwrite('output_image.jpg', modified_image)

# Save the mask as a binary image its a grayscaled image so it can be used for impainting the text area
cv2.imwrite('mask_image.jpg', mask)Marking Edges in the imagefrom texere.edges import mark

# Replace 'input_image.jpg' with the path to your input image
marked_image = mark('input_image.jpg',threshold)
#threshold value can be between 0-255 also images i tried on works best with 70 
# Save the marked image
marked_image.save('marked_image.jpg')Contributing:Contributions to Texere are welcome! If you have ideas for improvements, bug fixes, or new features, feel free to open an issue or submit a pull request on GitHub.License:This project is licensed under the MIT License - see the LICENSE file for details.
Package: texflash
TexFlashA web app to parse flash cards from Latex file and learn.:warning:This app is in alpha stage: There are definitely many bugs. The code is not clean at all. Features are very limited.InstallCloning the repogit clone git@github.com:ListIndexOutOfRange/TexFlash.git
cd TexFlash/
pip install requirements.txtPip installpip install texflashLaunch the appcd TexFlash/
streamlit run texflash/app.pyHow to useTexFlash is intended to be extremely easy to use.1. Add tags to your tex fileAnywhere in a .tex file, you can add commented line with the following tags:% <BCT>: Begin Card Title% <ECT>: End Card Title% <BCC>: Begin Card Content% <ECC>: End Card Content2. Use the appOnce the app is launched you can proceed as follows:Add a new "source" (i.e. a .tex file): the file structure and cards will be parsed automatically.Select cards by tags or by sources.Run training.Get training statistics.Sources are stored as pickle files on a hidden folder named.data/.Note that newcommands are parsed so that equation using them will be rendered !demo.webm
Package: texim
teximtexim: text similarity
text similarity tool, and it works better for record linkage!Descriptiontexim is text similarity tool, for record linkage task.we proposed 2 points forcosineandjaccardsimilarity:length sensitive weightsemi-match method for field matchingweight typeClassical cosine similarity use TF-IDF as weight of tokens, and we use TF here just for short string. It is common for record linkage to match some field. like name, email, address and so on.we have 3 weight types here:tf : token frequency of tokenlen : length of token1 : const 1semi-matchAbbreviations is common for us, "alan turing" vs "a turing", and semi-match can match "alan"="a" and "turing"="turing".InstallpipinstallteximExamplesfromteximimportsimilarity,words_match## semi-matchtokens1=["vandesompele","j"]tokens2=["jo","vandesompele"]words_match(tokens1,tokens2,semi_match=False)# [("vandesompele", "vandesompele")]words_match(tokens1,tokens2,semi_match=True)# [("vandesompele", "vandesompele"), ("j", "jo")]## cosine similaritytext1,text2="vandesompele j","jo vandesompele"text3,text4="a b b b v","a b b c"similarity(text1,text2,semi_match=False,wtype="len")# 0.98similarity(text1,text2,semi_match=True,wtype="len")# 1.0similarity(text1,text2,semi_match=False,wtype="tf")# 0.5similarity(text3,text4,semi_match=False,wtype="tf")# 0.86similarity(text3,text4,semi_match=False,wtype="1")# 0.67## jaccard similaritysimilarity(text1,text2,method="jaccard",semi_match=False,wtype="tf")# 0.33similarity(text1,text2,method="jaccard",semi_match=False,wtype="len")# 0.8similarity(text1,text2,method="jaccard",semi_match=True,wtype="tf")# 1.0similarity(text3,text4,method="jaccard",semi_match=False,wtype="tf")# 0.64similarity(text3,text4,method="jaccard",semi_match=False,wtype="1")# 0.5Noticeall fields need to be converted tolowercase.you can call texim.cosine and texim.jaccard directly if you need a custom token cutting and weight countting.E-MailCheck the setup.py pls!
Package: texion
# texionTable of Contents[Installation](#installation)[License](#license)## Installationtexion is distributed on [PyPI](https://pypi.org) as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.6+.`bash $ pip install texion `## Licensetexion is distributed under the terms of the
[MIT License](https://choosealicense.com/licenses/mit).
Package: texlib
tex_wrap v1.00==============This is an implementation of the dynamic programming algorithm,originally developed by D.E. Knuth and M.F. Plass, used by TeX tobreak a paragraph into lines.  I won't describe the algorithm indetail here; for a full explanation, see the chapter describing it inKnuth's book _Digital Typography_, which explains the theory and showshow to use it to achieve various clever effects.The interface is fairly simple.  Create an ObjectList instance andfill it with a series of Box, Glue, and Penalty objects representing asingle paragraph.  When you've done that, call the ObjectList's.add_closing_penalty() method to add the standard glue and penalty fora paragraph end.  Then call its .compute_breakpoints() method whichdoes all the work and returns a list of integers, which are theindexes at which the text should be broken.The signature of this method is:def compute_breakpoints(self,line_lengths,looseness = 0,tolerance = 1,fitness_demerit = 100,flagged_demerit = 100,):line_lengths is the only required parameter, and is a list of integersgiving the lengths of each line.  The last element of the list isreused for subsequent lines.  So you can pass [100] for a paragraphthat's 100 units wide, or range(140, 20, -10) for a triangularparagraph.  There's no particular unit for width, so you can work inpoints or pixels or whatever you like.The rest of the parameters are optional.  looseness is an integervalue. If it's positive, the paragraph will be set to take that manylines more than the optimum value, so you can make a paragraph take upan extra line.  If it's negative, the paragraph is set that many linestighter, if possible; usually you'll only manage to set it a singleline tighter.  looseness defaults to zero, meaning the optimal lengthfor the paragraph.tolerance is the maximum adjustment ratio allowed for a line.  Itdefaults to 1, meaning that all the glue on the line is stretched upto its specified stretch value.fitness_demerit is additional value added to the demerit score whentwo consecutive lines are in different fitness classes.  There arefour classes: very tight, tight, loose, and very loose.  The algorithmtries to avoid having a very tight line next to a very loose line,because the difference is visible and distracting.flagged_demerit is an additional value added to the demerit score whenbreaking at the second of two flagged penalties.Once you've got the list of optimal breakpoints, formatting andoutputting the text is up to you; I haven't implemented an API forthis because I have no idea what such an API would look like.  Boxinstances have a 'character' attribute that you can specify, so youcan set this to the character for a given box for later use by anoutput pass.  (It needn't be a character; you could set it to anarbitrary object if you like, though then the name is rathermisleading.)Bug reports, sample code, and notes about the module's usage arewelcome; please send them to <amk@amk.ca>.--A.M. Kuchling 			http://www.amk.ca
Package: texlivemetadata
texlivemetadataGet metadata on your TexLive installation using Python.This library calls tlmgr and parse its ouput so it can then
be processed and used from Python.UsagepipinstalltexlivemetadataTeXLive version informationimporttexlivemetadata# Get version information on current TeXLive installation.print(texlivemetadata.get_texlive_version_information())# ---># {'texlive': {'installation_path': '/opt/texlive/2019',#              'modules': [{'name': 'TLConfig', 'value': '50190'},#                          {'name': 'TLUtils', 'value': '50493'},#                          {'name': 'TLPOBJ', 'value': '50211'},#                          {'name': 'TLPDB', 'value': '51110'},#                          {'name': 'TLPaper', 'value': '45795'},#                          {'name': 'TLWinGoo', 'value': '47907'}],#              'version': '2019'},#  'tlmgr': {'revision': '51217', 'revision_date': '2019-05-24 23:47:41 +0200'}}Package listingimporttexlivemetadata# List all packages exposed by tlmgr list:print(texlivemetadata.list_packages())# For listing only installed packages:print(texlivemetadata.list_installed_packages())Package informationimporttexlivemetadata# To get information on package (and whether it is installed or not):print(texlivemetadata.get_package_info("12many"))# ---># {#     "cat-date": "2016-06-24T19:18:15+02:00",#     "cat-license": "lppl",#     "cat-topics": [#         "maths"#     ],#     "cat-version": "0.3",#     "category": "Package",#     "collection": "collection-mathscience",#     "installed": true,#     "longdesc": "In the discrete branches of mathematics and the computer sciences, it will only take some seconds before you're faced with a set like {1,...,m}. Some people write $1\\ldotp\\ldotp m$, others $\\{j:1\\leq j\\leq m\\}$, and the journal you're submitting to might want something else entirely. The 12many package provides an interface that makes changing from one to another a one-line change.",#     "package": "12many",#     "relocatable": false,#     "revision": "15878",#     "shortdesc": "Generalising mathematical index sets",#     "sizes": {#         "run": "5k"#     }# }Utilsimporttexlivemetadata# To CTAN link for a package:print(texlivemetadata.get_ctan_link("12many"))# ---># "https://ctan.org/pkg/12many"
Package: texoid
TexoidPython server for LaTeX math rendering to SVG and PNG.
It is lightweight and perfect for embedding LaTeX documents into webpages, without the hassle of rendering the documents yourself.InstallationTexoid is super simple to set up and use.$pipinstalltexoidTexoid usestexbox, a Docker image built for converting LaTeX documents to SVG and PNG securely, without exposing your system to malicious LaTeX code. To use Texoid withtexbox,install Docker.Alternatively, Texoid can directly use LaTeX to render documents to DVI format,dvisvgmto convert to SVGs, and ImageMagick to convert SVGs into PNGs. On a typical Debian or Ubuntu machine, you can the dependencies for this with:$apt-getinstalltexlive-latex-basetexlive-binariesimagemagickRunning TexoidWith DockerTo run Texoid with Docker, simply run the following command with a user in thedockergroup:$texoid--port=<port>--dockerThis will automatically pull the latesttexboximage and start using it.Without DockerTo start the Texoid without Docker, use:$LATEX_BIN=<pathtolatex>DVISVGM_BIN=<pathtodvisvgm>CONVERT_BIN=<pathtoconvert>texoid--port=<port>The environment variables are not necessary if all three executables are present in/usr/bin. Here,convertrefers to ImageMagick'sconverttool.Using TexoidTexoid expects POST body to contain the LaTeX document to render. You should send the request with an appropriateContent-Type, for example,text/plain,application/x-tex, ortext/x-tex. Do not useapplication/x-www-form-urlencoded.Texoid also has a legacy API. This API usesapplication/x-www-form-urlencodedasContent-Type, and sends the LaTeX code form-encoded in theqfield.ResponseThe response will always contain a boolean field,success.Ifsuccessistrue:svgwill contain the SVG source of the rendered documentpngwill contain a base64-encoded binary PNG filemetawill be a dict containing two entries:width, the width of the rendered document in pixelsheight, the height of the rendered document, again in pixelsthese arguments are what the SVG/PNGs generated should be sized by to display properly in webpagesIfsuccessisfalse, the response will contain anerrorfield with the LaTeX error output.ExamplesIn these examples, a Texoid server is assumed to be running onlocalhost, port 8888. We will be rendering a simple LaTeX document:\documentclass{standalone}\begin{document}$E=mc^2$\end{document}A successful render$curl-H'Content-Type: text/plain'--data-raw'\documentclass{standalone}\begin{document}$E=mc^2$\end{document}'localhost:8888{"success":true,"svg":"<?xml version='1.0'?><svg....</svg>","png":"iVBORw0KGgoA....RK5CYII=","meta":{"width":"48","height":"10"}}A malformed request$curl-H'Content-Type: text/plain'--data'malformed'localhost:8888{"success":false,"error":"This is pdfTeX, Version 3.14159265-2.6-1.40.15...LaTeX Error: Missing \\begin{document}..."}And that's it!
Package: texonomy
texonomytexonomy* is a Python tool that facilitates the generation of
entity-relationship diagrams in $\LaTeX$ using TikZ.*An entity-relationship diagram is more of an ontology than a taxonomy, but
when the shoe fits...OverviewWriting $\LaTeX$ code can be tedious;texonomymakes it easier. This tool
generates entity-relationship diagrams in $\LaTeX$ using a beginner-friendly
Python interface, so you can spend less time wrestling with missing semicolons.PrerequisitesTo installtexonomy, you'll needpython3.8or higher andpip.In order to output as a PDF, you'll need to install some software that includespdflatex, like TeX Live (recommended):sudoaptinstalltexlive
sudoapt-getinstalltexlive-pictures# for TikZsudoapt-getinstalltexlive-plain-generic# for ulemGetting startedInstalltexonomywith the following command:pipinstalltexonomyExample usageLet's create a very simple program withtexonomy. First, we'll create
an Entity object to represent a fruit:fruit=Entity("Fruit",["SKU","name","price","origin"])The first argument is the entity's name, "Fruit". The second argument is a
list of the entity's attributes.Let's create a diagram that contains our fruit entity...diag=ERDiagram(fruit)...and output the generated $\LaTeX$ to a file!withopen("fruit.tex","w")aser:er.write(diag.to_latex())Then, you can runpdflatex(or something similar) on the command line to
generate a PDF from this $\LaTeX$:pdflatexfruit.texIt's that simple! Take a look at the programs intexonomy/tests/integration_testsfor more examples of API usage.
Package: texools
===========================Texools===========================.. image:: https://pyup.io/repos/github/cw-andrews/texools/python-3-shield.svg:target: https://pyup.io/repos/github/cw-andrews/texools/:alt: Python 3.. image:: https://img.shields.io/pypi/v/texools.svg:target: https://pypi.python.org/pypi/texools.. image:: https://img.shields.io/travis/cw-andrews/texools.svg:target: https://travis-ci.org/cw-andrews/texools.. image:: https://pyup.io/repos/github/cw-andrews/texools/shield.svg:target: https://pyup.io/repos/github/cw-andrews/texools/:alt: UpdatesPackage containing tools for working with text and text files, primarily focused on delimited files (CSVs).* Free software: MIT license.. * Documentation: https://texools.readthedocs.io.Features--------* TODO=======History=======0.1.0 (2017-09-21)*-------------------0.1.3 (2017-09-23)------------------0.1.4 (2017-09-23)------------------0.1.5 (2017-09-23)------------------0.1.6 (2017-09-23)------------------0.1.7 (2017-09-24)------------------0.1.8 (2017-09-24)------------------0.1.9 (2017-09-24)------------------0.2.0 (2017-09-24)------------------0.2.1 (2017-09-25)------------------0.3.0 (2017-09-28)------------------* First release on PyPI.
Package: texoutparse
TexOutParseSimple output/log file parsing library for LaTeX builds.LaTeX log files are notoriously unstructured and there is a wide variance in the style
and content of messages.
Messages can be roughly characterised as an error, an warning, a bad box, or info.
Packages and classes can also generate messages and, while there are template macros
for producing such messages, no structure is
enforced on the messages.Many LaTeX editors provide a log file parser that runs automatically on building
the document.
A summary of the errors, warnings, and bad boxes is usually displayed to the user.
There does not seem to be any library or tool for parsing log files separate from these editors.InstallalationThe library can be installed via PippipinstalltexoutparseUsageThe main class provided by this library isLaTexLogParser, which is used to parse
the log file and collect the statistics.fromtexoutparseimportLatexLogParserparser=LatexLogParser()withopen('sample.log')asf:parser.process(f)Theparserobject contains lists of errors, warnings, and bad boxes, each described by anLogFileMessageobject. Both objects provide a__str__method that prints a summary of the
error in the case ofLatexLogParserand the raw lines in the case ofLogFileMessage.>>> print(parser)
Errors: 1, Warnings: 1, Badboxes:1

>>> print(parser.errors[0])
! Undefined control sequence.
l.6 \dtae
{December 2004}ContributingFork it. (https://github.com/inakleinbottle/fork)Create a feature branch. (git checkout -b feature/name)Commit your changes. (git commit -m 'add some feature')Push the branch to Github. (git push origin feature/name)Create a pull request.MetaSam Morley -inakleinbottle.com-admin@inakleinbottle.comDistributed under the MIT license. SeeLICENSEfor more information.Release History1.0. Initial release
Package: texpj
TexPjEs una forma sencilla para manejar plantillas de LaTeX.Instalar plantilla con gitSi es desdeGithubpuede simplemente referirse a USUARIO/PROYECTO, en otro
caso active la bandera de url para clonar directamente desde el link.Ejemplostexpj install BenyaminGaleano/report reporte "reportes para electrónica"Explicación:texpj install recibe el Usuario y el nombre con el que se va a registrar
en este caso se podrá hacer uso de la plantilla a través dereporte, y sólo funcionaría si el
repositorio pertenece aGithub, la descripción es opcional.texpj install https://github.com/BenyaminGaleano/report.git "reportes para electrónica" reporte --urlExplicación:al igual que el anterior instala la plantilla con el nombrereporte, pero esta forma funciona con cualquier url compatible con git.Comandos disponiblesaddRegistra DIRECTORY como una plantilla de latex y lo identifica...createCrea una copia del template registrado como ALIAS en la posición...installInstala el TEMPLATE de forma local y lo regitra como ALIAS.launchSe encarga de abrir los archivos (primitivo).listLista todas las posibles plantillas guardadas.removeElimina la plantilla identificada como ALIAS, si es un enlace...updateActualiza el template identificado con el ALIAS.describecambiar la descripción de una plantilla.
Package: texplain
Documentation:https://texplain.readthedocs.ioUsagecommand-linetexindent:
Automatic indentation and formatting of a TeX-file.texcleanup:
Apply any of the following options to a TeX-file:Remove all comments or comment-lines.Modify all occurrences of a command, for example to change\TG{deleted}{inserted}toinserted.Rename a label.Ensure common prefixes for all labels.Ensure usage of\crefinstead of\ref.texplain:
Create a directory with a TeX-file and only its dependencies
(those figure-files and references that are actually included).
This is particularly useful to create a clean version to submit to a journal.pre-committexcleanup:repos:-repo:https://github.com/tdegeus/texplainrev:v0.8.0hooks:-id:texcleanupargs:[--format-labels,--use-cleveref]texindent:repos:-repo:https://github.com/tdegeus/texplainrev:v0.8.0hooks:-id:texindentargs:[]PythonAll of these tools wrap around aPython modulethat you can use just as well!DisclaimerThis library is free to use under theMIT license.
Any additions are very much appreciated, in terms of suggested functionality, code, documentation,
testimonials, word-of-mouth advertisement, etc.
Bug reports or feature requests can be filed onGitHub.
As always, the code comes with no guarantee.
None of the developers can be held responsible for possible mistakes.Download:.zip file|.tar.gz file.(c -MIT) T.W.J. de Geus (Tom) |tom@geus.me|www.geus.me|github.com/tdegeus/texplainGetting texplainUsing condacondainstall-cconda-forgetexplainUsing PyPipython-mpipinstalltexplainFrom source# Download texplaingitcheckouthttps://github.com/tdegeus/texplain.gitcdtexplain# Installpython-mpipinstall.
Package: texplotlibx
texplotlibxA python plotting library inspired by matplotlib using pgfplots/tikz to create graphics.DescriptionThis is a library for creating plots using tikz and pgfplots as a backend. One can create.texfiles which can then be compiled manually using an arbitrary latex compiler (e.g. pdflatex) or.tikzfiles which are essentially only the graphics part of a tex file. The latter can then simply be included in another latex file to create the plot in this document. There is also the option to create a.pdfplot directly, but this requires pdflatex to be installed and prolongs the runtime of the python file as the .tex files are compiled at runtime. Creation of text files is OS independent; Compilation to .pdf files is currently written using bash commands (i.e. only available on Linux with a bash (or bash compatible) shell).Usagetexplotlibx is written in a way that makes it very compatible tomatplotlib. Some commands are altered to better suit the needs of the author, but generally the underlying syntax is very similar.TODO: ExamplesAvailability / InstallationThis python package is available onPyPIand can be installed via pip:python3-mpipinstalltexplotlibxThe source code is available ongitlab.LicenseThis package is licensed under the GNU General Public License v3 (GNU GPLv3).See the LICENSE file (local,gitlab) for more information.Project StatusThis project is currently in the very early stages of development. Everything written so far is probably subject to change.
Package: t-export
Telegram export tool.Installation$pipinstallt-exportUsageUsage:python-mtexport[OPTIONS]Options:--api-idINTEGERTelegramapiid.Savedin~/.texport/config.jsonfile.--api-hashTEXTTelegramapihash.Savedin~/.texport/config.jsonfile.-s,--session-nameTEXTPyrogramsessionnameorpathtoexistingfile.Savedin~/.texport/<session_name>.sessionfile.-c,--chat-idTEXTChatidorusernameorphonenumber."me"or"self"toexportsavedmessages.-o,--outputTEXTOutputdirectory.-l,--size-limitINTEGERMediasizelimitinmegabytes.-f,--from-dateTEXTDatefromwhichmessageswillbesaved.-t,--to-dateTEXTDatetowhichmessageswillbesaved.--photos/--no-photosDownloadphotosornot.--videos/--no-videosDownloadvideosornot.--voice/--no-voiceDownloadvoicemessagesornot.--video-notes/--no-video-notesDownloadvideomessagesornot.--stickers/--no-stickersDownloadstickersornot.--gifs/--no-gifsDownloadgifsornot.--documents/--no-documentsDownloaddocumentsornot.--quietBOOLEANDonotprintprogresstoconsole.At first run you will need to specify api id and api hash and log in into your telegram account.
Or you can pass path of existing pyrogram session to "--session" argument (no need to logging in or specifying api id or api hash).ExamplesExport all messages from private chat with user @example to directory example_export$t-export-cexample-oexample_exportExport all messages from private chat with user @example to directory example_export without videos and with size limit of 100 megabytes$t-export-cexample-oexample_export--no-videos--size-limit100Export all messages from start of 2023 from private chat with user @example to directory example_export$t-export-cexample-oexample_export--size-limit100--from-date01.01.2023