#Nukesforbreakfast

1 messages · Page 1 of 1 (latest)

hasty gladeBOT
chilly loom
#

Yep certainly possible

#

And hello 🙂

#

We don't really have docs on this as it is the same as setting any other environment variables

clear pollen
#

are there some generic env var docs I missed?

#

I was looking at the README in the stripe-python github repo.

chilly loom
#

Nope no generic Stripe env var doc

#

I'm not very familiar with Python but I assume there are lots of docs from googling how to set environment variables with python?

clear pollen
#

Yes I know how to set environment variables. Sorry my question wasn't clear: I was wondering if the Stripe Python SDK natively has an environment variable it will look for to set the stripe.api_key. So I could just set STRIPE_API_KEY in CI/CD and any instantiation of the stripe SDKs would use that automatically.

chilly loom
#

Ooh

#

Okay thanks for clarifying

clear pollen
#

similar to how a lot of the AWS SDKs have a series of environment variables they check automatically to see if they can pull credentials.

chilly loom
#

I don't believe so, but let me double check with a colleague more familiar with our Python SDK

chilly loom
#

Yep confirmed this doesn't exist and you should just initialize using the key/value you set

clear pollen
#

ok thanks!