Skip to main content

Build Status Coverage PyPI Documentation Status

JF

JF, aka “jndex fingers” or more commonly “json filter pipeline”, is a jq-clone written in python. It supports evaluation of python one-liners, making it especially appealing for data scientists who are used to working with python.

Installing

pip install jf

Basic usage

Filter selected fields

$ cat samples.jsonl | jf '{id: x.id, subject: x.fields.subject}'
{"id": "87086895", "subject": "Swedish children stories"}
{"id": "87114792", "subject": "New Finnish storybooks"}
...

Features

supported formats:

  • json (uncompressed, gzip, bz2)

  • jsonl (uncompressed, gzip, bz2)

  • yaml (uncompressed, gzip, bz2)

  • csv and xlsx support if pandas and openpyxl is installed

  • markdown table output support

  • xlsx (excel)

  • parquet

transformations:

  • import and use python modules with –import

  • import additional json for merging and joining using –import name=filename.json

  • initialize transformations with –init

  • access json dict as classes with dot-notation for attributes

  • datetime and timedelta comparison

    • age() for timedelta between datetime and current time

  • first(N), last(N), islice(start, stop, step)

    • head and tail alias for last and first

  • firstnlast(N) (or headntail(N))

  • import your own modules for more complex filtering and transformations

    • Support stateful classes for complex interactions between items

  • sklearn toolbox for machine learning

  • running restful service for the transformation pipeline

Metadata

Release files for jf 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jf 1.1.2
File Size Uploaded Provenance Actions
jf-1.1.2.tar.gz 17.8 kB Without provenance Details for jf-1.1.2.tar.gz

Release files / jf-1.1.2.tar.gz

Download URL jf-1.1.2.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
989e452279085567806c9e5ce17dee5af483954ddca14bbba2083ddc4376c8b6
BLAKE2b-256 checksum
How to use checksums
d9d9f555d6a4d4d6c7565140739470a9a723617b1bbcab0768b770c424eb3201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for jf 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page