petl-developers / petl

Python Extract Transform and Load Tables of Data
MIT License
1.25k stars 193 forks source link

Add Support for JSONL Writer #628

Closed mzaeemz closed 2 years ago

mzaeemz commented 2 years ago

This PR has the objective of adding support for writing to JSONL files

Changes

  1. Updated tojson function in petl.io.json to write in JSONL format if lines argument is set to true

Checklist

Use this checklist for assuring the quality of pull requests that include new code and or make changes to existing code.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 3111981167


Changes Missing Coverage Covered Lines Changed/Added Lines %
petl/io/json.py 10 11 90.91%
<!-- Total: 42 43 97.67% -->
Totals Coverage Status
Change from base Build 2899567235: 0.02%
Covered Lines: 12750
Relevant Lines: 13993

💛 - Coveralls
mzaeemz commented 2 years ago

@juarezr Thank you for the feedback. However, my noob self ended up deleting the branch. I have created a new PR here, kindly take a look at it.