latexify-py


Namelatexify-py JSON
Version 0.4.4 PyPI version JSON
download
home_pageNone
SummaryGenerates LaTeX math description from Python functions.
upload_time2024-12-20 07:02:51
maintainerNone
docs_urlNone
authorNone
requires_python<3.14,>=3.9
licenseApache Software License 2.0
keywords equation latex math mathematics tex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # latexify

[![Python](https://img.shields.io/pypi/pyversions/latexify-py.svg)](https://pypi.org/project/latexify-py/)
[![PyPI Latest Release](https://img.shields.io/pypi/v/latexify-py.svg)](https://pypi.org/project/latexify-py/)
[![License](https://img.shields.io/pypi/l/latexify-py.svg)](https://github.com/google/latexify_py/blob/main/LICENSE)
[![Downloads](https://pepy.tech/badge/latexify-py/month)](https://pepy.tech/project/latexify-py)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)

`latexify` is a Python package to compile a fragment of Python source code to a
corresponding $\LaTeX$ expression:

![Example of latexify usage](https://raw.githubusercontent.com/google/latexify_py/main/example.jpg)

`latexify` provides the following functionalities:

* Libraries to compile Python source code or AST to $\LaTeX$.
* IPython classes to pretty-print compiled functions.

## FAQs

1. *Which Python versions are supported?*

   Syntaxes on **Pythons 3.9 to 3.13** are officially supported, or will be supported.

2. *Which technique is used?*

   `latexify` is implemented as a rule-based system on the official `ast` package.

3. *Are "AI" techniques adopted?*

   `latexify` is based on traditional parsing techniques.
   If the "AI" meant some techniques around machine learning, the answer is no.

## Getting started

See the
[example notebook](https://github.com/google/latexify_py/blob/main/examples/latexify_examples.ipynb),
which provides several
use-cases of this library.

You can also try the above notebook on
[Google Colaboratory](https://colab.research.google.com/github/google/latexify_py/blob/main/examples/latexify_examples.ipynb).

See also the official
[documentation](https://github.com/google/latexify_py/blob/main/docs/index.md)
for more details.

## How to Contribute

To contribute to this project, please refer
[CONTRIBUTING.md](https://github.com/google/latexify_py/blob/develop/CONTRIBUTING.md).

## Disclaimer

This software is currently hosted on <https://github.com/google>, but not officially
supported by Google.

If you have any issues and/or questions about this software, please visit the
[issue tracker](https://github.com/google/latexify_py/issues)
or contact the [main maintainer](https://github.com/odashi).

## License

This software adopts the
[Apache License 2.0](https://github.com/google/latexify_py/blob/develop/LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "latexify-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.9",
    "maintainer_email": null,
    "keywords": "equation, latex, math, mathematics, tex",
    "author": null,
    "author_email": "Yusuke Oda <odashi@inspiredco.ai>",
    "download_url": "https://files.pythonhosted.org/packages/c1/66/28097e41eb5bcaa6b17557517322cb2ce65c583d8208c91245df40fd8e8e/latexify_py-0.4.4.tar.gz",
    "platform": null,
    "description": "# latexify\n\n[![Python](https://img.shields.io/pypi/pyversions/latexify-py.svg)](https://pypi.org/project/latexify-py/)\n[![PyPI Latest Release](https://img.shields.io/pypi/v/latexify-py.svg)](https://pypi.org/project/latexify-py/)\n[![License](https://img.shields.io/pypi/l/latexify-py.svg)](https://github.com/google/latexify_py/blob/main/LICENSE)\n[![Downloads](https://pepy.tech/badge/latexify-py/month)](https://pepy.tech/project/latexify-py)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n\n`latexify` is a Python package to compile a fragment of Python source code to a\ncorresponding $\\LaTeX$ expression:\n\n![Example of latexify usage](https://raw.githubusercontent.com/google/latexify_py/main/example.jpg)\n\n`latexify` provides the following functionalities:\n\n* Libraries to compile Python source code or AST to $\\LaTeX$.\n* IPython classes to pretty-print compiled functions.\n\n## FAQs\n\n1. *Which Python versions are supported?*\n\n   Syntaxes on **Pythons 3.9 to 3.13** are officially supported, or will be supported.\n\n2. *Which technique is used?*\n\n   `latexify` is implemented as a rule-based system on the official `ast` package.\n\n3. *Are \"AI\" techniques adopted?*\n\n   `latexify` is based on traditional parsing techniques.\n   If the \"AI\" meant some techniques around machine learning, the answer is no.\n\n## Getting started\n\nSee the\n[example notebook](https://github.com/google/latexify_py/blob/main/examples/latexify_examples.ipynb),\nwhich provides several\nuse-cases of this library.\n\nYou can also try the above notebook on\n[Google Colaboratory](https://colab.research.google.com/github/google/latexify_py/blob/main/examples/latexify_examples.ipynb).\n\nSee also the official\n[documentation](https://github.com/google/latexify_py/blob/main/docs/index.md)\nfor more details.\n\n## How to Contribute\n\nTo contribute to this project, please refer\n[CONTRIBUTING.md](https://github.com/google/latexify_py/blob/develop/CONTRIBUTING.md).\n\n## Disclaimer\n\nThis software is currently hosted on <https://github.com/google>, but not officially\nsupported by Google.\n\nIf you have any issues and/or questions about this software, please visit the\n[issue tracker](https://github.com/google/latexify_py/issues)\nor contact the [main maintainer](https://github.com/odashi).\n\n## License\n\nThis software adopts the\n[Apache License 2.0](https://github.com/google/latexify_py/blob/develop/LICENSE).\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Generates LaTeX math description from Python functions.",
    "version": "0.4.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/google/latexify_py/issues",
        "Homepage": "https://github.com/google/latexify_py"
    },
    "split_keywords": [
        "equation",
        " latex",
        " math",
        " mathematics",
        " tex"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c00ece3ed3554ba3d37143d5aae1b8733220a29e26306680a67ee53ed373cd17",
                "md5": "6d2322f09be12fe5e3317950973e7890",
                "sha256": "5aa9c31a5ec7c6d94f67e24334f862f0c576d74a124c36d2712c12fe46f82900"
            },
            "downloads": -1,
            "filename": "latexify_py-0.4.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d2322f09be12fe5e3317950973e7890",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.9",
            "size": 38641,
            "upload_time": "2024-12-20T07:02:49",
            "upload_time_iso_8601": "2024-12-20T07:02:49.924794Z",
            "url": "https://files.pythonhosted.org/packages/c0/0e/ce3ed3554ba3d37143d5aae1b8733220a29e26306680a67ee53ed373cd17/latexify_py-0.4.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c16628097e41eb5bcaa6b17557517322cb2ce65c583d8208c91245df40fd8e8e",
                "md5": "2242e0f0ef49e4fa51e5ecc178b1f0b5",
                "sha256": "f89274984811fb5b1436c98670814b21502cb34a0becadababcf3e1ec84e426e"
            },
            "downloads": -1,
            "filename": "latexify_py-0.4.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2242e0f0ef49e4fa51e5ecc178b1f0b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.9",
            "size": 29729,
            "upload_time": "2024-12-20T07:02:51",
            "upload_time_iso_8601": "2024-12-20T07:02:51.478194Z",
            "url": "https://files.pythonhosted.org/packages/c1/66/28097e41eb5bcaa6b17557517322cb2ce65c583d8208c91245df40fd8e8e/latexify_py-0.4.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-20 07:02:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "google",
    "github_project": "latexify_py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "latexify-py"
}
        
Elapsed time: 0.41725s