Load common JSON formats quickly, CSV too.
Project description
file_loader
fileloader
are functions for quickly loading files into lists. Supported types
are txt
, jsonl/ndjson
, and csv
.
Building
pip3 install build && python3 -m build
Installing
pip3 install pyfileloader
Usage
>>> from fileloader import load_jsonl
>>> items = load_jsonl('test-10.jsonl')
>>> len(items)
10
>>> comp_items = load_jsonl('compress-10.jsonl.gz')
>>> len(comp_items)
10
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
pyfileloader-0.0.4.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for pyfileloader-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1909878ad6bdba234cc0020dfb69a9b3cac116348b63d793e690959f7f0ae365 |
|
MD5 | 58dd680011b108f3064a33e2692b061d |
|
BLAKE2b-256 | 302407b7d64e28d58894bb4346dd0b1869361d381624b39db6589029882018eb |