Skip to content

File loading utilities for Python. Focus is on jsonl/ndjson, but CSV is there for good measure

Notifications You must be signed in to change notification settings

invisiblethreat/pyfileloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fileloader

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

About

File loading utilities for Python. Focus is on jsonl/ndjson, but CSV is there for good measure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages