Load common JSON formats quickly, CSV too. Supports writing as well.
Project description
fileloader
fileloader are functions for quickly loading files into lists. Supported types
are txt, jsonl/ndjson, and csv. JSON loading is there too, if needed(it returns a standard json.load(), so it's an object rather than a list of objects)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfileloader-0.0.14.tar.gz.
File metadata
- Download URL: pyfileloader-0.0.14.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6758476bc3eed65bcaa58262f15648399e55145c025ba4e9955d292c315cbe2
|
|
| MD5 |
6b685fe05678b7f95ed01dbf3d29edeb
|
|
| BLAKE2b-256 |
c2b10d690e5dea49150b42118a9de124d6a8a74c7fb2eb39771156b7a8436fc9
|
File details
Details for the file pyfileloader-0.0.14-py3-none-any.whl.
File metadata
- Download URL: pyfileloader-0.0.14-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccd9bad70d393b8ae0eae8dc5395fc960528a01c9b8088a17bcb2702107ba5d0
|
|
| MD5 |
95ad90e20809dbb663eb9926b93e46bc
|
|
| BLAKE2b-256 |
f5ac619853b1df11aeb4b7d27a9872bf631868c4718d1beaa44d5a96b99ea56b
|