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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfileloader-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 1aab0b32c01bdb1e54d3b0220177d084d5ee3ea96b5d8924831f15ce7f0436ce
MD5 c1cac4933fef6086ad9d173962c214a1
BLAKE2b-256 a411fbc3e3acb37e6bdbb6eb123ede8ed9976e211503da5e71240f542f8b5c44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfileloader-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d4a5227edd74e3263c1ea4e1c209eb6efe0baab62fd04028d5d2455cdd3a7fbe
MD5 e8ed8471a92710d2edb01252ee1c870f
BLAKE2b-256 52e67278c78e3d72d893727c6ee3aedd6f870cfa518067ec6d09826bf9c29590

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