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.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for jsonConverter-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d683e2e6e9a84b061a271ebbb9178ec311dd2569a8d6c2828e1345d8944c0338 |
|
MD5 | 48fe4eda07557970c7647fbb53d15fb8 |
|
BLAKE2b-256 | 0dc50820e6aa772323ca74d82ddaca911b4a34eb059d3d9cf238af692f6e5a09 |