OneNote Extractor
This is a quick Python script for extracting files and metadata from .one files. At the time of the creation (2023-01-20) of this script there appear to be no Python scripts that can extract files or metadata from objects
Installation
To install OneNote Extractor, we recommend using something like this:
python -m pip install one-extract
Usage as a library
For examples of how to use OneNoteExtractor as a library, review the code in cli.py
CLI usage
Following successful installation of OneNoteExtractor a new CLI utility will be available, for usage see:
one-extract --help
Extract embedded files
one-extract /path/to/file.one --extract-files
Display metadata
one-extract /path/to/file.one --extract-meta
Extract embedded files from a password protected notebook with password 1234
one-extract /path/to/file.one --extract-files --password 1234
Disclaimer
This is only intended as an interim solution, until someone with a greater understanding of the .one file format comes up with something more robust.
It was created in response to an uptick in malicious .one file extensions being delivered by various malspam actors.
Metadata
Release files for one-extract 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| one_extract-0.1.4.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| one_extract-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.0 kB
Release files / one_extract-0.1.4.tar.gz
| Download URL | one_extract-0.1.4.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b086d17a24cb3f611d50359f080bc1d22490d794eee8cf61adf16f5b4395dc4
|
|
BLAKE2b-256 checksum How to use checksums |
2987aaff4bcbfc2304df16a65fee72b1656a71bc33bd87c279a905c420ea058e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.
Transparency logRelease files / one_extract-0.1.4-py3-none-any.whl
| Download URL | one_extract-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c57c33329f4aa6ee047e9716b8e0de98af93fedc8d4359e6ac1251557c33213f
|
|
BLAKE2b-256 checksum How to use checksums |
a9a990a45548def0e95f42eb60b77a57df3642a4845ff8e1f9266b088d020865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2025.
Transparency log