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.9.tar.gz (2.9 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.9-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfileloader-0.0.9.tar.gz.

File metadata

  • Download URL: pyfileloader-0.0.9.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pyfileloader-0.0.9.tar.gz
Algorithm Hash digest
SHA256 354449a72ed504350b9d48e546107cf6202b06ddb637ccdfa3eedca768525da7
MD5 0cf3616524a77b8cf4566fe3c01fb291
BLAKE2b-256 5b4d67ff9b76ff12942f6f200d37330937a5c87c3eea9f6428d0667db26df313

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfileloader-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 490dcbfb1a88ebdeabccd586c8932706dd33c3fb0f18356d0fb6410ba9bf20df
MD5 c918cbae21892d9f8070d904cdb1f219
BLAKE2b-256 d35904f9e0366bfaadc0e41d0332df910c89df3d8257dfa32beeac85a0aa0f9a

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