GithubHelp home page GithubHelp logo

fs.onedrivefs's People

Contributors

anderssonjohan avatar carnoisseur1979 avatar odgalvin avatar rkhwaja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fs.onedrivefs's Issues

Bad error when authentication token format is wrong

If you pass None for the token, it gets all the way down to the network call before throwing, for example, DirectoryExpected from listdir.

Proper solution is to pass the tokens themselves into the constructor and not expose the oauthlib format

Support 3.11

Need wheel for cffi and maybe for lazy-object-proxy, pynacl, pyyaml, typed_ast and wrapt

Add support for using different OAuth2 clients

Since OAuth2Session that is used in this library supports different types of OAuth2 clients it would be convenient to be able to use the client that works with the type of token grant flow that is set up with the authentication against MS Graph API.

Currently the Authorzation Code Grant is the only one supported, since the default OAuth2 client is WebApplicationClient.

We have a different setup and the refreshing of tokens doesn't seem to work due to this.

So my request is to add support for this.

fsspec support?

Does anyone know if there is, or plans to, support fsspec so we can do one liner read/write data frames to/from onedrive?

Package renamed in 1.1.2 and 1.1.3 wheels

Upgrading to 1.1.3 makes pkg_resources.require("anything") raise a DistributionNotFound error.

Repro:

mkdir onedrivefs113
cd onedrivefs113
python -m venv venv
. venv/bin/activate
pip install fs.onedrivefs==1.1.3
python
>>> import pkg_resources
>>> pkg_resources.require("fs.onedrivefs")

Output:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'fs.onedrivefs' distribution was not found and is required by the application

Doing the same with 1.1.1:

>>> import pkg_resources
>>> pkg_resources.require("fs.onedrivefs")
[fs.onedrivefs 1.1.1 (venv/lib/python3.9/site-packages), requests-oauthlib 1.3.1 (venv/lib/python3.9/site-packages), requests 2.28.1 (venv/lib/python3.9/site-packages), fs 2.4.16 (venv/lib/python3.9/site-packages), requests 2.28.1 (venv/lib/python3.9/site-packages), oauthlib 3.2.2 (venv/lib/python3.9/site-packages), certifi 2022.9.24 (venv/lib/python3.9/site-packages), urllib3 1.26.12 (venv/lib/python3.9/site-packages), idna 3.4 (venv/lib/python3.9/site-packages), charset-normalizer 2.1.1 (venv/lib/python3.9/site-packages), six 1.16.0 (venv/lib/python3.9/site-packages), setuptools 60.5.0 (venv/lib/python3.9/site-packages), appdirs 1.4.4 (venv/lib/python3.9/site-packages)]

@rkhwaja I can't see any differences and the CI workflow does not include any poetry build command so it's unclear how you build these wheels to get repeatable builds. I do notice though that you have built v1.1.1 and v1.1.3 using different poetry versions and building with poetry 1.1.x instead of 1.0.x is changing some things. For example, the lock file no longer contains platform markers so if you build with poetry build you will be fine, but if you do a poetry export the platform markers etc will be gone in the requirements file. There are also some strange duplication going on in the supported python version metadata in the new wheel.

image

I was able to help out with the PR for the fix in 1.1.2 but here I can't help out since the build command is not contained in the CI workflow.

Assertion when copying

AssertionError: Unexpected status: {'operation': 'itemCopy', 'percentageComplete': 100.0, 'resourceId': 'xxxxxxxxxxxxxxxx!xxxxx', 'status': 'completed'}

Reduce logging level from info to debug for OneDriveFS calls

When the log level is set to info the logs are filled with information from fs.onedrivefs that is irrelevant in most cases. The logs are too chatty/verbose and it would be really nice if it could be possible to reduce the logging level for all calls in OneDriveFS to debug instead if info.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.