This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Adium Shell (adium-sh) is a command-line tool and Python wrapper for Adium.

Description

adium-sh provides shell utilities and Python wrapper based on AppleScript support of Adium.

Feature

The current features are:

  • Set default service and account
  • Send messages using exact account name or alias
  • Receive and reply to messages using patterns or external API (SimSimi currently supported)
  • React to events

Installation

$ pip install adium-sh

Usage

You must specify the account and service to associate with the current use, either as command-line arguments or in the config file. When specifying them as arguments, you must put them before the sub-commands.

Send messages

Send a message using account name:

$ adiumsh -s GTalk -t yourname@gmail send -b buddy@gmail.com
Hello, there
<<EOF

Send a message using alias:

$ adiumsh -s GTalk -t yourname@gmail.com send -a 'John Smith'
Hello, there
<<EOF

Set default configuration file at ~/.adiumsh:

[default]
service = GTalk
account = yourname@gmail.com

Then you can send messages without specifying -s/--service and -t/--account:

$ adiumsh send -a 'John Smith'

You can also pass as argument your message:

$ adiumsh send -a 'John Smith' -m 'Hello, there'

Receive messages

You must specify a chat method to receive messages. By default, adium-sh uses “Simple Chat”, which basically replies to received messages according to the patterns you set. You must set the patterns in the config file, possibly like the following settings:

[default]
service = GTalk
account = yourname@gmail.com

[chat-default]
type = wildcard
patterns =
    *hello*: hi
    *what*: sorry
    *: I'm not available now

Then, you can invoke the “receive” sub-command with the -c/--chat arguments:

$ adiumsh receive -c default

The patterns is a list of string pairs where each pair is separated by a colon. The string to the left of the colon is the pattern against which the received text will be matched, and the right one is the corresponding reply text. There is also a “type” option in the chat section, which defaults to “wildcard” that uses globbing pattern matching; another value to it is “regex”, which uses regular expression.

You can also use “SimSimi Chat” which hits the SimSimi API with the messages received. You have to set the API key in the config file and the key type (“trial”, which is default, or “paid”):

[chat-simi]
simi-key = some-really-long-key
simi-key-type = trial

Then, invoke “receive” with this chat from command line:

$ adiumsh receive -c simi

Set the default chat in the default settings:

[default]
service = GTalk
account = yourname@gmail.com
chat = default

[chat-default]
patterns =
    *hello*: hi
    *what*: sorry
    *: I'm not available now

[chat-another]
patterns =
    *: not here

Now you can also switch between chats from the command line other than the default:

$ adiumsh receive -c another

TODO

  • Complete Python wrapper API to AppleScript support
  • Exhaustive commands based on the wrapper
Release History

Release History

0.2.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
adium-sh-0.2.4.tar.gz (11.4 kB) Copy SHA256 Checksum SHA256 Source Sep 20, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting