Package s3 :: Module s3query :: Class S3URLQueryParser
[frames] | no frames]

Class S3URLQueryParser

source code

object --+
         |
        S3URLQueryParser

New-style URL Filter Parser

Instance Methods
 
__init__(self)
Constructor
source code
 
parse(self, expression)
Parse a string expression and convert it into a dict of filters (S3ResourceQueries).
source code
 
convert_expression(self, expression)
Convert a parsed filter expression into a dict of filters (S3ResourceQueries)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Constructor

Overrides: object.__init__

parse(self, expression)

source code 

Parse a string expression and convert it into a dict of filters (S3ResourceQueries).

Parameters:
  • expression - the filter expression as string
Returns:
a dict of {component_alias: filter_query}

convert_expression(self, expression)

source code 

Convert a parsed filter expression into a dict of filters (S3ResourceQueries)

Parameters:
  • expression - the parsed filter expression (ParseResults)
Returns:
a dict of {component_alias: filter_query}