From 64b2ebfa4d66b9f16fc72d2d311eb246c54134d4 Mon Sep 17 00:00:00 2001 From: Jareth Lomson Date: Sun, 16 Feb 2025 10:59:00 +0100 Subject: [PATCH] Bump version --- LICENSE | 2 +- README.md | 45 ++++++++++++++++++++------------------- lib/__init__.py | 2 +- lib/_common.py | 4 ++-- lib/_typing.py | 2 +- lib/action_helper.py | 2 +- lib/args_helper.py | 2 +- lib/auth_helper.py | 2 +- lib/bulk_helper.py | 2 +- lib/check_helper.py | 2 +- lib/datetime_helper.py | 2 +- lib/file_config_helper.py | 2 +- lib/graph_helper.py | 2 +- lib/msobject_info.py | 2 +- lib/printer_helper.py | 2 +- lib/shell_helper.py | 2 +- lib/strpathutil.py | 2 +- odc.py | 2 +- 18 files changed, 41 insertions(+), 40 deletions(-) diff --git a/LICENSE b/LICENSE index c917888..c18c962 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright 2019-2024 Jareth Lomson +Copyright 2019-2025 Jareth Lomson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 70b1051..d449a71 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ ODC is a command line tool to interact with a Microsoft OneDrive Personal Storage. +![Python 3.11](https://img.shields.io/badge/python-3.11-blue) +![Python 3.12](https://img.shields.io/badge/python-3.12-blue) +![Tested with OneDrive Personal](https://img.shields.io/badge/Tested%20with-OneDrive%20Personal%20Account-blue) + + ## Available features The following commands are available: @@ -38,20 +43,16 @@ Parameters of each command are described in help output The screencast above demonstrates the following features: - - Uploading of complete folder + - Uploading a complete folder - Browsing OneDrive from the shell - - Autocompletion of folder and file name - - File removal from the shell - - Detection of external changes by shell - - Large file upload + - Autocompletion of folder and file names + - Removing files from the shell + - Detection of external changes by the shell + - Uploading large file ## Requisites -ODC has been tested with the following environment -- python 3.11/python 3.12 -- Personal Microsoft account - -Progress bar can be enabled when a large file or a complete folder is uploaded or downloaded. This feature needs `tqdm` python module. -Differential uploading and downloading (`mput` and `mget` commands) are available if a`quickxorhash` command is available in `PATH` variable or if `quickxorhash` python module is installed. +A progress bar can be enabled when a large file or a complete folder is uploaded or downloaded. This feature requires the `tqdm` Python module. +Differential uploading and downloading (`mput` and `mget` commands) are available if a`quickxorhash` command is available in the `PATH` variable or if the `quickxorhash` Python module is installed. ## Installation @@ -73,35 +74,35 @@ Differential uploading and downloading (`mput` and `mget` commands) are availabl ### On client computer -- Create python environment and retrieve the code +- Create Python environment and retrieve the code $ python3 -m venv envodc $ cd envodc $ git clone /~https://github.com/incognito1234/onedrive-client.git odc $ cd odc -- Prepare python environment and install required packages +- Prepare the Python environment and install the required packages $ . ../bin/activate $ pip -r requirements.txt -- If you want to have progress bar during upload or downloading, install `tqdm` package +- If you want to have a progress bar during upload or download, install `tqdm` package $ pip install tqdm -- On Windows platform, import the package `pyreadline3` +- On the Windows platform, import the package `pyreadline3` $ pip install pyreadline3 -- Configure connection to OneDrive +- Configure the connection to OneDrive - - Copy `oauth_settings.yml.sample` in `oauth_settings.yml` - - Copy/Paste `Application ID` and `Secret Value` of azure application in the relevant parts of `oauth_settings.yml` file + - Copy `oauth_settings.yml.sample` to `oauth_settings.yml` + - Copy/Paste `Application ID` and `Secret Value` of the Azure application into the relevant parts of `oauth_settings.yml` file - Initiate connection $ ./odc.py init - ... Copy/Paste provided URL in a browser - ... Copy/Paste URL from the browser into the console + ... Copy/Paste the provided URL into a browser + ... Copy/Paste the URL from the browser into the console - Optional: create a shortcut to launch ODC @@ -116,7 +117,7 @@ Differential uploading and downloading (`mput` and `mget` commands) are availabl $ cd /odc $ ./odc.py - or if the shortcut has been created + or if the shortcut has been created, $ odc @@ -130,7 +131,7 @@ _Only main changes are listed here_ ### Version 1.3 - Improves error management during download - Add exclusion list as an option to the `mget` command -- Consider drive object which are not file or folder (could be a Notebook) +- Consider drive objects which are not file or folder (could be a Notebook) - Use quickxorhash module if available (Thanks [wienand](/~https://github.com/incognito1234/onedrive-client/pull/5)) - Add `max_retrieved_children` to the `ls` command to list folders with more than 200 children diff --git a/lib/__init__.py b/lib/__init__.py index 9b7b2d7..9ba4c2e 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -1,3 +1,3 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details diff --git a/lib/_common.py b/lib/_common.py index 155ce87..e66e7a2 100644 --- a/lib/_common.py +++ b/lib/_common.py @@ -1,8 +1,8 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details -VERSION = "1.4.0-beta" +VERSION = "1.4.0" PROGRAM_NAME = "OneDrive Client Program" diff --git a/lib/_typing.py b/lib/_typing.py index c01de30..725e780 100644 --- a/lib/_typing.py +++ b/lib/_typing.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details from sys import version_info diff --git a/lib/action_helper.py b/lib/action_helper.py index 804709c..322b372 100644 --- a/lib/action_helper.py +++ b/lib/action_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import logging diff --git a/lib/args_helper.py b/lib/args_helper.py index ec529bd..45d999f 100644 --- a/lib/args_helper.py +++ b/lib/args_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details diff --git a/lib/auth_helper.py b/lib/auth_helper.py index d8c660d..24728ad 100644 --- a/lib/auth_helper.py +++ b/lib/auth_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details diff --git a/lib/bulk_helper.py b/lib/bulk_helper.py index 4bba7e3..f7bc91a 100644 --- a/lib/bulk_helper.py +++ b/lib/bulk_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import logging diff --git a/lib/check_helper.py b/lib/check_helper.py index 62cdb7c..6194a62 100644 --- a/lib/check_helper.py +++ b/lib/check_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import base64 diff --git a/lib/datetime_helper.py b/lib/datetime_helper.py index 71b7d58..418ec84 100644 --- a/lib/datetime_helper.py +++ b/lib/datetime_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import datetime diff --git a/lib/file_config_helper.py b/lib/file_config_helper.py index 2cf5b3d..4dcf669 100644 --- a/lib/file_config_helper.py +++ b/lib/file_config_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import logging diff --git a/lib/graph_helper.py b/lib/graph_helper.py index c2440fe..867604d 100644 --- a/lib/graph_helper.py +++ b/lib/graph_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import logging diff --git a/lib/msobject_info.py b/lib/msobject_info.py index 61cd867..8f2eef4 100644 --- a/lib/msobject_info.py +++ b/lib/msobject_info.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import datetime diff --git a/lib/printer_helper.py b/lib/printer_helper.py index dd44779..a0a96fe 100644 --- a/lib/printer_helper.py +++ b/lib/printer_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import os diff --git a/lib/shell_helper.py b/lib/shell_helper.py index 9605abd..fcbc33c 100644 --- a/lib/shell_helper.py +++ b/lib/shell_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import argparse diff --git a/lib/strpathutil.py b/lib/strpathutil.py index 95a5677..142f881 100644 --- a/lib/strpathutil.py +++ b/lib/strpathutil.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details import os diff --git a/odc.py b/odc.py index 55f9ace..33b69fc 100755 --- a/odc.py +++ b/odc.py @@ -1,5 +1,5 @@ #!../bin/python3 -# Copyright 2019-2024 Jareth Lomson +# Copyright 2019-2025 Jareth Lomson # This file is part of OneDrive Client Program which is released under MIT License # See file LICENSE for full license details """