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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfileloader-0.0.12.tar.gz
Algorithm Hash digest
SHA256 cb0e847cb9f30aa9a0d4b3b481f142e116bbc94579e3bed88f42211e7cd380b7
MD5 ff8755973ffb414d529269929d43c513
BLAKE2b-256 e17360915a1cf1d8254f5912dd16c3efb573effb5b389492d4367df3756f218c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfileloader-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac589f46275f40436e577b2e8b642e7490df3c359e054246b1f0e62f848c2c2
MD5 5d1d6d35f1818f449262b176e4d6f046
BLAKE2b-256 85f2c0f1da8a7c304084a1ab9f8b3717501c3a54d5d49efa584889d3d3fd3bbe

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