Active development, making library async compatible, client agnostic etc.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
Línea de trabajo
Comienza revisando la suite de pruebas completa existente junto con el fork vinculado de httpx-caching y los pull requests 240 y 225, además del issue 232, referenciados. La dirección propuesta es una biblioteca de caché independiente del cliente, síncrona/asíncrona, con pruebas sans-IO; para darlo por terminado sería necesario contar con un diseño y un plan de implementación acordados, en lugar de un único cambio localizado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Just wanted to create a bit of a point of discussion regarding "the big picture".
It would seem that @ionrock doesn't have masses of time to spend on this project at the moment. It works great, and a lot of people use it. Smaller changes are being merged but the occasional burst of more extensive input / PRs by contributors tend to fizzle out. This is totally understandable. But would be great if this energy could be put to use!
At the end of last year I got excited about httpx and decided I wanted to try and port this library to work with it. I then got larger aspirations and decided to try and separate the caching logic from the IO following the sans-io philosophy (and therefor also the requests specific stuff). This would mean it could have a transport for requests and a transport for httpx, and would also be fully asyncio compatible.
To be honest it was more a bit of fun than anything, but I had a bee in my bonnet and got it working, with the full test suite passing, sync and async. The caching policy is implemented as a coroutine, which seemed a pretty neat abstraction at the time. It works with async, but there's only an in-memory cache backend at the moment. Other backends could be added with full asyncio compatibility which would be cool!
I guess the big question is, is there enough interest / energy out there to make something happen.
My vision would be a httpx/requests agnostic, sync async compatible library. The test suite would be all data in and out of the sans-io protocol, no need for mocking requests etc. (this isn't something I got round to doing but shouldn't be hard to do with the existing test suite).
My fork may or may not be a good starting point! I'm quite happy with it..
I wish I could say I had loads of time and energy to put into something like this, but health issues mean I might not be able to offer much more than discussion and code reviews, and my fork if someone wanted to use it as a starting point. I also hope I'm not treading on any toes, just don't want to see good intentions and code go to waste.
https://github.com/ionrock/cachecontrol/pull/240
@Flameeyes's large refactor PR (would have based my fork on this if I'd known about it)
https://github.com/ionrock/cachecontrol/pull/225
https://github.com/ionrock/cachecontrol/issues/232
@Flameeyes @hexagonrecursion
- Lenguaje dominante
- Python
- Estrellas
- 505
- Forks
- 153
- Merge medio
- 5 d 6 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de psf/cachecontrol
-
Cache Deserialization (part two) -- warning message incorrect?Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
psf/cachecontrol#209 · 5 comentarios ·
-
Race condition in send()Posiblemente ocupada @JulienPalard la tomó hace 146 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
psf/cachecontrol#424 · 1 comentario ·
-
HTTP 302 Found responses with Cache Headers not being cachedPosiblemente ocupada @cburroughs la tomó hace 279 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
psf/cachecontrol#384 · 18 comentarios ·
-
Head request is not cached even with cacheable_methods=("GET", HEAD") without a previous GETQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
psf/cachecontrol#337 · 6 comentarios ·
-
Investigate failure to load caches above `2^32 - 1` bytesQuizá libre de nuevo @woodruffw la tomó hace 852 días y no hay ningún pull request abierto. Abierto
psf/cachecontrol#336 · 4 comentarios · 1 reacción · 1 asignado ·
Todos los issues de psf/cachecontrol
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
huggingface/peft#3955 ·
Los mantenedores suelen responder en 1 día
-
author-page correction
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
acl-org/acl-anthology#10313 ·
Los mantenedores suelen responder en 1 día
-
anime duplicate exception request-theme
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
LizardByte/ThemerrDB#8926 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
huggingface/transformers#49556 ·
Los mantenedores suelen responder en 1 día
-
area/security bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
mozilla-ai/otari#2245 ·
Los mantenedores suelen responder en 1 día