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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Csv_Json_Converter-1.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file Csv_Json_Converter-1.1.0.tar.gz.

File metadata

  • Download URL: Csv_Json_Converter-1.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for Csv_Json_Converter-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5cd4018b41d033b2e5055efe91f21d9393154a75cbaa33aa6981b9485f83ab1e
MD5 87dc5290a82a9d9ba4679b543517e4bd
BLAKE2b-256 30c008b44fbcb8638e018dc8344a508822555e5122e2458eb5f38cd55c29dfcb

See more details on using hashes here.

File details

Details for the file Csv_Json_Converter-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: Csv_Json_Converter-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for Csv_Json_Converter-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8feeb1e0bcc14c57e2e7eab17fe0d5d555f4b97765d61ff028f47f87f295b43
MD5 20db63ea9ef48147b39aa49b0248a019
BLAKE2b-256 f72b1df9ca44f268c4de6cdc19348700a3727bb6b46873bea7614d0672606021

See more details on using hashes here.

Supported by

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