Production-grade Microsoft OneNote connector via Graph API
Project description
onenote_connector
Production-grade Python module for extracting content from Microsoft OneNote via Microsoft Graph API.
Installation
pip install -r requirements.txt
Quick Start
from onenote_connector import OneNoteConnector
connector = OneNoteConnector(access_token="your_bearer_token") result = connector.get_content_from_url("https://...sharepoint.com/...")
Methods
- get_content_from_url(url) → list[dict]
- get_all_notebooks() → list[dict]
- get_notebook_by_name(name) → list[dict]
Output Fields Per Page
| Field | Type | Description |
|---|---|---|
| id | str | Graph API page ID |
| title | str | Page title |
| content | str | Plain text content |
| paragraphs | list | Text paragraphs |
| headings | list | h1-h6 headings |
| blocks | list | Ordered text blocks with type and heading level when applicable |
| tables | list | Tables with rows |
| lists | list | ul and ol lists |
| tags | list | OneNote tags |
| hyperlinks | list | Links |
| attachments | list | File attachments |
| loop_components | list | Loop / Fluid placeholders pointing to separate .loop files |
| images | list | Base64 images |
| permissions | list | Who has access |
Error Handling
| Exception | When |
|---|---|
| AuthenticationError | Token expired or invalid |
| InvalidURLError | URL cannot be parsed |
| NotFoundError | Notebook/page not found |
| RateLimitError | Graph API throttling |
| ParseError | HTML parsing failed |
| NetworkError | Connection timeout |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onenote_enterprise-1.0.0.tar.gz.
File metadata
- Download URL: onenote_enterprise-1.0.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
545fe3efc0cc0b99a55d689405a6955d0e55c201c6d48aad9c20f8f67d8bb59f
|
|
| MD5 |
e57aef99513e585e2206c18cdfeafa6f
|
|
| BLAKE2b-256 |
2dae019e29a3784426dc5acaf114af5126df982fe6d84b909f911c249c21821a
|
File details
Details for the file onenote_enterprise-1.0.0-py3-none-any.whl.
File metadata
- Download URL: onenote_enterprise-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf90df907909076b96a0e1bfb9d470d7429934f75e6c130b3e5590cca1a9e0c9
|
|
| MD5 |
6c570666fa0d60896e670fb5c17226b0
|
|
| BLAKE2b-256 |
06220e736e3838f3d2f2005295808dcf4ac0828e16fd41b845662e2ea13a440c
|