blob: 827012b8bf2cedba3e4aa1fd6367ed3ce261f4c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# vim: ts=4 sw=4 et ai:
"""
This library implements the tftp protocol, based on rfc 1350.
http://www.faqs.org/rfcs/rfc1350.html
At the moment it implements only a client class, but will include a server,
with support for variable block sizes.
As a client of tftpy, this is the only module that you should need to import
directly. The TftpClient and TftpServer classes can be reached through it.
"""
import sys
import pkg_resources
# Make sure that this is at least Python 3
required_version = (3, 0)
if sys.version_info < required_version:
raise ImportError("Requires at least Python 3.0")
from . import TftpContexts, TftpPacketFactory, TftpPacketTypes, TftpStates
from . import __name__ as pkg_name
from .TftpClient import TftpClient
from .TftpServer import TftpServer
from .TftpShared import *
def _get_version():
try:
pkg_version = pkg_resources.get_distribution(pkg_name).version
except pkg_resources.DistributionNotFound:
pkg_version = None
return pkg_version
__version__ = _get_version()
|