Skip to main content

A simple utility for converting CSV to JSON and vice versa.

Project description

Shiftify

Shiftify is a Python package that provides easy and efficient tools for converting data between CSV and JSON formats. It supports direct file operations to transform CSV files into JSON and vice versa.

Features

  • CSV to JSON Conversion: Convert CSV files into JSON format with automatic field detection.
  • JSON to CSV Conversion: Convert JSON files back into CSV format, also with automatic field detection.
  • Customizable Delimiters and Quotes: Customize how CSV files are read and written by specifying different delimiters and quote characters.

Installation

To install Shiftify, run the following command in your terminal:

pip install Shiftify

Usage

Converting CSV to JSON

from shiftify import Convert

convert = Convert()
convert.csv_to_json('path/to/your/input.csv', 'path/to/your/output.json')

Converting JSON to CSV

from shiftify import Convert

convert = Convert()
convert.json_to_csv('path/to/your/input.json', 'path/to/your/output.csv')

Update delimiter or quotechar

By default delimiter is , and quotechar is ", if you want to update these see below:

from shiftify import Convert

convert = Convert(delimiter=',', quotechar='"')
convert.json_to_csv('path/to/your/input.json', 'path/to/your/output.csv')

Contributing

Contributions to Shiftify are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

Shiftify-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Shiftify-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file Shiftify-0.1.2.tar.gz.

File metadata

  • Download URL: Shiftify-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for Shiftify-0.1.2.tar.gz
Algorithm Hash digest
SHA256 73333b4ec7304e05f4966561501309dbee8710ff2b021cb03d55e08e930184c9
MD5 69a51a350a016c303599662f651576f7
BLAKE2b-256 72dc1814bc02cb266269ac15db660f2282fec58c34227c4da2df38b4d44100de

See more details on using hashes here.

File details

Details for the file Shiftify-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: Shiftify-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for Shiftify-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c67c810b30dfbd6954424dbfd2d73c28aa0bd38ed639d6a7c3759a1b910dfa1
MD5 83271598ed165aa5f7f41acd122cec9d
BLAKE2b-256 09f10b8f61446a2147b9b861571f52cd9c61bf4289487993bc0bf62b66a449d0

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