Installation

Installation of Aspose.Note FOSS for Python

Aspose.Note FOSS for Python is distributed via PyPI under the package name aspose-note. Installation requires Python 3.10 or later.


1. Standard Install (Recommended)

Install the core library with pip:

pip install aspose-note

This installs the aspose.note package with no optional dependencies. It supports all reading and traversal features. PDF export is not included.


2. Install with PDF Export Support

To enable Document.Save(..., SaveFormat.Pdf), install with the [pdf] extra. This adds the ReportLab dependency (reportlab>=3.6):

pip install "aspose-note[pdf]"

If you have already installed the core package, upgrade it and add the extra in one command:

pip install --upgrade "aspose-note[pdf]"

Note: Attempting to call Document.Save with SaveFormat.Pdf without ReportLab installed will raise an ImportError at runtime. Install the [pdf] extra before using PDF functionality.


3. Virtual Environment (Best Practice)

Use a virtual environment to isolate the library from your system Python:

##Create a virtual environment
python -m venv .venv

##Activate it
##Windows:
.venv\Scripts\activate
##Linux / macOS:
source .venv/bin/activate

##Install (with PDF support)
pip install "aspose-note[pdf]"

4. Editable Install (For Contributors)

Clone the repository and install in editable mode to develop or run tests against the source:

git clone https://github.com/aspose-note-foss/Aspose.Note-FOSS-for-Python.git
cd Aspose.Note-FOSS-for-Python

##Editable install with PDF support
pip install -e ".[pdf]"

##Run the test suite
python -m unittest discover -s tests -p "test_*.py" -v

Verification

After installation, verify that the package is importable:

from aspose.note import Document, SaveFormat, FileFormat
print("Aspose.Note FOSS for Python installed successfully.")

Check the installed version:

pip show aspose-note

Expected output (version may differ):

Name: aspose-note
Version: 26.2
Summary: Aspose.Note-compatible Python API for reading OneNote (.one) files
...

Dependencies

DependencyRequired?Purpose
Python 3.10+AlwaysMinimum language version
reportlab>=3.6Optional (via [pdf] extra)PDF export via Document.Save(..., SaveFormat.Pdf)

The core library has zero mandatory third-party dependencies. All MS-ONE/OneStore binary parsing is implemented in pure Python within the aspose.note._internal subpackage.


Package Details

AttributeValue
Package nameaspose-note
PyPI URLhttps://pypi.org/project/aspose-note/
Import pathfrom aspose.note import ...
Version (current)26.2
Python support3.10, 3.11, 3.12
Operating systemsWindows, Linux, macOS (OS-independent)
LicenseMIT (Aspose-Split)
Source repositoryhttps://github.com/aspose-note-foss/Aspose.Note-FOSS-for-Python

Additional Resources