Skip to main content

MVP: Load CSV/Excel/JSON into a pandas DataFrame via speak2py()

Project description

Speak2Py

Version: MVP v0.1

Overview

Speak2Py is a Python library designed to let you load and manipulate pandas DataFrames through simple English-like commands. This initial MVP focuses on robust, minimal file ingestion.


MVP Features (v0.1)

  1. Basic File Loader

    • Detects file type by extension (.csv, .xls, .xlsx, .json)
    • Returns a pandas.DataFrame
  2. Unit Tests

    • Verifies CSV, Excel, and JSON loading
    • Ensures shape and data integrity
  3. Packaging Structure

    • src/speak2py/file_reader.py with load_data(path)
    • tests/test_file_reader.py for pytest

Installation

pip install speak2py

Quickstart

from speak2py.file_reader import load_data

df = load_data("data.csv")  # CSV, Excel, or JSON
print(df.head())

MVP v0.1 Description

  • Purpose: Provide a minimal, reliable entry point for loading tabular data into pandas.

  • What’s Included:

    • load_data(path: str) -> pd.DataFrame
    • Extension-based loader for CSV, Excel, JSON
    • Basic unit tests
  • Why It Matters: Lays the foundation for adding natural-language parsing and AI-driven commands in later releases.


Next Steps

  1. Natural Language Parser

    • Implement speak2py("read the file data.csv") entry point
  2. Additional Formats

    • Add Parquet, SQL, and other file types
  3. AI Integration

    • Hook in a basic parser for mapping English to function calls
  4. CLI & Plugin

    • Expose a command-line interface and package as a VS Code plugin

Contributing

Contributions welcome! Please open an issue or submit a pull request.

License

MIT © 2025 Speak2Py Contributors

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

speak2py-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

speak2py-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file speak2py-0.2.0.tar.gz.

File metadata

  • Download URL: speak2py-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for speak2py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e14d860bf85cae01b03681ec5ab1dbf78f58e9a0f348420b2c2ea9a8b3c5b8ea
MD5 2ad69743f4bae02cadd62df79db2c84f
BLAKE2b-256 9e4338635eb40b2a246c666ec3bb63f7985db807b38ac47e7e7b3ccbe8ea5ee1

See more details on using hashes here.

File details

Details for the file speak2py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: speak2py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for speak2py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 295eb70e605d8e5a414882542ea7780883838f07aaf51f3f1a814a0c33a9b3f4
MD5 1cd039b41412caf0d99bd49f398827ec
BLAKE2b-256 fd24994c6856ce107ff1b44c18e9a11864de1e612c94d469d71938dbda587ff3

See more details on using hashes here.

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