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

Database layer for scenario list and execute list

Aperta
#269 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jenhagg ci sta già lavorando.

Dal 25/8/2020.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Epic new feature

We use ScenarioList.csv and ExecuteList.csv to track the metadata and state, respectively, of scenarios. Work was done to duplicate this functionality using postgresql, however I think it is preferable to keep this data in a file rather than hosting a database. On the other hand, it would be better to have a more reliable and user friendly mechanism than csv files. Some options for this include

  • sqlite: built into python stdlib, single file but can have multiple tables, transactions
  • TinyDB: a lightweight db api which uses a json file, less worry about schema, no transactions
  • other options

Considerations:

  • we probably want to extend the schema at some point for capacity expansion scenarios
  • foreign keys and indexes probably aren't super important
  • some users may want to have multiple parallel python clients, so some degree of concurrency control is needed

The csv and sql implementations can be found here. If we decide on sqlite, some of that could probably be reused.

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

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Breakthrough-Energy/PowerSimData

Tutte le issue di Breakthrough-Energy/PowerSimData

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.