Comments (5)
Hey @mjkanji,
Thanks for opening the issue, I'll have a more detailed look later when I have the time :)
First question, does UPath
support async operations ?
It makes sense for it not to work with the async client, since we wrap the pathlib.Path
object with an anyio.Path
wrapper to add async I/O ops:
httpx-cache/httpx_cache/cache/file.py
Lines 67 to 78 in adbbeda
It works with the sync client since we use the user provided path directly.
from httpx-cache.
A new version has been released with async support for UPath
, let me know if it works out to close the issue :)
https://obendidi.github.io/httpx-cache/guide/#fsspecuniversal_pathlib-integration
from httpx-cache.
A new version has been released with async support for
UPath
, let me know if it works out to close the issue :)
It is working, indeed! Thank you for the quick fix!
A quick clarification: does this also work for the (Async)CacheControlTransport
or just the clients?
from httpx-cache.
should work for everything, the clients use the CacheControlTransport
inside
from httpx-cache.
Awesome, thanks!
from httpx-cache.
Related Issues (10)
- You have an undeclared dependency on attrs HOT 3
- Hope to use redis cache HOT 3
- Patch httpx dependency HOT 2
- Conda HOT 4
- Overwrite is_response_cacheable / ignore `no-store` HOT 3
- Errors in concurrent access to cached files HOT 6
- Cache Confirmation Header HOT 2
- Cache not working HOT 6
- Comparison to httpx-caching HOT 2
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 httpx-cache.