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 pytolino

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, add to a collection 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.add_collection(epub_id, 'science fiction') # add the previous book to the collection science-fiction
client.delete_ebook(epub_id) # delete the previousely uploaded ebook
inventory = client.get_inventory() # get a list of all the books on the cloud and their metadata
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

  • add a book to a collection

  • download inventory

  • 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-1.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

pytolino-1.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytolino-1.1.tar.gz
Algorithm Hash digest
SHA256 724ebed34a66de5bd1c22c4442d3d5ec9354149089eb9a639c72a300ea87c7f1
MD5 b3308db12c24c3034495c4dc9f7f9bb2
BLAKE2b-256 28c247134ba45f20a5b18f966d9fa6a8c132e2a1c83ce03b843fd8fd63fc22bd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytolino-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed0f34721afc8437804024e1a80402fea982625f7c4963f5cb3c20e9f188cf3
MD5 c6291bb315ef7b2a3f222f95347deccb
BLAKE2b-256 33abb32f8d262e94cbed8ba4f19b53c66170de275e93a51a74e0bcbbcf7d95aa

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