Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str orelse Assign NameStore NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore ListComp TupleLoad Str Call NameLoad NameLoad Str comprehension NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Str AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str IfExp CompareGt SubscriptLoad NameLoad Index Str Num Str Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str IfExp CompareGt SubscriptLoad NameLoad Index Str Num Str Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareGt BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore DictComp Call NameLoad NameLoad Dict Str Str NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad AttributeLoad NameLoad attr IfExp NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list decorator_list
N/A N/A 
  Mail plugin
  -----------

  :copyright (c) 2014 Xavier Bruhiere
  :license: Apache 2.0, see LICENSE for more details.
 N/A os N/A time N/A codecs N/A requests N/A jinja2 N/A dna.logging N/A intuition.data.remote remote N/A insights.analysis analysis N/A log N/A N/A N/A dna logging logger __name__ human_sid N/A N/A symbol N/A N/A N/A sid N/A N/A remote lookup_symbol symbol N/A N/A len sid N/A N/A human_fmt N/A N/A {} {} - {} ({}) format N/A N/A sid N/A 0 N/A name N/A N/A sid N/A 0 N/A typeDisp N/A N/A sid N/A 0 N/A exchDisp N/A N/A sid N/A 0 N/A symbol N/A N/A human_fmt symbol N/A human_fmt N/A Mailgun N/A object N/A N/A 
    Send emails through mailgun api
     N/A _api_url https://api.mailgun.net/v2/{}/messages N/A _api_key __init__ N/A N/A self friendly_name N/A N/A N/A N/A self _api_key N/A N/A N/A os environ get MAILGUN_API_KEY N/A domain N/A N/A N/A os environ get MAILGUN_DOMAIN N/A N/A self from_email N/A N/A {} <me@{}> format friendly_name domain N/A N/A self _api_url N/A N/A N/A self _api_url format domain N/A send N/A N/A self targets subject body attachments N/A None N/A N/A attachments N/A attachments N/A N/A attachments N/A N/A attachment N/A open filename rb N/A filename attachments N/A N/A isinstance targets str N/A N/A targets N/A targets N/A payload N/A from to subject html N/A self from_email targets subject body N/A feedback N/A N/A requests post N/A self _api_url files attachments auth N/A api N/A self _api_key data payload N/A feedback N/A N/A Report N/A Mailgun N/A N/A  Sent mail reports about the situation  N/A _asset_dir N/A N/A N/A os path expanduser ~/.intuition/assets/ N/A report_name report.rnw N/A mail_name mail-template.html __init__ N/A N/A self targets N/A N/A N/A N/A N/A Mailgun __init__ self intuition.io N/A N/A self targets targets N/A N/A self _last_send N/A N/A time time N/A N/A self generator N/A N/A analysis Stocks N/A N/A N/A log info Mail report ready recipients targets N/A N/A self template_env N/A N/A jinja2 Environment loader N/A N/A jinja2 FileSystemLoader N/A self _asset_dir N/A _render_report_template N/A N/A self summary orderbook metrics benchmark N/A GSPC N/A N/A stocks N/A N/A N/A sid infos N/A N/A orderbook iteritems N/A N/A N/A N/A stocks append N/A action quantity name symbol N/A N/A N/A infos N/A value 0 Buy Sell N/A abs N/A infos N/A value sid N/A N/A N/A infos N/A symbol upper N/A template N/A N/A N/A self template_env get_template N/A N/A self report_name .j2 N/A N/A N/A template render summary summary start_date 2013/11/01 benchmark benchmark orderbook stocks metrics metrics N/A _render_email_template N/A N/A self identity orderbook N/A N/A N/A completion N/A N/A N/A sid infos N/A N/A orderbook iteritems N/A N/A N/A N/A completion append N/A action quantity equity N/A N/A N/A infos N/A value 0 Buy Sell N/A abs N/A infos N/A value sid N/A template N/A N/A N/A self template_env get_template N/A N/A self mail_name .j2 N/A N/A N/A template render strategy_name identity suggestions completion N/A is_allowed N/A N/A self N/A N/A N/A N/A N/A N/A N/A time time N/A self _last_send 30.0 N/A property send_briefing N/A N/A self __class__ manager identity orderbook metrics N/A N/A N/A N/A orderbook N/A self is_allowed N/A N/A N/A self _last_send N/A N/A time time N/A identity N/A N/A identity capitalize N/A orderbook N/A N/A human_sid sid N/A symbol value sid value N/A N/A sid value N/A N/A orderbook iteritems N/A summary N/A identity algorithm manager identity N/A __class__ __name__ N/A manager N/A N/A manager __class__ __name__ None N/A N/A N/A log info generating report template N/A report N/A N/A self _render_report_template summary orderbook metrics N/A fd N/A N/A codecs open N/A N/A self _asset_dir N/A self report_name w utf-8 N/A N/A N/A fd write report N/A N/A N/A fd close N/A N/A N/A N/A self generator process N/A feedback N/A N/A self send targets N/A self targets subject N/A N/A {} notification format identity body N/A N/A self _render_email_template identity orderbook attachments N/A assets/legal_notice.txt report.pdf N/A N/A N/A log debug N/A N/A feedback json N/A N/A N/A N/A self generator clean everything False N/A N/A