Skip to main content

client for tolino cloud

Project description

pytolino

A client to interact (login, upload, delete ebooks, etc..) with the tolino cloud with python. Most of the code is forked from https://github.com/darkphoenix/tolino-calibre-sync

One difference is that I aim to create a python package from it and to put it on pypi, so that one can use this python module in other projects.

Installation

pip install tolino_cloud_client

Usage

Before being able to send requests, you need to register your computer on which you will run the code:

from pytolino.tolino_cloud import Client, PytolinoException
client = Client()
client.login(USERNAME, PASSWORD)
client.register() # do this only once!
client.logout()

You can then upload or delete ebook on your cloud:

from pytolino.tolino_cloud import Client, PytolinoException
client = Client()
client.login(USERNAME, PASSWORD)
ebook_id = client.upload(EPUB_FILE_PATH) # return a unique id that can be used for reference
client.delete_ebook(epub_id) # delete the previousely uploaded ebook
client.logout()

if you want to unregister your computer:

from pytolino.tolino_cloud import Client, PytolinoException
client = Client()
client.login(USERNAME, PASSWORD)
client.register() # now you will not be able to upload books from this computer
client.logout()

Features

  • login to tolino partner (for now works only with buecher.de)

  • register device

  • unregister device

  • upload ebook

  • delete ebook from the cloud

  • more to come…

License

The project is licensed under GNU GENERAL PUBLIC LICENSE v3.0

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

pytolino-0.1.4.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

pytolino-0.1.4-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file pytolino-0.1.4.tar.gz.

File metadata

  • Download URL: pytolino-0.1.4.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pytolino-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b75df0ca2cfeeb5ae65ced8aabc54ca5f19cd29161c049624346f52f87460d6d
MD5 42678a6648956a6fcb62e737780248f1
BLAKE2b-256 c98305d3f7a3ff8b7a0ab2fbfcb26e71960eb9ee701d3abbb17c880a47365f87

See more details on using hashes here.

File details

Details for the file pytolino-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pytolino-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pytolino-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d601eb28e712bdb50dda1ac1ad9e32159c7cd22b69e2e4c37962daec419c05a0
MD5 bd33a3ddc66f83f77c9cfd2d28f89692
BLAKE2b-256 1f88b32bcd8dcedb10c36fbd5a511a904f6bc96e387e9431dda4bbc9ab95de8e

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