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 |
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.4.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
readwrite-0.4.1-py3-none-any.whl
(14.0 kB
view hashes)
Close
Hashes for readwrite-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c0a9101362b8043ba49f11d25429dc05028343fdce7156f8931c3c735c85ae |
|
MD5 | 0d149ae59f462ea52a3b6037834f5be3 |
|
BLAKE2b-256 | e1528f7d2d16fa03b8d12285aac236bbb6a625b08d21409d8eae1a714d3fe76e |