Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== pydiscuss ==

pydiscuss is a pure-Python implementation of Project Athena forum protocol
called discuss. It aims to work well with the existing servers, although
as a clean-start implementation it may not handle several edge cases correctly.

=== Example code ===

import discuss

# Open connection to the server
cl = discuss.Client("charon.mit.edu")

# Pick our meeting
mtg = discuss.Meeting(cl, "/var/spool/discuss/vasilvv-test")

# Read the description
mtg.load_info()
print mtg.long_name

# Read all the transaction headers and print them
for trn in mtg.transactions():
    print "[%i] %s <%s (%s)>" % (trn.number, trn.subject, trn.signature, trn.author)

# Print the text of the last one
print "----- Text -----"
print mtg.get_transaction(mtg.last).get_text()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.