Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

mbox-to-sqlite

PyPI Changelog Tests License

Load email from .mbox files into SQLite

Installation

Install this tool using pip:

pip install mbox-to-sqlite

Usage

Use the mbox command to import a .mbox file into a SQLite database:

mbox-to-sqlite mbox emails.db path/to/messages.mbox

You can try this out against an example containing a sample of 3,266 emails from the Enron corpus like this:

curl -O https://raw.githubusercontent.com/ivanhb/EMA/master/server/data/mbox/enron/mbox-enron-white-s-all.mbox
mbox-to-sqlite mbox enron.db mbox-enron-white-s-all.mbox

You can then explore the resulting database using Datasette:

datasette enron.db

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd mbox-to-sqlite
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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-sqlite-0.1a0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

mbox_to_sqlite-0.1a0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file mbox-to-sqlite-0.1a0.tar.gz.

File metadata

  • Download URL: mbox-to-sqlite-0.1a0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for mbox-to-sqlite-0.1a0.tar.gz
Algorithm Hash digest
SHA256 5fa572fbab78aff500d53c4be189035aa453768351f73f3ea9b9699dfe968d63
MD5 be2e36ade882d4aeda85bc47df15fc00
BLAKE2b-256 a6ddef379da65bfd526922c52eeceaeb8538d179e005f015d5542e4af1912101

See more details on using hashes here.

File details

Details for the file mbox_to_sqlite-0.1a0-py3-none-any.whl.

File metadata

  • Download URL: mbox_to_sqlite-0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for mbox_to_sqlite-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 25b8dc743c4084f2f34147cfbb70e43bb76b064a54385d90deeccaaf0ae02688
MD5 a88c4039e6bd8e0427a51eeb2bca0ca2
BLAKE2b-256 40c170f5152f4f4051d5b1c7582766df700bcf0a7e51a39549805135916be502

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1a0 This release

2 files

Supported by

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