I wish to provide multiple DNS drivers for pyspf.
There are 3 options for providing them:
1) a single file (spf.py) will all drivers. A default driver is selected
on first use, unless user selects one first. This is ScottKs preferred
choice.
2) a package named spf:
spf/
pyspf.py
pydns.py
dnspython.py
pyip6.py
This is the preferred choice of com.lang.python. You lose the ability
to run the spf.py script as a command line query. They recommend
using spfquery.py or equivalent instead. Disclaimer, they are
python experts but don't use pyspf.
3) A module named spf and a package named SPF:
spf.py
SPF/
pydns.py
dnspython.py
pyip6.py
This preserves the use of spf.py as a script, and provides separate
files for drivers, making additional drivers as easy to add as 2).
Petr of the ppolicyd project prefers 2) or 3). He says a driver for
'adns' would be nice. ScottK mentions 'twisted' as another python
dns package. (When will the standard library include DNS?)
I have committed option 3 to CVS as a compromise between ScottK and 2).
ScottK is unhappy at having to copy a file and a directory, instead of
just a file. (The drivers will change rarely, and mostly he just needs
to copy a file.)
Comments?
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?list_id=1007
There are 3 options for providing them:
1) a single file (spf.py) will all drivers. A default driver is selected
on first use, unless user selects one first. This is ScottKs preferred
choice.
2) a package named spf:
spf/
pyspf.py
pydns.py
dnspython.py
pyip6.py
This is the preferred choice of com.lang.python. You lose the ability
to run the spf.py script as a command line query. They recommend
using spfquery.py or equivalent instead. Disclaimer, they are
python experts but don't use pyspf.
3) A module named spf and a package named SPF:
spf.py
SPF/
pydns.py
dnspython.py
pyip6.py
This preserves the use of spf.py as a script, and provides separate
files for drivers, making additional drivers as easy to add as 2).
Petr of the ppolicyd project prefers 2) or 3). He says a driver for
'adns' would be nice. ScottK mentions 'twisted' as another python
dns package. (When will the standard library include DNS?)
I have committed option 3 to CVS as a compromise between ScottK and 2).
ScottK is unhappy at having to copy a file and a directory, instead of
just a file. (The drivers will change rarely, and mostly he just needs
to copy a file.)
Comments?
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?list_id=1007