Skip to main content

Unofficial Python API client that allows you to access your Supernote files through the Supernote Cloud

Project description

Supernote Cloud API Client for Python

Unofficial Python API client that allows you to access your Supernote files through the Supernote Cloud.

sncloud is intended for integrating your Supernote Cloud files into other apps. Yes, there are other cloud providers integrated into the Supernote which are easier to develop for, but only the Supernote Cloud offer "auto sync" at the moment. The Supernote APIs are extensive but this library only covers the subset that most developers will need for common filesystem actions such as list, download and upload files.

So while it doesn't currently cover every endpoint (for example you cannot delete, move or rename files) it will likely work for you. That said, PRs are weclome.

Core Features

  • 🔑 Login to the Supernote Cloud
  • 🔍 List the files and folders for a parent directory
  • 💾 Get a file and save it locally
  • 📄 Get a note file and convert it to PDF
  • 🖼 Get a note file and convert it to PNG
  • 🔼 Put a file and upload it to the cloud
  • 📂 Make a directory on the cloud

Installation

pip install sncloud

Usage

from sncloud import SNClient

client = SNClient()
client.login("test@example.com", "1234") # login with email and password
files = client.ls() # returns a list of the files/directories on the Supernote
print(files)
client.get(1) # downloads the file with the given id

Roadmap

  • Example scripts
  • Advanced API calls
  • Get Supernote Cloud API complete
  • CLI/SHELL script
  • Docker container

Want to contribute?

PRs are welcome. But please open an issue first to see if the proposed feature fits with the direction of this library.

Acknowledgements

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

sncloud-0.1.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

sncloud-0.1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sncloud-0.1.2.tar.gz.

File metadata

  • Download URL: sncloud-0.1.2.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.8

File hashes

Hashes for sncloud-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a56dc8964215c2ecbf62e490965f1d5f55840345992cf3e1d8f459218a3cec82
MD5 a8d9467051bb99661c6fcb0fd037fa63
BLAKE2b-256 bbee211c2eab243439e9f1128b4ff130de6363d90f1a2905e19fe4b0fb924439

See more details on using hashes here.

File details

Details for the file sncloud-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sncloud-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.8

File hashes

Hashes for sncloud-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc006ed9d4ec6f7ec2126dbc1753cc3aec6b7b84f4b22c38baf9d316db742b65
MD5 fa44af680a8bdb1b8207eb01ce8670c7
BLAKE2b-256 eccce27d7beea1003f62bad6dfa0da3c33bf9a5ae310d460a127b42219be0c37

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