Minor comment and documentation tweaks. Add the python directory which contains my first cut at a libfko Python wrapper module.

git-svn-id: file:///home/mbr/svn/fwknop/trunk@302 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Damien Stuart
2010-11-26 15:51:00 +00:00
parent 04ebf6c2ad
commit 00bc99a966
9 changed files with 1514 additions and 11 deletions

19
python/README Normal file
View File

@@ -0,0 +1,19 @@
fko python module version 1.0
==============================
This module is essentially a Python wrapper for the Firewall Knock
Operator library, "libfko". See the "libfko" documentation for
additional information on the functionality provided by "libfko"
and usage overview.
Before attempting to build this module, libfko needs to be installed on
the system.
To build and install the module:
* Build with "python setup.py build"
* Install with "python setup.py install"
Note: This version is just a plain wrapper around libfko. I do plan to
make a more complete OO Python module that wraps this one. --DSS

1444
python/fkomodule.c Normal file

File diff suppressed because it is too large Load Diff

33
python/setup.py Normal file
View File

@@ -0,0 +1,33 @@
#
##############################################################################
#
# File: setup.py
#
# Author: Damien S. Stuart <dstuart@dstuart.org>
#
# Purpose: Driver script for the fko module.
#
##############################################################################
#
from distutils.core import setup, Extension
module1 = Extension(
'fko',
define_macros = [('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
libraries = ['fko'],
sources = ['fkomodule.c']
)
setup (
name = 'fko',
version = '1.0',
description = 'Wrapper for Fwknop library (libfko)',
author = 'Damien S. Stuart',
author_email = 'dstuart@dstuart.org',
license = 'GPL',
long_description = '''
Python module that wraps the fwknop library to provide the ability to
generate, decode, parse, and process SPA formatted messages.
''',
ext_modules = [module1]
)