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.11.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.11-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfileloader-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 b5ead239a672f6a7ccabf657329a9eb31b3e70670f3d4e7b685eb3bbe36624a1
MD5 9574b752d2b8c09beb0f585e78236775
BLAKE2b-256 7d58df9d6827f40b2b2e1b7b1d87c1fda321290ee1f8eb2e05c7217b1da025dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfileloader-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9e03cb18791d16ae3c86b0445ef5f663109911a17fd185eaf763fe14614cb276
MD5 f96674c65e82f7703dcaa672cd0e8f4c
BLAKE2b-256 f078d6cb5709c364900d26ce5d01b37d53f00ce1f70278f9a47299f6f653cfce

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