Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow using a heuristic with the `doesitcache` tool

Aperta
#118 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Inizia individuando l’entry point CLI di doesitcache e le classi base delle euristiche. Esamina come vengono individuate e istanziate le euristiche, quindi implementa le modalità richieste per l’elenco, per l’euristica denominata e per il percorso Python con le opzioni predefinite; il lavoro include la documentazione delle nuove opzioni e del loro comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

  1. doesitcache --list-heuristics - list the available heuristics and print the docstring of the classes
  2. 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
  3. 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!

Lingua principale
Python
Stelle
505
Fork
153
Merge medio
5g 6h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di psf/cachecontrol

Tutte le issue di psf/cachecontrol

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.