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

Metadata

Release files for mbox-to-sqlite 0.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mbox-to-sqlite 0.1a0
File Size Uploaded
mbox-to-sqlite-0.1a0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mbox-to-sqlite 0.1a0
File Interpreter ABI Platform
mbox_to_sqlite-0.1a0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / mbox-to-sqlite-0.1a0.tar.gz

Download URL mbox-to-sqlite-0.1a0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5fa572fbab78aff500d53c4be189035aa453768351f73f3ea9b9699dfe968d63
BLAKE2b-256 checksum
How to use checksums
a6ddef379da65bfd526922c52eeceaeb8538d179e005f015d5542e4af1912101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / mbox_to_sqlite-0.1a0-py3-none-any.whl

Download URL mbox_to_sqlite-0.1a0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25b8dc743c4084f2f34147cfbb70e43bb76b064a54385d90deeccaaf0ae02688
BLAKE2b-256 checksum
How to use checksums
40c170f5152f4f4051d5b1c7582766df700bcf0a7e51a39549805135916be502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page