Closed espin086 closed 8 months ago
Hi! I would like to work on this issue
@marcolab yes please get started on this, appreciate your help, please make sure to look at the contribution guide for how to make this update
@espin086 I've looked into it and it seems like it is not possible to add user input to setup.py
. Perhaps an alternative solution could be to have an additional pip installation option (as shown here), but it might be overkill
@marcolab - can you try the input() function built into python?
Here is what I was thinking:
import os
# Check if the environmental variable is present
if 'ENV_VARIABLE_NAME' in os.environ:
env_variable = os.environ['ENV_VARIABLE_NAME']
else:
# If the environmental variable is not present, prompt the user for input
env_variable = input("Enter the value for ENV_VARIABLE_NAME: ")
@espin086 maybe we can get api key input using cli?
Need to do this so setup.py can also set up the API key during installation as another way to setup the project:
To permanently save the API key from
setup.py
to the user's environment, you can make use of environment variables. Here's how you can do it:setup.py
file in a text editor.