texlivemetadata
Get 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.
Usage
pip install texlivemetadata
TeXLive version information
import texlivemetadata
# 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 listing
import texlivemetadata
# List all packages exposed by tlmgr list:
print(texlivemetadata.list_packages())
# For listing only installed packages:
print(texlivemetadata.list_installed_packages())
Package information
import texlivemetadata
# 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"
# }
# }
Utils
import texlivemetadata
# To CTAN link for a package:
print(texlivemetadata.get_ctan_link("12many"))
# --->
# "https://ctan.org/pkg/12many"
Metadata
Release files for texlivemetadata 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| texlivemetadata-0.1.3.tar.gz | 4.0 kB | Without provenance | Details for texlivemetadata-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| texlivemetadata-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for texlivemetadata-0.1.3-py2.py3-none-any.whl |
Total release size: 10.2 kB
Release files / texlivemetadata-0.1.3.tar.gz
| Download URL | texlivemetadata-0.1.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60634317d21bbf321e93c9db36a933774fec24015077b49448e37fd99d88d130
|
|
BLAKE2b-256 checksum How to use checksums |
47f2f74fc8e618cf182f358debc04666b4b29f07c3e72213cef0207a681eb4b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
|
Release files / texlivemetadata-0.1.3-py2.py3-none-any.whl
| Download URL | texlivemetadata-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
54286472fc40dce59c4be5925caeb4fe1bbec6a4aa65d9c1fa27a72532e54f4e
|
|
BLAKE2b-256 checksum How to use checksums |
eae37c682d6c4891989b4e16e65922c515d1211e10fb5809029e9e7e86ff6087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
|
Security for texlivemetadata 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.