Json converter
Project description
jsonconverter
A one step stop for all Json conversions.
Installation
pip install jsonConverter
Usage
from jsonConverter import jsonConverter json_converter = jsonConverter(ANY_JSON)
Invoke jsonConverter from json file
from jsonConverter import jsonConverter json_converter = jsonConverter.from_file(json_path)
Invoke jsonConverter from json string
from jsonConverter import jsonConverter json_converter = jsonConverter.from_string(json_str)
Get htmltable from json
from jsonConverter import jsonConverter json_converter = jsonConverter(ANY_JSON) json_converter.get_html_table()
How to change default attributes for html table
Below attributes are exposed. So, pass these parameters to get_html_table method.
table_border_color header_cell_border_color header_background_color header_text_color header_font_size
Example 1 : get html table with header background color as red
from jsonConverter import jsonConverter json_converter = jsonConverter(ANY_JSON) json_converter.get_html_table(header_background_color = "#ff0000")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonConverter-0.0.7.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for jsonConverter-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaabc6053b6ee46b75dbc5e7a262b9553df49cc7b29673b033a908ed5c31a745 |
|
MD5 | 9d763efb5260231622207c28e7f4517c |
|
BLAKE2b-256 | 02f9223cb60e1d8a10806344fa2afaf483bf1ca985083ff16bf92f5c764fef27 |