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.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

mbox_to_json-1.0.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mbox_to_json-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 388635d6ace484b4fc0e5f75239ddfcdee8f23caa697c9b1aa79969fc29b9286
MD5 836f394eed0ff0200bf8d94f6f690d8b
BLAKE2b-256 5b23ce797639969948bc7b20e5b04bcec85c6378ce2d8d8eb87fa0a69334490b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mbox_to_json-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95414f13e7189f7cd3af9be19751abc7d8bd7f3b8d747485976136f38e754e4a
MD5 2e2e082fa3eb994e397c2ce7e5a84635
BLAKE2b-256 14e0863998b666bd7cf7f6ee52fbef376d7e5ae75bd32b35e913c612d44e4f48

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