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 |
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.5.0.tar.gz
(9.2 kB
view hashes)
Built Distribution
readwrite-0.5.0-py3-none-any.whl
(14.5 kB
view hashes)
Close
Hashes for readwrite-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46144a24d25eb30216646e09d0f3ae4d8a0cbc26340b66242049367cbd5f8960 |
|
MD5 | b44f2ab03bb4a47a55d7d2ca959cc311 |
|
BLAKE2b-256 | 2d7221cd8153e63342b3619619111060cdef8373d7b8280f1619c04c8b13752b |