Skip to main content

A streamlined Python toolkit for everyday programming tasks and utilities

Project description

eftoolkit

PyPI version Python 3.10+ License: MIT Documentation

A streamlined Python toolkit for everyday programming tasks and utilities.

Documentation | Installation | Quickstart

Installation

uv add eftoolkit

Or with pip:

pip install eftoolkit

For development:

git clone https://github.com/ethanfuerst/eftoolkit.git
cd eftoolkit
uv sync

Stability

eftoolkit is Alpha. Minor bumps aim to be additive; breaking changes ship with a major bump. See the version policy for pin recommendations.

Quick Start

from eftoolkit.sql import DuckDB
from eftoolkit.s3 import S3FileSystem
from eftoolkit.gsheets import Spreadsheet

# DuckDB with in-memory database
db = DuckDB()
db.create_table('users', "SELECT 1 as id, 'Alice' as name")
df = db.get_table('users')

# S3 operations (requires credentials)
s3 = S3FileSystem(
    access_key_id='...',
    secret_access_key='...',
    region='us-east-1',
)
s3.write_df_to_parquet(df, 's3://my-bucket/data/output.parquet')

# Google Sheets (requires service account credentials)
ss = Spreadsheet(credentials={...}, spreadsheet_name='My Sheet')
with ss.worksheet('Sheet1') as ws:
    ws.write_dataframe(df)
    ws.format_range('A1:B1', {'textFormat': {'bold': True}})
    # flush() called automatically on exit

# Google Sheets local preview (no credentials needed!)
ss = Spreadsheet(local_preview=True, spreadsheet_name='Preview')
ws = ss.worksheet('Sheet1')
ws.write_dataframe(df)
ws.flush()
ws.open_preview()  # Opens HTML in browser

Development

# Install dev dependencies
uv sync

# Run linting and formatting
uv run pre-commit run --all-files

# Run tests
uv run pytest

# Run tests with coverage
uv run pytest --cov=eftoolkit --cov-report=term-missing

# Coverage report
uv run coverage report -m

# Build documentation locally
uv run mkdocs serve

Releasing (Maintainers Only)

Releases are automated via the release script. You must be on the main branch with no uncommitted changes:

./scripts/release.sh patch  # 0.1.0 -> 0.1.1
./scripts/release.sh minor  # 0.1.0 -> 0.2.0
./scripts/release.sh major  # 0.1.0 -> 1.0.0

This runs all checks, auto-bumps the version, generates release notes, and triggers the PyPI publish workflow.

Project Structure

eftoolkit/
├── eftoolkit/          # Main package
│   ├── sql/            # DuckDB wrapper with S3 integration
│   ├── s3/             # S3FileSystem for parquet read/write
│   ├── gsheets/        # Google Sheets client with batching
│   └── config/         # Configuration utilities
├── docs/               # Documentation (MkDocs)
└── tests/              # pytest test suite

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eftoolkit-3.0.0.tar.gz (106.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eftoolkit-3.0.0-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

Details for the file eftoolkit-3.0.0.tar.gz.

File metadata

  • Download URL: eftoolkit-3.0.0.tar.gz
  • Upload date:
  • Size: 106.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for eftoolkit-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c9137fae6f65f0c71f2f07b5ebd873e26ff05c43aee12d56004c562424382392
MD5 e23cccba24e8cb23d51f5c46dbfaa44f
BLAKE2b-256 fa4734329ba49e4bd46d8e021bc4d97676a560075aa07abc19119ec1db53fe67

See more details on using hashes here.

Provenance

The following attestation bundles were made for eftoolkit-3.0.0.tar.gz:

Publisher: release.yml on ethanfuerst/eftoolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file eftoolkit-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: eftoolkit-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for eftoolkit-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d3f02308f1d9c469aee824cc744dcf4f0b6d994f9f1427552a351c675830bf0
MD5 6104ff7fe31fac119d87234afcc5f8ca
BLAKE2b-256 44b75c9f21f90b62232de0c69311e7c9a6e7ed7741b32f52703824352ce5b2a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for eftoolkit-3.0.0-py3-none-any.whl:

Publisher: release.yml on ethanfuerst/eftoolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page