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-1.0.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for jsonConverter-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 054791709812e199b1f20b08d15ac9bd2424430cd03c7ef086c98a61774afce0 |
|
MD5 | ffd3eadc5d9644397254983221e24c77 |
|
BLAKE2b-256 | 7620eed698bd48a37980b414d6eaacfdd7a999523073cd58fe8a76f8f2f116c9 |