
- I2PSocketServer.py - I2PBaseHTTPServer.py - I2PSimpleHTTPServer.py - I2PCGIHTTPServer.py difference being that these new modules are not hacks of the original python server modules, rather, they subclass the python server modules; this overcomes the Fear and Loathing expressed by some regarding multiplicity of licenses, and apart from that, is a better idea anyway. Only danger being if the modules in later Python releases change substantially, these modules could get broken.
22 lines
413 B
Python
22 lines
413 B
Python
"""
|
|
i2p -- I2P Python interface
|
|
"""
|
|
|
|
__all__ = ['Error', 'RouterError', 'sam', 'eep', 'router',
|
|
'I2PSocketServer', 'I2PBaseHTTPServer',
|
|
'I2PSimpleHTTPServer', 'I2PCGIHTTPServer',
|
|
]
|
|
|
|
class Error(Exception):
|
|
"""Base class for all I2P errors."""
|
|
|
|
class RouterError(Error):
|
|
"""Could not connect to router."""
|
|
|
|
import sam
|
|
import eep
|
|
import router
|
|
|
|
# Internal use only
|
|
#import samclasses as _samclasses
|