Skip to main content
Pre-release

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

Logo

libratom

PyPI version Build Status codecov Codacy Badge

Python library and supporting utilities to parse and process PST and MBOX email sources.

This project is under development

Installation

Libratom requires Python 3.6 or newer, and can be installed via the Python Package Index (PyPI). Installing via pip will automatically install all required dependencies.

To install and test this software in a new Python virtual environment in Ubuntu 16.04LTS or newer:

Make sure Python 3.6 or newer, python3-pip, and python3-venv are installed:

sudo apt install python3 python3-pip python3-venv

Create and activate a Python virtual environment:

python3 -m venv venv
source venv/bin/activate

Make sure pip is upgraded to the latest version:

pip install --upgrade pip

Install libratom:

pip install libratom

Entity extraction

Libratom provides a CLI with planned support for a range of email processing tasks. Currently, the CLI supports entity extraction from individual PST files and directories of PST files.

To see available commands, type:

(venv) user@host:~$ ratom -h

To see detailed help for the entity extraction command, type:

(venv) user@host:~$ ratom entities -h

To run the extractor with default settings over a PST file or directory of PST files, type the following:

(venv) user@host:~$ ratom entities -p /path/to/PST-file-or-directory

Progress is displayed in a bar at the bottom of the window. To terminate a job early and shut down all workers, type Ctrl-C.

By default, the tool will use the spaCy en_core_web_sm model, and will start as many concurrent jobs as there are virtual cores available. Entities are written to a sqlite3 file automatically named using the existing file or directory name and current datetime stamp, and with the following single-table schema:

sqlite> .schema
CREATE TABLE entities (
	id INTEGER NOT NULL, 
	text VARCHAR, 
	label_ VARCHAR, 
	filename VARCHAR, 
	message_id INTEGER, 
	PRIMARY KEY (id)
);

In this schema, id is the primary key, text is the entity instance, label_ is the entity type, filename is the PST file associated with this message and entity instance, message_id is the PST-internal identifier for the message.

Additional libratom use cases

More usage documentation will appear here as the project matures. For now, you can try out some of the functionality in Jupyter notebooks we've prepared at:

https://github.com/libratom/ratom-notebooks

License(s)

Logos, documentation, and other non-software products of the RATOM team are distributed under the terms of Creative Commons 4.0 Attribution. Software items in RATOM repositories are distributed under the terms of the MIT License. See the LICENSE file for additional details.

© 2019, The University of North Carolina at Chapel Hill.

Development Team and Support

Developed by the RATOM team at the University of North Carolina at Chapel Hill.

See https://ratom.web.unc.edu for additional project details, staff bios, and news.

Metadata

Release files for libratom 0.1.2.dev23

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

Source distribution (sdist)

Source distribution for libratom 0.1.2.dev23
File Size Uploaded Provenance Actions
libratom-0.1.2.dev23.tar.gz 32.0 kB Without provenance Details for libratom-0.1.2.dev23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for libratom 0.1.2.dev23
File Interpreter ABI Platform Actions
libratom-0.1.2.dev23-py3-none-any.whl Python 3 none any Details for libratom-0.1.2.dev23-py3-none-any.whl

Total release size: 50.6 kB

Release files / libratom-0.1.2.dev23.tar.gz

Download URL libratom-0.1.2.dev23.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cec4a8d35333435476eb1f184e4bb69867072d279a1c36d643f09d12eb9652bb
BLAKE2b-256 checksum
How to use checksums
514081c4a72c74ce92ebcb1383e73a2eb81ddf8f7d7b9ea88fe6f1b822212f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

Release files / libratom-0.1.2.dev23-py3-none-any.whl

Download URL libratom-0.1.2.dev23-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b849fc44c0b7ea045b88b998003b81f156cf5c8e7cd9cc967155ea12de0a3640
BLAKE2b-256 checksum
How to use checksums
1fb2255f18bfaf24f799fc1da332889e1339d314d4b590cf3c7254a7697a9721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

Security for libratom 0.1.2.dev23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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