code-kern-ai / refinery

The data scientist's open-source choice to scale, assess and maintain natural language data. Treat training data like a software artifact.
https://www.kern.ai
Apache License 2.0
1.4k stars 68 forks source link

Environment variables #118

Open jhoetter opened 2 years ago

jhoetter commented 2 years ago

Is your feature request related to a problem? Please describe. I work with Symanto's API to enrich my textual data with e.g. communication style or personality traits. I store the token in my functions, but that feels cumbersome to manage as soon as I have multiple heuristics, all calling the same token.

Describe the solution you'd like A simple Python script or YAML/JSON file which I can use to access environment variables. Lookup lists could be displayed here, too (if they are not far too large)

Describe alternatives you've considered See above - writing the tokens into each specific function

Additional context -

JWittmeyer commented 1 year ago

Possible solution (since yml/json files might have some issues) create table "project_constants" with id, project_id, name, python_access, type, data

The data from the table should be prepared for the exec env on demand similar to lookup lists.

//possible addition: options column