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 SncloudClient
client = SncloudClient()
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
- General idea for a Supernote Cloud library taken from the amazing rmapi project for the reMarkable cloud
- Help to identify API endpoints from NYT crossword puzzle to Supernote script
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
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 sncloud-0.1.0.tar.gz.
File metadata
- Download URL: sncloud-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e09708de5a528660ce4c0429288022fc4911a4aaa95031fd102f0e148c5bcc9
|
|
| MD5 |
bb51e3dfb44f8439f6f4e18d704f5e7c
|
|
| BLAKE2b-256 |
44e11dcf0f3d43dec5a22802b04eb1ae52b062c66278eda45ec746a1692538df
|
File details
Details for the file sncloud-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sncloud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40348dc891ec5f30dbf85aa3271f9af173fe4e1345a9995e139dbd3c14b592d1
|
|
| MD5 |
e3b0504fd96b49faff2944c62091131d
|
|
| BLAKE2b-256 |
eced5a6dd5e2d58a51063a6f5f5d98d897e262fb85a3dfc3b56e1db171fa766f
|