Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier ImportFrom alias alias alias alias alias ClassDef bases body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body TryExcept body Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str attr handlers ExceptHandler type NameLoad body Raise Call NameLoad keyword Str Assign AttributeStore NameLoad attr BinOpSub NameLoad Call NameLoad Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Dict Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr CompareLt AttributeLoad NameLoad attr Num CompareGtE AttributeLoad NameLoad attr Num body Raise Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Str attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str orelse Assign NameStore Dict If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad keyword Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad keyword Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad keyword Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad If BoolOpOr CompareLt AttributeLoad NameLoad attr Num CompareGtE AttributeLoad NameLoad attr Num body Raise Call NameLoad keyword Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list decorator_list
N/A N/A 
This module provides a simple python wrapper over the RunAbove API
It handles requesting credential, signing queries...
 __future__ absolute_import N/A requests N/A hashlib N/A time N/A json N/A N/A urllib quote urllib_quote N/A N/A N/A ImportError N/A urllib.parse quote urllib_quote exception APIError ResourceNotFoundError BadParametersError ResourceAlreadyExistsError NetworkError WrapperApi N/A N/A N/A Simple wrapper class for RunAbove API. N/A base_url https://api.runabove.com/1.0 __init__ N/A N/A self application_key application_secret consumer_key N/A None N/A N/A Construct a new wrapper instance.

        :param application_key: your application key given by RunAbove
        on application registration
        :param application_secret: your application secret given by RunAbove
        on application registration
        :param consumer_key: the consumer key you want to use, if any,
        given after a credential request
         N/A N/A self application_key application_key N/A N/A self application_secret application_secret N/A N/A self consumer_key consumer_key N/A N/A self _time_delta None N/A time_delta N/A N/A self N/A N/A N/A Get the delta between this computer and RunAbove cluster. N/A N/A N/A self _time_delta None N/A N/A N/A N/A server_time N/A int N/A N/A N/A requests get N/A N/A self base_url /time text N/A N/A N/A ValueError N/A N/A N/A APIError msg Impossible to get time from RunAbove N/A N/A self _time_delta N/A server_time N/A int N/A N/A time time N/A N/A self _time_delta N/A request_credentials N/A N/A self access_rules redirect_url N/A None N/A N/A Request a Consumer Key to the API.

        That key will need to be validated with the link
        returned in the answer.

        :param access_rules: list of dictionaries listing the
         accesses your application will need. Each dictionary
         must contain two keys : method, of the four HTTP methods,
         and path, the path you will need access for,
         with * as a wildcard
        :param redirect_url: url where you want the user to be
         redirected to after he successfully validates
         the consumer key

        :raises APIError: Error send by api
         N/A target_url N/A N/A self base_url /auth/credential N/A params N/A accessRules access_rules N/A N/A params N/A redirection redirect_url N/A query_data N/A N/A json dumps params N/A q N/A N/A requests post target_url headers N/A X-Ra-Application Content-type N/A self application_key application/json data query_data N/A res N/A N/A json loads N/A q text N/A N/A N/A N/A q status_code 100 N/A N/A q status_code 300 N/A N/A N/A APIError N/A res N/A message N/A N/A self consumer_key N/A str N/A res N/A consumerKey N/A res N/A raw_call N/A N/A self method path content N/A None N/A N/A Sign a given query and return its result.

        :param method: the HTTP method of the request (get/post/put/delete)
        :param path: the url you want to request
        :param content: the object you want to send in your request
         (will be automatically serialized to JSON)

        :raises APIError: Error send by api
         N/A target_url N/A N/A self base_url path N/A now N/A str N/A N/A int N/A N/A time time N/A N/A self time_delta N/A body N/A content N/A N/A body N/A N/A json dumps content N/A N/A N/A self consumer_key N/A N/A N/A BadParametersError msg Cannot call API withoutConsumer Key N/A s1 N/A N/A hashlib sha1 N/A N/A N/A s1 update N/A N/A N/A N/A + join N/A N/A self application_secret N/A self consumer_key N/A N/A method upper target_url body now encode N/A sig N/A $1$ N/A N/A s1 hexdigest N/A query_headers N/A X-Ra-Application X-Ra-Timestamp X-Ra-Consumer X-Ra-Signature Content-type N/A self application_key now N/A self consumer_key sig application/json N/A req N/A getattr requests N/A N/A method lower N/A result N/A req target_url headers query_headers data body N/A N/A result text N/A N/A N/A N/A json_result N/A N/A json loads N/A result text N/A N/A N/A ValueError N/A N/A N/A APIError API response is not valid N/A N/A json_result N/A N/A N/A N/A result status_code 404 N/A N/A N/A ResourceNotFoundError msg N/A N/A json_result get message N/A N/A N/A result status_code 400 N/A N/A N/A BadParametersError msg N/A N/A json_result get message N/A N/A N/A result status_code 409 N/A N/A N/A ResourceAlreadyExistsError msg N/A N/A json_result get message N/A N/A N/A result status_code 0 N/A N/A N/A NetworkError N/A N/A N/A N/A result status_code 100 N/A N/A result status_code 300 N/A N/A N/A APIError msg N/A N/A json_result get message N/A json_result N/A encode_for_api N/A N/A self string_to_encode N/A N/A N/A Make sure the URI in correctly encoded.

        Runabove api need to encode "/" to %2F because slash
        are used into URI to distinct two ressources.

        :param string_to_encode: original string_to_encode
         N/A N/A N/A N/A urllib_quote string_to_encode replace / %2f N/A get N/A N/A self path content N/A None N/A N/A Helper method that wraps a GET call to raw_call.

        :param path: path ask inside api
        :param content: object content to send with this request

        :raises APIError: Error send by api
         N/A N/A N/A self raw_call get path content N/A put N/A N/A self path content N/A N/A N/A Helper method that wraps a PUT call to raw_call.

        :param path: path ask inside api
        :param content: object content to send with this request

        :raises APIError: Error send by api
         N/A N/A N/A self raw_call put path content N/A post N/A N/A self path content N/A N/A N/A Helper method that wraps a POST call to raw_call.

        :param path: path ask inside api
        :param content: object content to send with this request

        :raises APIError: Error send by api
         N/A N/A N/A self raw_call post path content N/A delete N/A N/A self path content N/A None N/A N/A Helper method that wraps a DELETE call to raw_call.

        :param path: path ask inside api
        :param content: object content to send with this request

        :raises APIError: Error send by api
         N/A N/A N/A self raw_call delete path content N/A N/A