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.6.0.tar.gz
(9.6 kB
view hashes)
Built Distribution
readwrite-0.6.0-py3-none-any.whl
(15.0 kB
view hashes)
Close
Hashes for readwrite-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c292d5c4867b355ae84f3b490d1dbe1a265bb4a791a764da9d3c6219fa4c193 |
|
MD5 | 7abbf9a2cbdccb82a2c4709aa551e4b8 |
|
BLAKE2b-256 | 092709981a709f6f0b5622be81b228b985fb06ce73f4d6b9c8414c07b5d32841 |