Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
incognito1234 committed Feb 16, 2025
1 parent 8d2d1c0 commit 64b2ebf
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 40 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -116,7 +117,7 @@ Differential uploading and downloading (`mput` and `mget` commands) are availabl
$ cd <venv_folder>/odc
$ ./odc.py <args>

or if the shortcut has been created
or if the shortcut has been created,

$ odc <args>

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
4 changes: 2 additions & 2 deletions lib/_common.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# 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"


Expand Down
2 changes: 1 addition & 1 deletion lib/_typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# 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
Expand Down
2 changes: 1 addition & 1 deletion lib/action_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import logging
Expand Down
2 changes: 1 addition & 1 deletion lib/args_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details

Expand Down
2 changes: 1 addition & 1 deletion lib/auth_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details

Expand Down
2 changes: 1 addition & 1 deletion lib/bulk_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import logging
Expand Down
2 changes: 1 addition & 1 deletion lib/check_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import base64
Expand Down
2 changes: 1 addition & 1 deletion lib/datetime_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import datetime
Expand Down
2 changes: 1 addition & 1 deletion lib/file_config_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import logging
Expand Down
2 changes: 1 addition & 1 deletion lib/graph_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import logging
Expand Down
2 changes: 1 addition & 1 deletion lib/msobject_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import datetime
Expand Down
2 changes: 1 addition & 1 deletion lib/printer_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import os
Expand Down
2 changes: 1 addition & 1 deletion lib/shell_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import argparse
Expand Down
2 changes: 1 addition & 1 deletion lib/strpathutil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
import os
Expand Down
2 changes: 1 addition & 1 deletion odc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!../bin/python3
# Copyright 2019-2024 Jareth Lomson <jareth.lomson@gmail.com>
# Copyright 2019-2025 Jareth Lomson <jareth.lomson@gmail.com>
# This file is part of OneDrive Client Program which is released under MIT License
# See file LICENSE for full license details
"""
Expand Down

0 comments on commit 64b2ebf

Please sign in to comment.