Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.44 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.44 KB

Johnny Five

A friendly bot.

This helper library currently contains classes for interacting with Confluence pages (creating, editing, attaching, etc.), interacting with Gmail (send and receive), posting to Slack (write only).

johnnyfive

JohnnyFive API

import johnnyfive

# Confluence API
page = johnnyfive.ConfluencePage(space, page_title, instance=None, use_oauth=False)

# Gmail API
message = johnnyfive.GmailMessage(toaddr, subject, message_text, fromname=None fromaddr=None, interactive=False)
message_list = johnnyfive.GetMessages(label=None, after=None, before=None, interactive=False)

# Slack API
slack_channel = johnnyfive.SlackChannel(channel_name)

# Utility API
['PermissionWarning', 'print_dict()', 'safe_service_connect()']

Requirements

Installation

Installable either as a standalone library:

  • In the source directory:

    pip install -e .

    and look for any compilation/installation failures for the dependencies.

Or as a dependancy for other software:

  • In your package's setup.cfg file, add:

    install_requires = JohnnyFive @ git+https://github.com/LowellObservatory/JohnnyFive