Skip to main content

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


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

Uploaded Source

Built Distribution

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

pyfileloader-0.0.14-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for pyfileloader-0.0.14.tar.gz
Algorithm Hash digest
SHA256 e6758476bc3eed65bcaa58262f15648399e55145c025ba4e9955d292c315cbe2
MD5 6b685fe05678b7f95ed01dbf3d29edeb
BLAKE2b-256 c2b10d690e5dea49150b42118a9de124d6a8a74c7fb2eb39771156b7a8436fc9

See more details on using hashes here.

File details

Details for the file pyfileloader-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfileloader-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd9bad70d393b8ae0eae8dc5395fc960528a01c9b8088a17bcb2702107ba5d0
MD5 95ad90e20809dbb663eb9926b93e46bc
BLAKE2b-256 f5ac619853b1df11aeb4b7d27a9872bf631868c4718d1beaa44d5a96b99ea56b

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