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 like:
from csv_json.csv_json_conv import *
* If you want to convert csv to json you must use:
csv_to_json(file_csv)

Instead file_csv you need to write here relative or absolute path to your csv file. The function returns path to the created json file and create json file with same name as original csv file.

* 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. The function returns path to the created csv file and create csv file with same name as original json file.

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.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

Csv_Json_Converter-1.1.0-py3-none-any.whl (3.4 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