Separate hashstore config from hashstore class

Aperta
#156 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@datadavev ci sta già lavorando.

Dal 31/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

The FileHashStore initialization takes a dict of values that must align with existing hashstore properties and/or pass verification tests which are implemented as part of the FileHashStore class. This leads to confused type checking and challenges opening an existing instance since the config must be known to open even though the config is part of the existing hashstore.

Split out the initialization properties to a separate class that verifies the property value type and range.

Enable FileHashStore instantiation with path only, loading the config params from stored config.

Add typehints and checking to reducing parameter type confusion and faciliate range verification.

Remove the spurious parameter checking from FileHashStore to reduce the amount of overloaded implementation.

Lingua principale
Python
Stelle
1
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 DataONEorg/hashstore

Tutte le issue di DataONEorg/hashstore

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.