Use the ToDus API (login/download/upload) in your Python projects.
📦 The package is adapted for use in Jupyter Notebook 📓
To install run:
pip install todus3
If want support for upload by parts using 7Zip (py7zr):
pip install todus3[7z]
### Help
todus3 -- help
### Login and Enter PIN
todus3 -n 53123456 login
### Download from TXT files with 3 Workers/Threads
todus3 -n 53123456 download -t 3 file.txt [file.txt ...]
### Upload file by parts in Bytes (10 MB)
todus3 -n 53123456 upload binary.bin -p 10485760
When using todus3
the configuration file (.ini) is created with the DEFAULT
section and the following keys with values:
[DEFAULT]
max_retry = 3 # Maximum number of times to repeat if an error occurs
down_timeout = 30.0 # Maximum time in seconds to reach time out
production = True
password = PASSWORD # Password established when sending the registration code
token = TOKEN # Token that is used in the authentication for uploading or downloading files
The following is recommended for uploading or downloading the file:
If your speed (download/upload) is equal to 70 KB/s in 120 seconds (ToDus limit) you can upload up to approximately 8 MB
P = Vd * 120 / 1024
Follow the dev branch and Feedbacks or Pull Requests are welcome 🙏🏾