Skip to main content

MBOX to JSON Converter

Project description

Open in Visual Studio Code

Prakhar Sharma - LinkedIn
Adrita Bhattacharya - LinkedIn

MBOX to JSON

A command line tool to convert MBOX file to JSON.
Explore the docs » (Currently NA)

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. License
  6. Contact

About The Project

A small package that converts MBOX files to JSON. Also includes functionality to extract attachments.

(back to top)

Built With

(back to top)

Getting Started

There are 2 ways to install this tool.

Prerequisites

Make sure you upgrade pip before moving on.
All the required dependencies are in requirements.txt which would be installed at the time of running the setup.

pip install --upgrade pip

1. Install from PyPI

pip install mbox-to-json

2. Install from GitHub

  1. Download the repository as zip. Unzip.

  2. cd to the repository folder

  3. Run this command

    pip install .
    

(back to top)

Usage

  • Help Function

    mbox-to-json -h
    
  • Most basic conversion from MBOX to JSON. Just provide the file path. Output JSON file would be in the same location as the input file.

    mbox-to-json /Users/prakhar/downloads/random_file.mbox
    
  • Use -a flag to extract attachments. The files would be available in input_file_directory/attachments

    mbox-to-json /Users/prakhar/downloads/random_file.mbox -a
    
  • Use -c flag to convert to CSV insted of JSON. Output CSV file would be in the same location as the input file.

    mbox-to-json /Users/prakhar/downloads/random_file.mbox -c
    
  • Use -o to specify the output file location. Make sure to provide the file name too, with the extension JSON (or CSV)

    mbox-to-json /Users/prakhar/downloads/random_file.mbox -o /Users/prakhar/downloads/random_output.json
    

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • TBA

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

LinkedIn - Prakhar Sharma, Adrita Bhattacharya

Github - PS1607, adritabhattacharya

Google Developer - PS1607

(back to top)

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

mbox_to_json-1.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

mbox_to_json-1.0.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file mbox_to_json-1.0.5.tar.gz.

File metadata

  • Download URL: mbox_to_json-1.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mbox_to_json-1.0.5.tar.gz
Algorithm Hash digest
SHA256 816a96cdf12ce25bca2b55229e3a38f50638edf58a3f11ccc3da5b425e9c3bf9
MD5 7e75fa9ff9a3eedcf8e0c887c25d5f4b
BLAKE2b-256 015063de31e39cade6dc74e4a44d4339a8573e28481a177aee2f62df21775088

See more details on using hashes here.

File details

Details for the file mbox_to_json-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mbox_to_json-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb229385fd53f269258f854fe720a3b8cc0c0000e14e7b60f30dba765218483
MD5 7d14bb4fffbe8b159493c4ce6ce658a6
BLAKE2b-256 79e74fb0f6bdfd3670156e2e57ff435b67fc9f26a6463fe4ee4cce7eebd14455

See more details on using hashes here.

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