How to distribute a script using gdata-python-client?

I have written several scripts that use the gdata API, and all of them (obviously) have their own API key and client ID in text form. How can I distribute them?

+3
source share
2 answers

Move the variables to a separate module and replace your values ​​with dummy values. Make sure you hook on an invalid key and provide instructions on how to get the key and where to put it. In your code, you can simply import values ​​from this module.

import gdata_api_key
print gdata_api_key.key_value
+3
source

, , , , ().

, , , script , , , . , , ( ) .

0

Source: https://habr.com/ru/post/1702726/


All Articles