Skip to main content

readwrite - Quickly read/write file in common formats

Project description

Quickly read and write file based on their extension.

PyTest

Install

python3 -m pip install --upgrade readwrite

CLI Usage

readf [FILE-PATHS...]

or

readfile <EXTENSION> [EXTENSION-SPECIFIC-OPTIONS] [FILE-PATHS...]

Code Usage

import readwrite as rw

# will use pandas.read_csv(...)
df = rw.read("data.csv")

# will use pandas.to_parquet(...)
rw.write(df, "data.parquet")

Supported Extensions

Handler Extensions Backend
Binary bin Python's bytes
Csv csv pandas
Excel xlsx pandas
Json json Python's json
Parquet parquet pandas
Pickle pkl, pickle Python's pickle or pandas
Toml toml toml
Text txt Python's str
Yaml yml, yaml PyYAML

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

readwrite-0.7.0.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

readwrite-0.7.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

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