original_docstring: Parsuje PG url i pripremi argumente za adbapi.ConnectionPool()
docstring: Parsuje PG url i pripremi argumente za adbapi.ConnectionPool()
docstring_tokens: Parsuje PG url i pripremi argumente za adbapi . ConnectionPool ()
code: def parse_pg_url(pg_url):
          """Parsuje PG url i pripremi argumente za adbapi.ConnectionPool()"""
  
          params = dj_database_url.parse(pg_url)
  
          conn_kwargs = {'host': params['HOST'],
                         'user': params['USER'],
                         'password': params['PASSWORD'],
                         'dbname': params['NAME'],
                         'port': params['PORT']}
  
          # Remove items with empty values
          conn_kwargs = dict((k, v) for k, v in conn_kwargs.items() if v)
  
          return conn_kwargs
code_tokens: def parse_pg_url ( pg_url ) : params = dj_database_url . parse ( pg_url ) conn_kwargs = { 'host' : params [ 'HOST' ] , 'user' : params [ 'USER' ] , 'password' : params [ 'PASSWORD' ] , 'dbname' : params [ 'NAME' ] , 'port' : params [ 'PORT' ] } conn_kwargs = dict ( ( k , v ) for k , v in conn_kwargs . items ( ) if v ) return conn_kwargs
short_docstring: Parsuje PG url i pripremi argumente za adbapi.ConnectionPool()
short_docstring_tokens: Parsuje PG url i pripremi argumente za adbapi . ConnectionPool ()
comment: """Parsuje PG url i pripremi argumente za adbapi.ConnectionPool()"""$SEP$# Remove items with empty values