Skip to main content

A Python client for connecting to a Supernote Private Cloud Instance.

Project description

Supernote Private Cloud Python Client

A Python client for connecting to a Supernote Private Cloud Instance. Useful for automating tasks like uploading content to your Supernote device.

Requires Python 3.10+

Install

pip install snpvclient

Usage and Examples

Setup the client and connect to private cloud.

import snpvclient as sn
snclient = sn.SNPClient('https://supernote.example.com')
snclient.login('email@example.com', 'password')

Get root folder and file list

root_folder = snclient.getList()

Get list of folders and files for a specific id

folder_list = snclient.getList('78236046000054508') # id

Upload a file

upload = snclient.upload(file_path, directoryId)

Delete a file

delete = snclient.delete('directoryId', ['document id', 'document id'])

Get PNG url of all pages of a .note file.

png = snclient.getPNG('document id')

Get PDF url of a .note file. Pass specific page numbers as a list or a blank list for all pages.

pdf = snclient.getPDF('document id', ['pageNo'])

Actions

List all folders and files

sn.actions.list_folder(snclient)

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

snpvclient-0.1.5.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

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

snpvclient-0.1.5-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file snpvclient-0.1.5.tar.gz.

File metadata

  • Download URL: snpvclient-0.1.5.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snpvclient-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a62d162bef354b141f492f99b5f58fec1d3b10ae7861506dd1ab43d39dddb408
MD5 e592a1bcfbec7e130c2929417d063024
BLAKE2b-256 fabb34c5013341727f3289b9bdc897cf20ddb4a3e1c1ae0786e4f0393c5a3a3e

See more details on using hashes here.

File details

Details for the file snpvclient-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: snpvclient-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snpvclient-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a58f5b1df6a29a2c393787a80a897c72d3505030a10cd863ae7a1c3e805eba44
MD5 c1439f13a382faba75999fb08c4368be
BLAKE2b-256 478c2f467c0d67eef652778cd57b5cc076e80ee9328988d4cb8220708c096180

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