Comments (4)
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.
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.
yeah, we'd like to use it in jamovi
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.
from osfclient.
Related Issues (20)
- `osf clone` fails with a KeyError HOT 4
- OSF clone fails. HOT 1
- rsync-like behavior HOT 1
- issue with python 3? HOT 4
- ConnectionError of osf clone HOT 7
- Incorrect error on large files
- During recursive upload subfolder name is changed if it contains parent folder name as substring HOT 1
- Fetch is extremely slow for large repos
- add size atribute to File class
- Add a special exception for responses with 4xx status
- add token option to client HOT 3
- How to backup wiki-pages via osfclient? HOT 1
- upload directory into remote path will create new directory in root
- upload directory into remote folder will create another new folder in root
- KeyError: 'content-length' when cloning from OSF if Github-Add-on is activated HOT 1
- Show progress when uploading
- Unable to upload file into existing folder in OSF storage HOT 6
- Slow indexing of folder tree HOT 1
- transfer completes but `osfclient.cli.upload` hangs
- Folder indexing returns incomplete list of files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osfclient.