readwrite - Quickly read/write file in common formats
Project description
Quickly read and write file based on their extension.
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
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
readwrite-0.7.0.tar.gz
(9.8 kB
view hashes)
Built Distribution
readwrite-0.7.0-py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for readwrite-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95bb89591b44a20aa00ee44b3996c113c43ce168a854b3f2195dfd7570c93da6 |
|
MD5 | e23574eb18c06010ed5ce9923a4010af |
|
BLAKE2b-256 | 105a86d7e0ebf3048dc7a6e6c90b7bf844985bdbc0efb963107089e192456ab7 |