A streamlined Python toolkit for everyday programming tasks and utilities
Project description
eftoolkit
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eftoolkit-0.1.1.tar.gz.
File metadata
- Download URL: eftoolkit-0.1.1.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d9b8c912b73f0c9b1495bddc59d5b57328b79ccfad99061add05ed048b54a1
|
|
| MD5 |
9459229f91a23e25d7b0ab14d79dd90b
|
|
| BLAKE2b-256 |
4f907ac729dceaffce958659726039816959895e352d0b6975de90e369808c68
|
Provenance
The following attestation bundles were made for eftoolkit-0.1.1.tar.gz:
Publisher:
publish.yml on ethanfuerst/eftoolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eftoolkit-0.1.1.tar.gz -
Subject digest:
26d9b8c912b73f0c9b1495bddc59d5b57328b79ccfad99061add05ed048b54a1 - Sigstore transparency entry: 820254718
- Sigstore integration time:
-
Permalink:
ethanfuerst/eftoolkit@aff3bf17468fc91450d2021b9d2c6b5e20fd6d05 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ethanfuerst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aff3bf17468fc91450d2021b9d2c6b5e20fd6d05 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file eftoolkit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: eftoolkit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60c12af9df7bb0415eb18b857caf101c60a0145867816ab209de57ad28151da5
|
|
| MD5 |
bbf70d24a7ca1fc1eeb088987cc1c140
|
|
| BLAKE2b-256 |
60bbe5cc39248c709197203284e40500885e6156db7641db30c61c087aa0db14
|
Provenance
The following attestation bundles were made for eftoolkit-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on ethanfuerst/eftoolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eftoolkit-0.1.1-py3-none-any.whl -
Subject digest:
60c12af9df7bb0415eb18b857caf101c60a0145867816ab209de57ad28151da5 - Sigstore transparency entry: 820254733
- Sigstore integration time:
-
Permalink:
ethanfuerst/eftoolkit@aff3bf17468fc91450d2021b9d2c6b5e20fd6d05 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ethanfuerst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aff3bf17468fc91450d2021b9d2c6b5e20fd6d05 -
Trigger Event:
workflow_dispatch
-
Statement type: