Allow using a heuristic with the `doesitcache` tool
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Comienza localizando el punto de entrada de CLI de doesitcache y las clases base de las heurísticas. Revisa cómo se descubren y se instancian las heurísticas y, a continuación, implementa los modos solicitados de listado, de heurística con nombre y de ruta de Python con opciones predeterminadas; el trabajo incluye documentar las nuevas opciones y su comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Often times CacheControl be confusing b/c something seems like it should be cached, but it is not. There is typically a good explanation for this and work around that comes in the form of heuristics. It would be helpful for the doesitcache tool to accept a heuristic.
Specificially:
- doesitcache --list-heuristics - list the available heuristics and print the docstring of the classes
- doesitcache --heuristic $NAME - Apply an heuristic. There might be options that need to be passed in, which seems to go above and beyond at the moment. Just making sure heuristics have defaults should be enough
- doesitcache --heuristic $PATH - Use the file to load a python object as the heuristic. The algorithm would be to import it and see what classes are instances of the heuristic base class, choosing the first one to apply.
Docs!
Thanks to @sigmavirus24 for the suggestion!
- 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 148 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 281 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 854 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
-
md/asciidoc/csv: an explicit `encoding="utf-8"` keeps a leading BOM, the auto-detect path drops itAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
docling-project/docling#4846 ·
Los mantenedores suelen responder en 1 día
-
area/sessions comp/dashboard comp/desktop comp/gateway comp/tui duplicate P2 sweeper:risk-session-state type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#138914 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bot-triaged module: activation checkpointing module: inductor oncall: pt2 triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
[oblt-aw][autodoc] Update PR Actions Detective E2E prerequisites and fix dashboard-format table typoAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
elastic/oblt-aw#2382 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día