Coder Social home page Coder Social logo

Asynchronous? about osfclient HOT 4 OPEN

osfclient avatar osfclient commented on June 19, 2024
Asynchronous?

from osfclient.

Comments (4)

betatim avatar betatim commented on June 19, 2024 2

dockerspawner for jupyterhub is where I have seen it. There the number of threads is set to one on purpose for the executor but that is because of docker (I think) not a general limitation.


first he made us remove nice python3 only syntax and noooooww "python2 compat is not a hard requirement" :-p

from osfclient.

betatim avatar betatim commented on June 19, 2024

What is the use case you have in mind?

Short answer: Not really.

Longer answer: I assume you mean the library part of osfclient right? I think the biggest hurdle/burden would be finding something that works both in python2 and python3 in terms of async. I haven't kept an eye on this: is there a async replacement for requests?

Something we should definitely think about is how to make it easy/not get in the way of making osfclient (the library) appear to be async by putting calls to it into a ThreadPoolExecuoter. This approach works quite well for jupyterhub which is a tornado application wanting to make calls to the sync docker client.

Would this kind of compromise work for what you had in mind?

from osfclient.

jonathon-love avatar jonathon-love commented on June 19, 2024

yeah, we'd like to use it in jamovi

https://www.jamovi.org

but yeah, i think you're right. the challenge will be python2 compatibility.

according to this:

http://docs.python-requests.org/en/master/user/advanced/#blocking-or-non-blocking

grequests and requests-futures are async alternatives.

maybe i'll take a look at the jupyter hub, because we're a tornado application as well, and if that approach just works ...

cheers

jonathon

from osfclient.

ctb avatar ctb commented on June 19, 2024

from osfclient.

Related Issues (20)

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.