Skip to main content

LigonLibrary

A Python utility library for working with DataFrames, Google Sheets, fuzzy string matching, and more.

Installation

From PyPI:

pip install ligonlibrary

Or pin in your project's dependencies (e.g. in pyproject.toml):

dependencies = [
    "ligonlibrary>=0.2.1",
]

To install the development version straight from GitHub:

pip install git+https://github.com/ligon/LigonLibrary.git

Requires Python 3.11+.

What's included

DataFrame utilities

  • get_dataframe(f) — Read a DataFrame from nearly any file: CSV, Excel, Parquet, Feather, Stata (.dta), SPSS, fixed-width, org-tables, and GPG-encrypted variants of all of the above.
  • df_to_orgtbl(df) — Render a DataFrame as an Emacs org-mode table, with optional standard errors, confidence intervals, and significance stars.
  • orgtbl_to_df(table) — Parse an org-mode table back into a DataFrame.
  • df_from_orgfile(path) — Read named tables from .org files.
  • from_dta(fn) — Read Stata .dta files with automatic label decoding.
  • normalize_strings(df, ...) — Normalize string columns in a DataFrame.
  • find_similar_pairs(s1, s2) — Find fuzzy-matching pairs between two Series.

Google Sheets

  • read_sheets(key, ...) / read_public_sheet(key) — Read a Google Sheet into a DataFrame.
  • write_sheet(df, key, ...) — Write a DataFrame to a Google Sheet.
  • delete_sheet(key) — Delete a Google Sheet.
  • get_credentials(...) — Load Google service-account credentials (supports GPG-encrypted JSON).

String matching

  • normalized(s) — Normalize a string (case, whitespace, hyphens).
  • similar(a, b) — Check whether two strings are fuzzy-similar.
  • most_similar(s, candidates) — Find the best fuzzy match from a list.

Other

  • email_from_ligon(...) — Send email via the Gmail API.
  • get_password_for_machine(host) — Look up a password in a GPG-encrypted ~/.authinfo.gpg file, with fallback to pass (password-store).

License

BSD 3-Clause. See LICENSE.

Metadata

Release files for ligonlibrary 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ligonlibrary 0.2.4
File Size Uploaded Provenance Actions
ligonlibrary-0.2.4.tar.gz 22.9 kB With provenance Details for ligonlibrary-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ligonlibrary 0.2.4
File Interpreter ABI Platform Actions
ligonlibrary-0.2.4-py3-none-any.whl Python 3 none any Details for ligonlibrary-0.2.4-py3-none-any.whl

Total release size: 44.6 kB

Release files / ligonlibrary-0.2.4.tar.gz

Download URL ligonlibrary-0.2.4.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
75a7702cacc43f760f540a4f03ff2997eb69d34d42aba5df160fcc2b0bdc1042
BLAKE2b-256 checksum
How to use checksums
ca714481ed39f964a95f36a3caa93a8a74d7e613bf0108ee5924fe925e79deea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / ligonlibrary-0.2.4-py3-none-any.whl

Download URL ligonlibrary-0.2.4-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a20034ecade1d62fd465d0c84626e957803cbe7d7e5f9a3804260a50d27cb39f
BLAKE2b-256 checksum
How to use checksums
c4604e996fc43658792c40af28946fc107e5bc5322c21d6591e14bac25a949f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for ligonlibrary 0.2.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ligonlibrary-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page