Skip to main content

Load common JSON formats quickly, CSV too.

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.8.tar.gz (2.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.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfileloader-0.0.8.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyfileloader-0.0.8.tar.gz
Algorithm Hash digest
SHA256 0983f1c831e7bd81123aa28c0bf945aa08473a32e0274878fa83d954fe699d70
MD5 7fd13c70e6ae4fd5a206626b5568a921
BLAKE2b-256 bf96756ac5231f4f3522b1afcbdd9813c164bad34aa96e3c4cec91705b578f88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfileloader-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyfileloader-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dc422ee51571429ccb84ca260de954b9072785a393462158dd20d841fd69edfd
MD5 2a13ee7322377e6d2d1c231f788cfc76
BLAKE2b-256 58bacee19094d4a948a55330309e5c29ef32054f67b326d308b621c5be036c8c

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