Skip to main content

А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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Csv_Json_Converter-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

Csv_Json_Converter-1.0.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page