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.1.tar.gz
(9.2 kB
view hashes)
Built Distribution
readwrite-0.5.1-py3-none-any.whl
(14.5 kB
view hashes)
Close
Hashes for readwrite-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c735a7368c404a9d612368b6b22233979931ed0540add11b117580382079c09 |
|
MD5 | 73d82d03cd4db1834e5eb94ed6c901cc |
|
BLAKE2b-256 | e7b0a281d6e6c605ce1a682b02cff6d22c35366fbe2412867a4a17d5eb7d7740 |