TIP: Click on subject to list as thread! ANSI
echo: fido_util
to: All
from: Lars Kellogg-Stedman
date: 2011-02-27 21:14:42
subject: Python-ftn: FTN API and command line tools

============================================================
Pytnon-FTN: API and tools for Fidonet and other FTN networks
============================================================

Python-FTN is a set of Python modules that provide the following
capabilities:

- Generating FTN messages.
- Editing message data.
- Displaying and querying message data.
- Packing/unpacking FTN mail packets.
- Editing packet data.
- Displaying and querying packet data.
- Parsing and querying FTN nodelists.
- Making routing decsisions from nodelist data.

The python-ftn API makes it easy to develop new tools that interact
with FTN format data.

Python-ftn supports FTS-0001 "on disk" and "packed"
messages (and can
convert between them), and supports both FTS-0001 ("type 2") and
FSC-0048 ("type 2+") packets.

Availability
============

Python-ftn is available from:

- http://projects.oddbit.com/python-ftn/

Online documentation is available from:

- https://github.com/larsks/python-ftn/wiki

Examples
========

Change the destination of an outbound packet::

  $ ftn-editpkt --dest 1:322/761 00000001.pkt

Change the sender name in a message::

  $ ftn-editmsg --from 'A Different Person' 1.msg

Create and pack a message for delivery::

  $ echo "My body text" |
  ftn-makemsg \
    --from 'Lars Kellogg-Stedman' \
  --to 'Someone Else' \
  --orig 1:322/761 \
  --dest 99:99/99 \
  --subject "This is a test" \
  --flag killSent --flag private |
  ftn-pack -d 1:322/759 --out 014202f7.out

Examine the generated packet::

  $ ftn-scanpkt -m 014202f7.out
  ======================================================================
  014202f7.out:  1:322/761 -> 1:322/759 {at} 2011-02-26 23:31:59
  ======================================================================

  [000]
  From: Lars Kellogg-Stedman {at} 322/761
  To: Someone Else {at} 99/99
  Date: 26 Feb 11  23:31:59
  Subject: This is a test
  Flags: KILLSENT PRIVATE

Author
======

Python-ftn was written by Lars Kellogg-Stedman.

- Fidonet: Lars {at} 1:322/761
- Internet: lars{at}oddbit.com
- Twitter: the_odd_bit


--- slrn/0.9.9p1 (Darwin)
* Origin: The Odd Bit 1:322/761
* Origin: Fidonet Via Newsreader - http://www.easternstar.info (1:123/789.0)
SEEN-BY: 10/1 11/200 14/250 400 19/75 34/999 123/500 128/2 187 140/1 222/2
SEEN-BY: 226/0 230/150 249/303 250/1 306 261/20 38 100 1381 1404 1410 1418
SEEN-BY: 266/1413 280/1027 282/1055 320/119 393/68 396/45 633/260 267 712/848
SEEN-BY: 800/432 801/161 189 5030/1256
@PATH: 123/789 500 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.