unioslo / tsd-api-client

Command line client for the TSD HTTP API
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

Switch to string enumeration for environment setup #115

Closed haatveit closed 1 year ago

haatveit commented 1 year ago

This commit centralizes environment configuration into custom string enum classes (for Python backwards compat) in the environment module.

Through env name manipulation on read/write in the configurer and session module, compatibility with existing YAML data is maintained.