Tracert (version 0.0.1)
index
tracert.py

This package implements a traceroute tool faster than traceroute/tracert
executable but less accurate for response and without hostname resolution.

 
Classes
       
builtins.object
Ping

 
class Ping(builtins.object)
    Ping(ip: str, ttl: int, time: float) -> None
 
Ping(ip: str, ttl: int, time: float)
 
  Methods defined here:
__eq__(self, other)
Return self==value.
__init__(self, ip: str, ttl: int, time: float) -> None
Initialize self.  See help(type(self)) for accurate signature.
__repr__(self)
Return repr(self).
__str__(self)
Return str(self).

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__annotations__ = {'ip': <class 'str'>, 'time': <class 'float'>, 'ttl': <class 'int'>}
__dataclass_fields__ = {'ip': Field(name='ip',type=<class 'str'>,default=<data...appingproxy({}),kw_only=False,_field_type=_FIELD), 'time': Field(name='time',type=<class 'float'>,default=<...appingproxy({}),kw_only=False,_field_type=_FIELD), 'ttl': Field(name='ttl',type=<class 'int'>,default=<dat...appingproxy({}),kw_only=False,_field_type=_FIELD)}
__dataclass_params__ = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)
__hash__ = None
__match_args__ = ('ip', 'ttl', 'time')

 
Functions
       
tracert(destination: str, version: int = None, max_steps: int = 30, timeout: float = 1, retry: int = 3) -> Iterable[Tracert.Ping]
This generator sends traceroute packets
and yields Ping object built from the response.
 
version: should be 4 for IPv4 packets or 6 for IPv6 packets.

 
Data
        __all__ = ['tracert', 'Ping']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nTracert Copyright (C) 2023 Maurice Lambert\nTh...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements a traceroute tool faste...acert\nexecutable but less accurate for response.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/Tracert'

 
Author
        Maurice Lambert