Аccepts files as input and converts them to csv or json format
Project description
Csv-json file converter
Csv-json converter converts csv files to json files. The converter can convert standard csv files with headers and standart json files.
Functions of this package can return the converted file as a variable and create the converted file in the project directory if needed.
How to use it?
* First of all you must import this package:
import Csv_Json_Converter
* If you want to convert csv to json you must use:
csv_to_json(file_csv, file_creating=)
Instead file_csv you need to write here relative or absolute path to your csv file. On second position you need to write value (True or False). If argument is false json file creation will not be done, the function will just return this file as a variable. By default the argument is true.
* If you want to convert json to csv you must use:
json_to_csv(file_json, file_creating=)
Instead file_json you need to write here relative or absolute path to your json file. On second position you need to write value (True or False). If argument is false csv file creation will not be done, the function will just return this file as a variable. By default the argument is true.
License
MIT
Autor
Kovalev Maxim
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
Built Distribution
Hashes for Csv_Json_Converter-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a63cd61eab3cd56846e935058ebc8db3e7ce84ce44d1021d0a47efd61ea7d088 |
|
MD5 | b32110fcd6184d4e2f8d32051af8ee2e |
|
BLAKE2b-256 | daa7da72d97b8c48529f40d82647bbeda82664d21193a8abaff6838a74f57fd2 |