Skip to content
View juandelafuente's full-sized avatar

Block or report juandelafuente

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. setup.py file for Python Package usi... setup.py file for Python Package using console_script in entry_points to access manage.py
    1
    """
    2
    Simplest setup.py for demoapp
    3
    Running Django manage.py as entrypoint in python package
    4
    """
    5
    # -*- coding:utf-8 -*
  2. get_secret function with google secr... get_secret function with google secretmanager
    1
    def get_secret(secretname):
    2
        """
    3
        Query google secretmanager api and return decode content
    4
        """
    5
        full_name = 'projects/{0}/secrets/{1}/versions/1'.format(PROJECT_ID,
  3. get_version function using pkg_resou... get_version function using pkg_resources
    1
    def get_version():
    2
        """
    3
        Return mysamplepackage package version
    4
        Requirements: import pkg_resources
    5
                      In your setup.py package set setup(name='mysamplepackage',
  4. get_version function using importlib get_version function using importlib
    1
    def get_version():
    2
        """
    3
        Return mysamplepackage package version
    4
        Requirements: from importlib_metadata import distribution
    5
                      In your setup.py package set setup(name='mysamplepackage',
  5. get_secret_and_write_to_file get_secret_and_write_to_file
    1
    def get_secret_and_write_to_file(secretname, filename):
    2
        """
    3
        Runs get_secret and write result to filename
    4
        """
    5
        dst_path = os.path.join(HERE, filename)
  6. Init file inside demoapp with functi... Init file inside demoapp with function manage
    1
    """
    2
    Init file with manage function
    3
    """
    4
    # -*- coding:utf-8 -*
    5