Skip to main content

readwrite - Quickly read/write file in common formats

Project description

Quickly read and write file based on their extension.

PyTest

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 Read Write
Binary bin Python's bytes :heavy_check_mark: :heavy_check_mark:
Csv csv pandas :heavy_check_mark: :heavy_check_mark:
Excel xlsx pandas :heavy_check_mark: :heavy_check_mark:
H5ad h5ad scanpy :heavy_check_mark: :x:
Joblib joblib joblib :heavy_check_mark: :heavy_check_mark:
Json json Python's json :heavy_check_mark: :heavy_check_mark:
Parquet parquet pandas :heavy_check_mark: :heavy_check_mark:
Pickle pkl, pickle Python's pickle or pandas :heavy_check_mark: :heavy_check_mark:
Toml toml toml :heavy_check_mark: :heavy_check_mark:
Tar tar Python's tarfile :heavy_check_mark: :x:
Text txt Python's str :heavy_check_mark: :heavy_check_mark:
Yaml yml, yaml PyYAML :heavy_check_mark: :heavy_check_mark:
Zarr zarr SpatialData :heavy_check_mark: :x:
Zip zip Python's zipfile :heavy_check_mark: :x:

Project details


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.10.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

readwrite-0.10.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file readwrite-0.10.1.tar.gz.

File metadata

  • Download URL: readwrite-0.10.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for readwrite-0.10.1.tar.gz
Algorithm Hash digest
SHA256 1c5963de3dd27055db3bcd5b391843dc39065b80775fc186922fa4167e5ceed7
MD5 2f01948b1adc8bd2b264d07618feb39d
BLAKE2b-256 de10d2d73790c094f0ce81ecaed4522363ddf6dd759d4e3c69a205e4b96792a7

See more details on using hashes here.

File details

Details for the file readwrite-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: readwrite-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for readwrite-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 322ff8be9a2bd75b331b512df5cb63e9853aeebf7541f3360d44053bd38ae4e3
MD5 1e3ae18fdc753d080590eec59b876c61
BLAKE2b-256 19923d99d2d518c0b97aca704baebb973827d4e5cb88fc448652b8e16ddb7e6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page