Skip to main content

A Python wrapper for the Notesnook Inbox API.

Project description

A Python Handler for the Notesnook Inbox API.

Features

  • Encrypts items locally before they leave your machine.
  • Supports self-hosted notesnook servers, even those that do not host an Inbox API server. (This library replaces the need to use the Inbox API server.)
  • Supports multiple Notesnook accounts & servers at once.

Installation

Installation via pip is simple:

pip install nn-inbox-api

Usage

from nn_inbox_api import Notesnook_Inbox
inbox = Notesnook_Inbox(apikey="yourapikey")
inbox_on_selfhosted = Notesnook_Inbox(apikey="yourapikey",server="https://nn-api-server.your-server.tld/inbox/") # the sync server has the functionality to allow users to send pre-encrypted messages at the /inbox/ endpoint.

##########
# The most basic create note is shown below:
# create_note("Title", "Content (html)", "Note Source")
# A full list of attributes is available here: https://help.notesnook.com/inbox-api/getting-started#3-send-data-to-the-inbox

# A realistic example of a note might be...
inbox.create_note("Title", "<h1>Content</h1><p>I'm a paragraph!</p>", "from the nn-inbox-api python script", archived=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nn_inbox_api-0.1.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nn_inbox_api-0.1.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file nn_inbox_api-0.1.3.tar.gz.

File metadata

  • Download URL: nn_inbox_api-0.1.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nn_inbox_api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1f0acd9664512cf5866978974c671be706521ab36eb9c3b4f0d6c1218e2971f0
MD5 40e19c94f490c2c0de61842e5450f163
BLAKE2b-256 f4728e6528d3f8fb73bc079d82d8a9045667d43e20a0c999b675d15167cad5f6

See more details on using hashes here.

File details

Details for the file nn_inbox_api-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: nn_inbox_api-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nn_inbox_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49b394f6e207e0f06a70320b5047d26373f6c99469a3e690ec50b9ce6705e9b9
MD5 a74fab3c409877b84f14c1ebff6d4e15
BLAKE2b-256 e9187f5031fef1c045d90882ac010df494547caf77ae49a0d62d1845c611d134

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page