Package twisted :: Package words :: Module tendril

[show private | hide private]
[frames | no frames]

## Module twisted.words.tendril

Tendril between Words and IRC servers.

A Tendril, attached to a Words service, signs on as a user to an IRC server. It can then relay traffic for one or more channels/groups between the two servers. Anything it hears on a Words group it will repeat as a user in an IRC channel; anyone it hears on IRC will appear to be logged in to the Words service and speaking in a group there.

# How to Start a Tendril

In manhole:

     from twisted.internet import reactor as R
     from twisted.internet.app import theApplication as A
     from twisted.words import tendril as T

     w = A.getServiceNamed('twisted.words')
     f = T.TendrilFactory(w)
     # Maybe do some customization of f here, i.e.
     ## f.nickname = 'PartyLink'
     ## f.groupList = ['this', 'that', 'other']
     R.connectTCP(irchost, 6667, f)

Stability: No more stable than `words<twisted.words.service>`.

Future plans: Use "`Policy<twisted.words.service.Policy>`" to get Perspectives.

Author: Kevin Turner<acapnotic@twistedmatrix.com>

Classes
`ProxiedParticipant` | I'm the client of a participant who is connected through Tendril.
`TendrilFactory` | I build Tendril clients for a words service.
`TendrilIRC` | I connect to the IRC server and broker traffic.
`TendrilWords` |

Function Summary
| ``channelToGroupName`(channelName)` Map an IRC channel name to a Words group name.
| `groupToChannelName(groupName)`

Variable Summary
`int` | `False`
`int` | `True`
`int` | `_LOGALL`

Function Details

### channelToGroupName(channelName)

Map an IRC channel name to a Words group name.

IRC is case-insensitive, words is not. Arbitrtarily decree that all IRC channels should be lowercase.

Warning: This prevents me from relaying text from IRC to a mixed-case Words group. That is, any words group I'm in should have an all-lowercase name.

Variable Details

### False

  Type:
    `int`
  Value:

        0

### True

  Type:
    `int`
  Value:

        1

### _LOGALL

  Type:
    `int`
  Value:

        0

Generated by Epydoc 1.1 on Sat Feb 15 21:19:34 2003 | http://epydoc.sf.net