3110 - Add some more module level docstrings.

This commit is contained in:
Marek Wolan
2025-03-13 15:07:32 +00:00
parent aca3ff76db
commit 7d37ddbb67
25 changed files with 25 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Observations for access control lists (ACLs) on routers and firewalls."""
from __future__ import annotations
from typing import Dict, List, Optional

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Address Resolution Protocol software."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""ARP software."""
from __future__ import annotations
from abc import abstractmethod

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Database simulation."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Database service."""
from ipaddress import IPv4Address
from typing import Any, Dict, List, Literal, Optional, Union
from uuid import uuid4

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Domain Name Service software."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""DNS Client."""
from ipaddress import IPv4Address
from typing import Dict, Optional, TYPE_CHECKING

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""DNS Server."""
from ipaddress import IPv4Address
from typing import Any, Dict, Optional

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""File Transfer Protocol Software."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""FTP Client."""
from ipaddress import IPv4Address
from typing import Dict, Optional

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""FTP Server."""
from typing import Any, Optional
from pydantic import Field

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""FTP Service base class."""
from abc import ABC
from ipaddress import IPv4Address
from typing import Dict, Optional

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Internet Control Message Protocol."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Internet Control Message Protocol."""
import secrets
from ipaddress import IPv4Address
from typing import Any, Dict, Optional, Tuple, Union

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""NTP software."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""NTP Client."""
from datetime import datetime
from ipaddress import IPv4Address
from typing import Dict, Optional

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""NTP Server."""
from datetime import datetime
from typing import Dict, Optional

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Command line interface on network nodes."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Command line interface on network nodes."""
from __future__ import annotations
from abc import abstractmethod

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""HTTP server."""

View File

@@ -1,4 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""HTTP server."""
from ipaddress import IPv4Address
from typing import Any, Dict, List, Optional
from urllib.parse import urlparse

View File

@@ -1 +1,2 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Special validation for use with pydantic."""

View File

@@ -1,5 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
# Define a custom IP protocol validator
"""Validation for internet protocols."""
from typing import Any
from pydantic import BeforeValidator, TypeAdapter, ValidationError

View File

@@ -1,5 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Validation for IPv4 addresses expressed as strings."""
from ipaddress import IPv4Address
from typing import Any, Final

View File

@@ -1,5 +1,5 @@
# © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
# Define a custom port validator
"""Custom port validation."""
from typing import Any
from pydantic import BeforeValidator, TypeAdapter, ValidationError