Skip to main content

Tabra

Tabra is a Python toolkit for empirical research workflows, designed for data processing, model estimation, result export, and reproducible analysis.

Quickly Start

uv pip install git+https://github.com/sepinetam/tabra.git
import pandas as pd

from tabra import load_data
from tabra.plot import PlotKind
from tabra.plot.template import AER


tab = load_data(pd.read_stata(
    "https://www.stata-press.com/data/r19/auto.dta",
    convert_categoricals=False,
    storage_options={"User-Agent": "Mozilla/5.0"}
))

tab.data.sum()
tab.data.gen("p__sq", "price ^ 2")

tab.plot.hist(
    "p__sq",
    bins=20,
    title="Price Distribution"
).save(".local/figs/demo_hist_of_price_square", formats=["png", "jpg"])

mix_figure = tab.plot.mix(
    [
        {PlotKind.scatter: {"x": "mpg", "y": "price"}},
        {PlotKind.lfitci: {"x": "mpg", "y": "price"}},
    ],
    title="Price vs. Mpg",
    xtitle="mpg",
    ytitle="price and price^2",
    template=AER
).show()

tab.reg("price", ["mpg", "weight"])
tab.plot.coefplot().save(".local/figs/demo_coefplot", formats=["pdf"])

tab.xtset("foreign")
tab.xtreg("price", ["mpg", "weight"], model="fe")

Contributing

See CONTRIBUTING.md for the full development workflow.

Metadata

Release files for tabra 0.1.0

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

Source distribution (sdist)

Source distribution for tabra 0.1.0
File Size Uploaded
tabra-0.1.0.tar.gz 91.0 kB Details

Built distribution (wheel)

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

Total release size: 226.3 kB

Release files / tabra-0.1.0.tar.gz

Download URL tabra-0.1.0.tar.gz
Size 91.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ac2fcc7a23b2557bb5ddb72225d59cecaf212a06cf90156b992d7955b8c24693
BLAKE2b-256 checksum
How to use checksums
38822da8957d01911c27de4e3d40da084a687a90495f07b8dfc1a82df7226cc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tabra-0.1.0-py3-none-any.whl

Download URL tabra-0.1.0-py3-none-any.whl
Size 135.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6928bf4f892d2cc34b35ed33b1d53514a05433b1b84a6b2e01a935e62910dba7
BLAKE2b-256 checksum
How to use checksums
03a78e6e2efc8cab48be296dc30ebb439a5bd8a378fa42872cda802dc930ce1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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