{"id":15021268,"url":"https://github.com/erwanp/pytexit","last_synced_at":"2025-05-16T11:06:46.488Z","repository":{"id":3237141,"uuid":"48831658","full_name":"erwanp/pytexit","owner":"erwanp","description":"Convert a Python expression to a LaTeX formula","archived":false,"fork":false,"pushed_at":"2024-11-05T08:24:09.000Z","size":199,"stargazers_count":117,"open_issues_count":12,"forks_count":33,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T08:01:47.949Z","etag":null,"topics":["equation","latex","py2tex","python"],"latest_commit_sha":null,"homepage":"https://pytexit.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erwanp.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-31T03:38:26.000Z","updated_at":"2025-03-08T15:33:23.000Z","dependencies_parsed_at":"2024-06-19T00:10:32.511Z","dependency_job_id":"01a4c5a8-3f96-45a8-ba8a-7a9b85a95b53","html_url":"https://github.com/erwanp/pytexit","commit_stats":{"total_commits":143,"total_committers":14,"mean_commits":"10.214285714285714","dds":"0.32867132867132864","last_synced_commit":"eb5d2d6ae7f33a00c3581ce9e31a0a4bba43eb54"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwanp%2Fpytexit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwanp%2Fpytexit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwanp%2Fpytexit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwanp%2Fpytexit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erwanp","download_url":"https://codeload.github.com/erwanp/pytexit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["equation","latex","py2tex","python"],"created_at":"2024-09-24T19:56:22.636Z","updated_at":"2025-05-16T11:06:44.080Z","avatar_url":"https://github.com/erwanp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n============================================\n`pytexit \u003chttps://pytexit.readthedocs.io\u003e`__\n============================================\n\nConvert a Python expression to a LaTeX formula\n\n\n.. image:: https://img.shields.io/pypi/v/pytexit.svg\n    :target: https://pypi.python.org/pypi/pytexit\n    :alt: PyPI\n\n.. image:: https://img.shields.io/travis/erwanp/pytexit.svg\n    :target: https://travis-ci.com/erwanp/pytexit\n    :alt: Tests\n\n.. image:: https://codecov.io/gh/erwanp/pytexit/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/erwanp/pytexit\n    :alt: Coverage\n\n\nDocumentation\n-------------\n\nhttps://pytexit.readthedocs.io\n\n\n.. image:: https://readthedocs.org/projects/pytexit/badge/\n    :target: https://pytexit.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n\nInstall\n-------\n\n``pytexit`` is on PyPi::\n\n    pip install pytexit\n\n\nUse\n---\n\n``pytexit`` features the ``py2tex``, ``for2tex`` ``for2py`` functions.\n\nIn a Terminal, use ``py2tex``::\n\n    py2tex 'x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2'\n\nIn a Python console, use ``py2tex``::\n\n    from pytexit import py2tex\n    py2tex('x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2')\n\nreturns the corresponding LaTeX formula (to re-use in papers)::\n\n    $$x=2\\\\sqrt{\\\\frac{2\\\\pi k T_e}{m_e}} \\\\left(\\\\frac{\\\\Delta E}{k T_e}\\\\right)^2 a_0^2$$\n\nand (in ipython console only) prints the equation:\n\n.. image:: https://github.com/erwanp/pytexit/blob/master/docs/output.png\n\n\n\nReferences\n----------\n\nInitial work from Geoff Reedy on StackOverflow: https://stackoverflow.com/a/3874621/5622825  . Kudos.\n\nSimilar projects:\n\n- https://github.com/iogf/lax  : \"A pythonic way of writting latex.\"\n- https://github.com/JelteF/PyLaTeX : \"A Python library for creating LaTeX files\"\n- sympy can also write LaTeX output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwanp%2Fpytexit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferwanp%2Fpytexit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwanp%2Fpytexit/lists"}