Pinned Loading
-
setup.py file for Python Package usi...
setup.py file for Python Package using console_script in entry_points to access manage.py 1"""2Simplest setup.py for demoapp3Running Django manage.py as entrypoint in python package4"""5# -*- coding:utf-8 -* -
get_secret function with google secr...
get_secret function with google secretmanager 1def get_secret(secretname):
2"""
3Query google secretmanager api and return decode content
4"""
5full_name = 'projects/{0}/secrets/{1}/versions/1'.format(PROJECT_ID, -
get_version function using pkg_resou...
get_version function using pkg_resources 1def get_version():
2"""3Return mysamplepackage package version4Requirements: import pkg_resources5In your setup.py package set setup(name='mysamplepackage', -
get_version function using importlib
get_version function using importlib 1def get_version():
2"""3Return mysamplepackage package version4Requirements: from importlib_metadata import distribution5In your setup.py package set setup(name='mysamplepackage', -
get_secret_and_write_to_file
get_secret_and_write_to_file 1def get_secret_and_write_to_file(secretname, filename):
2"""
3Runs get_secret and write result to filename
4"""
5dst_path = os.path.join(HERE, filename)
-
Init file inside demoapp with functi...
Init file inside demoapp with function manage 1"""2Init file with manage function3"""4# -*- coding:utf-8 -*5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.