tigrcorn-quic-cc 0.3.18.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tigrcorn_quic_cc/__init__.py +60 -0
- tigrcorn_quic_cc/api.py +54 -0
- tigrcorn_quic_cc/discovery.py +59 -0
- tigrcorn_quic_cc/errors.py +21 -0
- tigrcorn_quic_cc/models.py +110 -0
- tigrcorn_quic_cc/py.typed +1 -0
- tigrcorn_quic_cc/testing.py +37 -0
- tigrcorn_quic_cc/validation.py +49 -0
- tigrcorn_quic_cc-0.3.18.dev3.dist-info/METADATA +269 -0
- tigrcorn_quic_cc-0.3.18.dev3.dist-info/RECORD +13 -0
- tigrcorn_quic_cc-0.3.18.dev3.dist-info/WHEEL +5 -0
- tigrcorn_quic_cc-0.3.18.dev3.dist-info/licenses/LICENSE +163 -0
- tigrcorn_quic_cc-0.3.18.dev3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from .api import Clock, CongestionController, CongestionControllerFactory
|
|
2
|
+
from .discovery import ProviderRegistry
|
|
3
|
+
from .errors import (
|
|
4
|
+
CongestionControlError,
|
|
5
|
+
InvalidControllerOutput,
|
|
6
|
+
ProviderCompatibilityError,
|
|
7
|
+
ProviderConfigurationError,
|
|
8
|
+
ProviderDiscoveryError,
|
|
9
|
+
)
|
|
10
|
+
from .models import (
|
|
11
|
+
API_VERSION,
|
|
12
|
+
ENTRY_POINT_GROUP,
|
|
13
|
+
AckReceived,
|
|
14
|
+
ControllerContext,
|
|
15
|
+
ControllerSnapshot,
|
|
16
|
+
EcnFeedback,
|
|
17
|
+
MtuUpdated,
|
|
18
|
+
PacketInfo,
|
|
19
|
+
PacketSent,
|
|
20
|
+
PacketsLost,
|
|
21
|
+
PersistentCongestion,
|
|
22
|
+
ProviderMetadata,
|
|
23
|
+
SendLimits,
|
|
24
|
+
)
|
|
25
|
+
from .testing import DeterministicClock, collect_send_limits
|
|
26
|
+
from .validation import (
|
|
27
|
+
validate_factory,
|
|
28
|
+
validate_provider_metadata,
|
|
29
|
+
validate_send_limits,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"API_VERSION",
|
|
34
|
+
"ENTRY_POINT_GROUP",
|
|
35
|
+
"AckReceived",
|
|
36
|
+
"Clock",
|
|
37
|
+
"CongestionControlError",
|
|
38
|
+
"CongestionController",
|
|
39
|
+
"CongestionControllerFactory",
|
|
40
|
+
"ControllerContext",
|
|
41
|
+
"ControllerSnapshot",
|
|
42
|
+
"DeterministicClock",
|
|
43
|
+
"EcnFeedback",
|
|
44
|
+
"InvalidControllerOutput",
|
|
45
|
+
"MtuUpdated",
|
|
46
|
+
"PacketInfo",
|
|
47
|
+
"PacketSent",
|
|
48
|
+
"PacketsLost",
|
|
49
|
+
"PersistentCongestion",
|
|
50
|
+
"ProviderCompatibilityError",
|
|
51
|
+
"ProviderConfigurationError",
|
|
52
|
+
"ProviderDiscoveryError",
|
|
53
|
+
"ProviderMetadata",
|
|
54
|
+
"ProviderRegistry",
|
|
55
|
+
"SendLimits",
|
|
56
|
+
"collect_send_limits",
|
|
57
|
+
"validate_factory",
|
|
58
|
+
"validate_provider_metadata",
|
|
59
|
+
"validate_send_limits",
|
|
60
|
+
]
|
tigrcorn_quic_cc/api.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable, Mapping
|
|
4
|
+
from typing import Protocol, runtime_checkable
|
|
5
|
+
|
|
6
|
+
from .models import (
|
|
7
|
+
AckReceived,
|
|
8
|
+
ControllerContext,
|
|
9
|
+
ControllerSnapshot,
|
|
10
|
+
EcnFeedback,
|
|
11
|
+
MtuUpdated,
|
|
12
|
+
PacketSent,
|
|
13
|
+
PacketsLost,
|
|
14
|
+
PersistentCongestion,
|
|
15
|
+
ProviderMetadata,
|
|
16
|
+
SendLimits,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
Clock = Callable[[], float]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@runtime_checkable
|
|
23
|
+
class CongestionController(Protocol):
|
|
24
|
+
def on_packet_sent(self, event: PacketSent) -> None: ...
|
|
25
|
+
|
|
26
|
+
def on_ack_received(self, event: AckReceived) -> None: ...
|
|
27
|
+
|
|
28
|
+
def on_packets_lost(self, event: PacketsLost) -> None: ...
|
|
29
|
+
|
|
30
|
+
def on_persistent_congestion(self, event: PersistentCongestion) -> None: ...
|
|
31
|
+
|
|
32
|
+
def on_ecn_feedback(self, event: EcnFeedback) -> None: ...
|
|
33
|
+
|
|
34
|
+
def on_mtu_updated(self, event: MtuUpdated) -> None: ...
|
|
35
|
+
|
|
36
|
+
def send_limits(self, now: float) -> SendLimits: ...
|
|
37
|
+
|
|
38
|
+
def snapshot(self) -> ControllerSnapshot: ...
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@runtime_checkable
|
|
42
|
+
class CongestionControllerFactory(Protocol):
|
|
43
|
+
@property
|
|
44
|
+
def metadata(self) -> ProviderMetadata: ...
|
|
45
|
+
|
|
46
|
+
def validate_options(self, options: Mapping[str, object]) -> Mapping[str, object]: ...
|
|
47
|
+
|
|
48
|
+
def create(
|
|
49
|
+
self,
|
|
50
|
+
context: ControllerContext,
|
|
51
|
+
options: Mapping[str, object],
|
|
52
|
+
*,
|
|
53
|
+
clock: Clock | None = None,
|
|
54
|
+
) -> CongestionController: ...
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Iterable, Mapping
|
|
4
|
+
from importlib import metadata as importlib_metadata
|
|
5
|
+
|
|
6
|
+
from .api import CongestionControllerFactory
|
|
7
|
+
from .errors import ProviderDiscoveryError
|
|
8
|
+
from .models import ENTRY_POINT_GROUP, ProviderMetadata
|
|
9
|
+
from .validation import validate_factory
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _entry_points() -> tuple[importlib_metadata.EntryPoint, ...]:
|
|
13
|
+
discovered = importlib_metadata.entry_points()
|
|
14
|
+
selected: Iterable[importlib_metadata.EntryPoint]
|
|
15
|
+
if hasattr(discovered, "select"):
|
|
16
|
+
selected = discovered.select(group=ENTRY_POINT_GROUP)
|
|
17
|
+
else: # pragma: no cover - Python/importlib compatibility
|
|
18
|
+
selected = discovered.get(ENTRY_POINT_GROUP, ())
|
|
19
|
+
return tuple(selected)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ProviderRegistry:
|
|
23
|
+
"""Discover providers without importing algorithms that were not selected."""
|
|
24
|
+
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
entry_points: Iterable[importlib_metadata.EntryPoint] | None = None,
|
|
29
|
+
builtins: Mapping[str, CongestionControllerFactory] | None = None,
|
|
30
|
+
) -> None:
|
|
31
|
+
self._entry_points = tuple(_entry_points() if entry_points is None else entry_points)
|
|
32
|
+
self._builtins = dict(builtins or {})
|
|
33
|
+
|
|
34
|
+
def provider_names(self) -> tuple[str, ...]:
|
|
35
|
+
return tuple(sorted(set(self._builtins) | {item.name for item in self._entry_points}))
|
|
36
|
+
|
|
37
|
+
def resolve(self, algorithm_id: str) -> CongestionControllerFactory:
|
|
38
|
+
builtin = self._builtins.get(algorithm_id)
|
|
39
|
+
candidates = [item for item in self._entry_points if item.name == algorithm_id]
|
|
40
|
+
if builtin is not None and candidates:
|
|
41
|
+
raise ProviderDiscoveryError(
|
|
42
|
+
f"duplicate congestion-controller provider id: {algorithm_id!r}"
|
|
43
|
+
)
|
|
44
|
+
if len(candidates) > 1:
|
|
45
|
+
raise ProviderDiscoveryError(
|
|
46
|
+
f"duplicate congestion-controller provider id: {algorithm_id!r}"
|
|
47
|
+
)
|
|
48
|
+
if builtin is not None:
|
|
49
|
+
return validate_factory(builtin)
|
|
50
|
+
if not candidates:
|
|
51
|
+
raise ProviderDiscoveryError(
|
|
52
|
+
f"congestion-controller provider is not installed: {algorithm_id!r}"
|
|
53
|
+
)
|
|
54
|
+
loaded = candidates[0].load()
|
|
55
|
+
factory = loaded() if isinstance(loaded, type) else loaded
|
|
56
|
+
return validate_factory(factory)
|
|
57
|
+
|
|
58
|
+
def metadata(self, algorithm_id: str) -> ProviderMetadata:
|
|
59
|
+
return self.resolve(algorithm_id).metadata
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CongestionControlError(RuntimeError):
|
|
5
|
+
"""Base error for the QUIC congestion-controller extension surface."""
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ProviderDiscoveryError(CongestionControlError):
|
|
9
|
+
"""Raised when a selected provider cannot be resolved unambiguously."""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ProviderCompatibilityError(CongestionControlError):
|
|
13
|
+
"""Raised when provider metadata is incompatible with this API major."""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ProviderConfigurationError(CongestionControlError):
|
|
17
|
+
"""Raised when provider options are invalid."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class InvalidControllerOutput(CongestionControlError):
|
|
21
|
+
"""Raised when a provider returns unsafe or malformed send limits."""
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
from types import MappingProxyType
|
|
6
|
+
|
|
7
|
+
API_VERSION = "1"
|
|
8
|
+
ENTRY_POINT_GROUP = "tigrcorn.quic_cc.v1"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(frozen=True, slots=True)
|
|
12
|
+
class PacketInfo:
|
|
13
|
+
packet_number: int
|
|
14
|
+
sent_time: float
|
|
15
|
+
bytes_sent: int
|
|
16
|
+
ack_eliciting: bool = True
|
|
17
|
+
packet_space: str = "application"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@dataclass(frozen=True, slots=True)
|
|
21
|
+
class ControllerContext:
|
|
22
|
+
max_datagram_size: int
|
|
23
|
+
initial_rtt: float = 0.333
|
|
24
|
+
max_ack_delay: float = 0.025
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass(frozen=True, slots=True)
|
|
28
|
+
class PacketSent:
|
|
29
|
+
now: float
|
|
30
|
+
packet: PacketInfo
|
|
31
|
+
bytes_in_flight: int
|
|
32
|
+
application_limited: bool = False
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(frozen=True, slots=True)
|
|
36
|
+
class AckReceived:
|
|
37
|
+
now: float
|
|
38
|
+
packets: tuple[PacketInfo, ...]
|
|
39
|
+
bytes_acked: int
|
|
40
|
+
bytes_in_flight: int
|
|
41
|
+
latest_rtt: float
|
|
42
|
+
min_rtt: float
|
|
43
|
+
smoothed_rtt: float
|
|
44
|
+
rttvar: float
|
|
45
|
+
application_limited: bool = False
|
|
46
|
+
delivery_rate: float | None = None
|
|
47
|
+
ecn_counts: tuple[int, int, int] | None = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@dataclass(frozen=True, slots=True)
|
|
51
|
+
class PacketsLost:
|
|
52
|
+
now: float
|
|
53
|
+
packets: tuple[PacketInfo, ...]
|
|
54
|
+
bytes_lost: int
|
|
55
|
+
bytes_in_flight: int
|
|
56
|
+
packet_space: str
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@dataclass(frozen=True, slots=True)
|
|
60
|
+
class PersistentCongestion:
|
|
61
|
+
now: float
|
|
62
|
+
packet_space: str
|
|
63
|
+
duration: float
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass(frozen=True, slots=True)
|
|
67
|
+
class EcnFeedback:
|
|
68
|
+
now: float
|
|
69
|
+
ect0: int
|
|
70
|
+
ect1: int
|
|
71
|
+
ce: int
|
|
72
|
+
bytes_in_flight: int
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@dataclass(frozen=True, slots=True)
|
|
76
|
+
class MtuUpdated:
|
|
77
|
+
now: float
|
|
78
|
+
max_datagram_size: int
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@dataclass(frozen=True, slots=True)
|
|
82
|
+
class SendLimits:
|
|
83
|
+
congestion_window: int
|
|
84
|
+
pacing_rate: float
|
|
85
|
+
send_quantum: int
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@dataclass(frozen=True, slots=True)
|
|
89
|
+
class ControllerSnapshot:
|
|
90
|
+
algorithm: str
|
|
91
|
+
mode: str
|
|
92
|
+
congestion_window: int
|
|
93
|
+
pacing_rate: float
|
|
94
|
+
send_quantum: int
|
|
95
|
+
measurements: Mapping[str, int | float | str | bool | None] = field(
|
|
96
|
+
default_factory=dict
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
def __post_init__(self) -> None:
|
|
100
|
+
object.__setattr__(self, "measurements", MappingProxyType(dict(self.measurements)))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@dataclass(frozen=True, slots=True)
|
|
104
|
+
class ProviderMetadata:
|
|
105
|
+
algorithm_id: str
|
|
106
|
+
display_name: str
|
|
107
|
+
distribution: str
|
|
108
|
+
distribution_version: str
|
|
109
|
+
api_version: str = API_VERSION
|
|
110
|
+
capabilities: tuple[str, ...] = ()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Iterable
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
|
|
6
|
+
from .api import CongestionController
|
|
7
|
+
from .models import SendLimits
|
|
8
|
+
from .validation import validate_send_limits
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(slots=True)
|
|
12
|
+
class DeterministicClock:
|
|
13
|
+
value: float = 0.0
|
|
14
|
+
|
|
15
|
+
def __call__(self) -> float:
|
|
16
|
+
return self.value
|
|
17
|
+
|
|
18
|
+
def advance(self, seconds: float) -> float:
|
|
19
|
+
if seconds < 0:
|
|
20
|
+
raise ValueError("clock cannot move backwards")
|
|
21
|
+
self.value += seconds
|
|
22
|
+
return self.value
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def collect_send_limits(
|
|
26
|
+
controller: CongestionController,
|
|
27
|
+
timestamps: Iterable[float],
|
|
28
|
+
*,
|
|
29
|
+
max_datagram_size: int,
|
|
30
|
+
) -> tuple[SendLimits, ...]:
|
|
31
|
+
return tuple(
|
|
32
|
+
validate_send_limits(
|
|
33
|
+
controller.send_limits(timestamp),
|
|
34
|
+
max_datagram_size=max_datagram_size,
|
|
35
|
+
)
|
|
36
|
+
for timestamp in timestamps
|
|
37
|
+
)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import math
|
|
4
|
+
import re
|
|
5
|
+
|
|
6
|
+
from .api import CongestionControllerFactory
|
|
7
|
+
from .errors import InvalidControllerOutput, ProviderCompatibilityError
|
|
8
|
+
from .models import API_VERSION, ProviderMetadata, SendLimits
|
|
9
|
+
|
|
10
|
+
_ALGORITHM_ID = re.compile(r"^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def validate_provider_metadata(metadata: ProviderMetadata) -> ProviderMetadata:
|
|
14
|
+
if not _ALGORITHM_ID.fullmatch(metadata.algorithm_id):
|
|
15
|
+
raise ProviderCompatibilityError(
|
|
16
|
+
f"invalid congestion-controller algorithm id: {metadata.algorithm_id!r}"
|
|
17
|
+
)
|
|
18
|
+
if metadata.api_version != API_VERSION:
|
|
19
|
+
raise ProviderCompatibilityError(
|
|
20
|
+
f"provider {metadata.algorithm_id!r} targets API {metadata.api_version!r}; "
|
|
21
|
+
f"expected {API_VERSION!r}"
|
|
22
|
+
)
|
|
23
|
+
if not metadata.distribution or not metadata.distribution_version:
|
|
24
|
+
raise ProviderCompatibilityError("provider distribution metadata is incomplete")
|
|
25
|
+
return metadata
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def validate_factory(factory: CongestionControllerFactory) -> CongestionControllerFactory:
|
|
29
|
+
validate_provider_metadata(factory.metadata)
|
|
30
|
+
return factory
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def validate_send_limits(
|
|
34
|
+
limits: SendLimits,
|
|
35
|
+
*,
|
|
36
|
+
max_datagram_size: int,
|
|
37
|
+
) -> SendLimits:
|
|
38
|
+
minimum_window = 2 * max_datagram_size
|
|
39
|
+
if isinstance(limits.congestion_window, bool) or limits.congestion_window < minimum_window:
|
|
40
|
+
raise InvalidControllerOutput(
|
|
41
|
+
f"congestion window must be at least {minimum_window} bytes"
|
|
42
|
+
)
|
|
43
|
+
if not math.isfinite(limits.pacing_rate) or limits.pacing_rate <= 0:
|
|
44
|
+
raise InvalidControllerOutput("pacing rate must be finite and positive")
|
|
45
|
+
if isinstance(limits.send_quantum, bool) or not 0 < limits.send_quantum <= limits.congestion_window:
|
|
46
|
+
raise InvalidControllerOutput(
|
|
47
|
+
"send quantum must be positive and no larger than congestion window"
|
|
48
|
+
)
|
|
49
|
+
return limits
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tigrcorn-quic-cc
|
|
3
|
+
Version: 0.3.18.dev3
|
|
4
|
+
Summary: Versioned congestion-controller contracts and provider discovery for Tigrcorn QUIC transports.
|
|
5
|
+
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
|
+
License: Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
15
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by the
|
|
18
|
+
copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all other
|
|
21
|
+
entities that control, are controlled by, or are under common control with
|
|
22
|
+
that entity. For the purposes of this definition, "control" means (i) the
|
|
23
|
+
power, direct or indirect, to cause the direction or management of such
|
|
24
|
+
entity, whether by contract or otherwise, or (ii) ownership of fifty percent
|
|
25
|
+
(50%) or more of the outstanding shares, or (iii) beneficial ownership of
|
|
26
|
+
such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
29
|
+
permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation source, and
|
|
33
|
+
configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical transformation
|
|
36
|
+
or translation of a Source form, including but not limited to compiled object
|
|
37
|
+
code, generated documentation, and conversions to other media types.
|
|
38
|
+
|
|
39
|
+
"Work" shall mean the work of authorship, whether in Source or Object form,
|
|
40
|
+
made available under the License, as indicated by a copyright notice that is
|
|
41
|
+
included in or attached to the work (an example is provided in the Appendix
|
|
42
|
+
below).
|
|
43
|
+
|
|
44
|
+
"Derivative Works" shall mean any work, whether in Source or Object form,
|
|
45
|
+
that is based on (or derived from) the Work and for which the editorial
|
|
46
|
+
revisions, annotations, elaborations, or other modifications represent, as a
|
|
47
|
+
whole, an original work of authorship. For the purposes of this License,
|
|
48
|
+
Derivative Works shall not include works that remain separable from, or
|
|
49
|
+
merely link (or bind by name) to the interfaces of, the Work and Derivative
|
|
50
|
+
Works thereof.
|
|
51
|
+
|
|
52
|
+
"Contribution" shall mean any work of authorship, including the original
|
|
53
|
+
version of the Work and any modifications or additions to that Work or
|
|
54
|
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
|
55
|
+
inclusion in the Work by the copyright owner or by an individual or Legal
|
|
56
|
+
Entity authorized to submit on behalf of the copyright owner. For the
|
|
57
|
+
purposes of this definition, "submitted" means any form of electronic,
|
|
58
|
+
verbal, or written communication sent to the Licensor or its representatives,
|
|
59
|
+
including but not limited to communication on electronic mailing lists,
|
|
60
|
+
source code control systems, and issue tracking systems that are managed by,
|
|
61
|
+
or on behalf of, the Licensor for the purpose of discussing and improving the
|
|
62
|
+
Work, but excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on
|
|
66
|
+
behalf of whom a Contribution has been received by Licensor and subsequently
|
|
67
|
+
incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
|
70
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
71
|
+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
|
|
72
|
+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
|
|
73
|
+
sublicense, and distribute the Work and such Derivative Works in Source or
|
|
74
|
+
Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
|
77
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
78
|
+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
|
|
79
|
+
section) patent license to make, have made, use, offer to sell, sell, import,
|
|
80
|
+
and otherwise transfer the Work, where such license applies only to those
|
|
81
|
+
patent claims licensable by such Contributor that are necessarily infringed by
|
|
82
|
+
their Contribution(s) alone or by combination of their Contribution(s) with
|
|
83
|
+
the Work to which such Contribution(s) was submitted. If You institute patent
|
|
84
|
+
litigation against any entity (including a cross-claim or counterclaim in a
|
|
85
|
+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
|
|
86
|
+
constitutes direct or contributory patent infringement, then any patent
|
|
87
|
+
licenses granted to You under this License for that Work shall terminate as of
|
|
88
|
+
the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
|
91
|
+
Derivative Works thereof in any medium, with or without modifications, and in
|
|
92
|
+
Source or Object form, provided that You meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
|
95
|
+
of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
98
|
+
You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
101
|
+
distribute, all copyright, patent, trademark, and attribution notices
|
|
102
|
+
from the Source form of the Work, excluding those notices that do not
|
|
103
|
+
pertain to any part of the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution,
|
|
106
|
+
then any Derivative Works that You distribute must include a readable copy
|
|
107
|
+
of the attribution notices contained within such NOTICE file, excluding
|
|
108
|
+
those notices that do not pertain to any part of the Derivative Works, in
|
|
109
|
+
at least one of the following places: within a NOTICE text file distributed
|
|
110
|
+
as part of the Derivative Works; within the Source form or documentation,
|
|
111
|
+
if provided along with the Derivative Works; or, within a display generated
|
|
112
|
+
by the Derivative Works, if and wherever such third-party notices normally
|
|
113
|
+
appear. The contents of the NOTICE file are for informational purposes only
|
|
114
|
+
and do not modify the License. You may add Your own attribution notices
|
|
115
|
+
within Derivative Works that You distribute, alongside or as an addendum to
|
|
116
|
+
the NOTICE text from the Work, provided that such additional attribution
|
|
117
|
+
notices cannot be construed as modifying the License.
|
|
118
|
+
|
|
119
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
120
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
121
|
+
distribution of Your modifications, or for any such Derivative Works as a
|
|
122
|
+
whole, provided Your use, reproduction, and distribution of the Work otherwise
|
|
123
|
+
complies with the conditions stated in this License.
|
|
124
|
+
|
|
125
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
126
|
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
127
|
+
Licensor shall be under the terms and conditions of this License, without any
|
|
128
|
+
additional terms or conditions. Notwithstanding the above, nothing herein
|
|
129
|
+
shall supersede or modify the terms of any separate license agreement you may
|
|
130
|
+
have executed with Licensor regarding such Contributions.
|
|
131
|
+
|
|
132
|
+
6. Trademarks. This License does not grant permission to use the trade names,
|
|
133
|
+
trademarks, service marks, or product names of the Licensor, except as
|
|
134
|
+
required for reasonable and customary use in describing the origin of the Work
|
|
135
|
+
and reproducing the content of the NOTICE file.
|
|
136
|
+
|
|
137
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
138
|
+
writing, Licensor provides the Work (and each Contributor provides its
|
|
139
|
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
140
|
+
KIND, either express or implied, including, without limitation, any warranties
|
|
141
|
+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
142
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
143
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
144
|
+
associated with Your exercise of permissions under this License.
|
|
145
|
+
|
|
146
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
147
|
+
tort (including negligence), contract, or otherwise, unless required by
|
|
148
|
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
149
|
+
writing, shall any Contributor be liable to You for damages, including any
|
|
150
|
+
direct, indirect, special, incidental, or consequential damages of any
|
|
151
|
+
character arising as a result of this License or out of the use or inability
|
|
152
|
+
to use the Work (including but not limited to damages for loss of goodwill,
|
|
153
|
+
work stoppage, computer failure or malfunction, or any and all other
|
|
154
|
+
commercial damages or losses), even if such Contributor has been advised of
|
|
155
|
+
the possibility of such damages.
|
|
156
|
+
|
|
157
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
|
|
158
|
+
Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
159
|
+
acceptance of support, warranty, indemnity, or other liability obligations
|
|
160
|
+
and/or rights consistent with this License. However, in accepting such
|
|
161
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
162
|
+
responsibility, not on behalf of any other Contributor, and only if You agree
|
|
163
|
+
to indemnify, defend, and hold each Contributor harmless for any liability
|
|
164
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
165
|
+
accepting any such warranty or additional liability.
|
|
166
|
+
|
|
167
|
+
END OF TERMS AND CONDITIONS
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
Keywords: tigrcorn,quic,congestion-control,provider,networking,http3
|
|
171
|
+
Classifier: Development Status :: 3 - Alpha
|
|
172
|
+
Classifier: Framework :: AsyncIO
|
|
173
|
+
Classifier: Intended Audience :: Developers
|
|
174
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
175
|
+
Classifier: Operating System :: OS Independent
|
|
176
|
+
Classifier: Programming Language :: Python :: 3
|
|
177
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
178
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
179
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
180
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
181
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
182
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
183
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
184
|
+
Classifier: Typing :: Typed
|
|
185
|
+
Requires-Python: <3.15,>=3.10
|
|
186
|
+
Description-Content-Type: text/markdown
|
|
187
|
+
License-File: LICENSE
|
|
188
|
+
Dynamic: license-file
|
|
189
|
+
|
|
190
|
+
<div align="center">
|
|
191
|
+
<h1>tigrcorn-quic-cc</h1>
|
|
192
|
+
|
|
193
|
+
<p><strong>Versioned congestion-controller contracts and provider discovery for Tigrcorn QUIC transports.</strong></p>
|
|
194
|
+
|
|
195
|
+
<a href="https://pypi.org/project/tigrcorn-quic-cc/"><img alt="PyPI version for tigrcorn-quic-cc" src="https://img.shields.io/pypi/v/tigrcorn-quic-cc?label=PyPI"></a>
|
|
196
|
+
<a href="https://pepy.tech/project/tigrcorn-quic-cc"><img alt="Downloads" src="https://static.pepy.tech/badge/tigrcorn-quic-cc"></a>
|
|
197
|
+
<a href="https://github.com/tigrbl/tigrcorn/blob/master/pkgs/tigrcorn-quic-cc/README.md"><img alt="Hits" src="https://hits.sh/github.com/tigrbl/tigrcorn/blob/master/pkgs/tigrcorn-quic-cc/README.md.svg?label=hits"></a>
|
|
198
|
+
<a href="LICENSE"><img alt="Apache 2.0 license" src="https://img.shields.io/badge/license-Apache%202.0-525252"></a>
|
|
199
|
+
<a href="pyproject.toml"><img alt="Python versions" src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-3776ab"></a>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
## Install
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
pip install tigrcorn-quic-cc
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## What It Owns
|
|
209
|
+
|
|
210
|
+
This dependency-light package owns the public QUIC congestion-control API,
|
|
211
|
+
immutable event and decision models, entry-point discovery, validation, and
|
|
212
|
+
provider compliance helpers. It does not own sockets, packet encoding, loss
|
|
213
|
+
detection, retransmission, flow control, pacing enforcement, or wire ordering.
|
|
214
|
+
|
|
215
|
+
## Use It When
|
|
216
|
+
|
|
217
|
+
Use this package when authoring a standalone Tigrcorn congestion-control
|
|
218
|
+
provider or embedding a provider factory into a controlled QUIC integration.
|
|
219
|
+
|
|
220
|
+
## Import Surface
|
|
221
|
+
|
|
222
|
+
```python
|
|
223
|
+
import tigrcorn_quic_cc
|
|
224
|
+
|
|
225
|
+
print(tigrcorn_quic_cc.API_VERSION)
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Providers implement `CongestionControllerFactory`, validate their options, and
|
|
229
|
+
create one controller per QUIC network path. Controllers receive immutable
|
|
230
|
+
events and return validated `SendLimits` values.
|
|
231
|
+
|
|
232
|
+
## Provider Discovery
|
|
233
|
+
|
|
234
|
+
Publish factories through the `tigrcorn.quic_cc.v1` entry-point group. The
|
|
235
|
+
registry imports only the explicitly selected provider and rejects missing,
|
|
236
|
+
duplicate, or incompatible providers.
|
|
237
|
+
|
|
238
|
+
## Compliance Helpers
|
|
239
|
+
|
|
240
|
+
`DeterministicClock`, `collect_send_limits`, and the public validators support
|
|
241
|
+
repeatable trace and invariant tests without importing Tigrcorn transports.
|
|
242
|
+
|
|
243
|
+
## Related Packages
|
|
244
|
+
|
|
245
|
+
- [tigrcorn](https://pypi.org/project/tigrcorn/)
|
|
246
|
+
- [tigrcorn-core](https://pypi.org/project/tigrcorn-core/)
|
|
247
|
+
- [tigrcorn-config](https://pypi.org/project/tigrcorn-config/)
|
|
248
|
+
- [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/)
|
|
249
|
+
- [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/)
|
|
250
|
+
- [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/)
|
|
251
|
+
|
|
252
|
+
## Package Graph
|
|
253
|
+
|
|
254
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
255
|
+
|
|
256
|
+
`tigrcorn-quic-cc` is a layer-zero contract. Algorithm packages depend on it;
|
|
257
|
+
the transport depends on the contract and its default provider; runtime and
|
|
258
|
+
protocol packages consume the transport-owned enforcement surface.
|
|
259
|
+
|
|
260
|
+
## Best Practices
|
|
261
|
+
|
|
262
|
+
- Keep controller state path-local.
|
|
263
|
+
- Treat event times as monotonic seconds and rates as bytes per second.
|
|
264
|
+
- Return finite, positive pacing rates and safe congestion windows.
|
|
265
|
+
- Keep packet loss detection, retransmission, and wire scheduling in Tigrcorn.
|
|
266
|
+
|
|
267
|
+
## License
|
|
268
|
+
|
|
269
|
+
Apache-2.0
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
tigrcorn_quic_cc/__init__.py,sha256=BGwn4TUmRS41cAxyiWaKwZcppRIRC9eSdxXiFLEGr78,1419
|
|
2
|
+
tigrcorn_quic_cc/api.py,sha256=GxcvcGeR7jUo-M0Bn7AIjXFe1w7ReqxvaJZuSOinA_0,1350
|
|
3
|
+
tigrcorn_quic_cc/discovery.py,sha256=iBCUf72EICgloYC3j8Aiv0vGPlpfTWVpAXUxtCtX3gE,2417
|
|
4
|
+
tigrcorn_quic_cc/errors.py,sha256=aMVrtsgKaI965XlhFbgRshLhDNYAb8pS2j3RV2oGrvs,668
|
|
5
|
+
tigrcorn_quic_cc/models.py,sha256=gC4qkZHdPU3X9DKiV2PexWmq0K90OfZN6w2TZAzhGOQ,2374
|
|
6
|
+
tigrcorn_quic_cc/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
7
|
+
tigrcorn_quic_cc/testing.py,sha256=lutwdY9uX_xxZfdvvHzIbtZjxW3CM5xYr8a_jQgY3bs,903
|
|
8
|
+
tigrcorn_quic_cc/validation.py,sha256=q5uhqMs55qXuzYdSTIcRuOXL7vceQ-tuO-9Pdyxj2Cc,1921
|
|
9
|
+
tigrcorn_quic_cc-0.3.18.dev3.dist-info/licenses/LICENSE,sha256=xhBSirl227aDQNeQ8tk2v_yiU9nbQpJ4EZp6OtATX-s,9591
|
|
10
|
+
tigrcorn_quic_cc-0.3.18.dev3.dist-info/METADATA,sha256=8S9evNwu8A1Ds-j8PhNSgRREecKA-5o8RMIwdscp3GU,16149
|
|
11
|
+
tigrcorn_quic_cc-0.3.18.dev3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
12
|
+
tigrcorn_quic_cc-0.3.18.dev3.dist-info/top_level.txt,sha256=cp56KdV6lGEk3LXBl1GFl-EiqoQJTaimDFHoPheQ0Dw,17
|
|
13
|
+
tigrcorn_quic_cc-0.3.18.dev3.dist-info/RECORD,,
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by the
|
|
13
|
+
copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other
|
|
16
|
+
entities that control, are controlled by, or are under common control with
|
|
17
|
+
that entity. For the purposes of this definition, "control" means (i) the
|
|
18
|
+
power, direct or indirect, to cause the direction or management of such
|
|
19
|
+
entity, whether by contract or otherwise, or (ii) ownership of fifty percent
|
|
20
|
+
(50%) or more of the outstanding shares, or (iii) beneficial ownership of
|
|
21
|
+
such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation source, and
|
|
28
|
+
configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical transformation
|
|
31
|
+
or translation of a Source form, including but not limited to compiled object
|
|
32
|
+
code, generated documentation, and conversions to other media types.
|
|
33
|
+
|
|
34
|
+
"Work" shall mean the work of authorship, whether in Source or Object form,
|
|
35
|
+
made available under the License, as indicated by a copyright notice that is
|
|
36
|
+
included in or attached to the work (an example is provided in the Appendix
|
|
37
|
+
below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object form,
|
|
40
|
+
that is based on (or derived from) the Work and for which the editorial
|
|
41
|
+
revisions, annotations, elaborations, or other modifications represent, as a
|
|
42
|
+
whole, an original work of authorship. For the purposes of this License,
|
|
43
|
+
Derivative Works shall not include works that remain separable from, or
|
|
44
|
+
merely link (or bind by name) to the interfaces of, the Work and Derivative
|
|
45
|
+
Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including the original
|
|
48
|
+
version of the Work and any modifications or additions to that Work or
|
|
49
|
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
|
50
|
+
inclusion in the Work by the copyright owner or by an individual or Legal
|
|
51
|
+
Entity authorized to submit on behalf of the copyright owner. For the
|
|
52
|
+
purposes of this definition, "submitted" means any form of electronic,
|
|
53
|
+
verbal, or written communication sent to the Licensor or its representatives,
|
|
54
|
+
including but not limited to communication on electronic mailing lists,
|
|
55
|
+
source code control systems, and issue tracking systems that are managed by,
|
|
56
|
+
or on behalf of, the Licensor for the purpose of discussing and improving the
|
|
57
|
+
Work, but excluding communication that is conspicuously marked or otherwise
|
|
58
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
59
|
+
|
|
60
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on
|
|
61
|
+
behalf of whom a Contribution has been received by Licensor and subsequently
|
|
62
|
+
incorporated within the Work.
|
|
63
|
+
|
|
64
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
|
65
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
66
|
+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
|
|
67
|
+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
|
|
68
|
+
sublicense, and distribute the Work and such Derivative Works in Source or
|
|
69
|
+
Object form.
|
|
70
|
+
|
|
71
|
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
|
72
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
73
|
+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
|
|
74
|
+
section) patent license to make, have made, use, offer to sell, sell, import,
|
|
75
|
+
and otherwise transfer the Work, where such license applies only to those
|
|
76
|
+
patent claims licensable by such Contributor that are necessarily infringed by
|
|
77
|
+
their Contribution(s) alone or by combination of their Contribution(s) with
|
|
78
|
+
the Work to which such Contribution(s) was submitted. If You institute patent
|
|
79
|
+
litigation against any entity (including a cross-claim or counterclaim in a
|
|
80
|
+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
|
|
81
|
+
constitutes direct or contributory patent infringement, then any patent
|
|
82
|
+
licenses granted to You under this License for that Work shall terminate as of
|
|
83
|
+
the date such litigation is filed.
|
|
84
|
+
|
|
85
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
|
86
|
+
Derivative Works thereof in any medium, with or without modifications, and in
|
|
87
|
+
Source or Object form, provided that You meet the following conditions:
|
|
88
|
+
|
|
89
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
|
90
|
+
of this License; and
|
|
91
|
+
|
|
92
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
93
|
+
You changed the files; and
|
|
94
|
+
|
|
95
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
96
|
+
distribute, all copyright, patent, trademark, and attribution notices
|
|
97
|
+
from the Source form of the Work, excluding those notices that do not
|
|
98
|
+
pertain to any part of the Derivative Works; and
|
|
99
|
+
|
|
100
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution,
|
|
101
|
+
then any Derivative Works that You distribute must include a readable copy
|
|
102
|
+
of the attribution notices contained within such NOTICE file, excluding
|
|
103
|
+
those notices that do not pertain to any part of the Derivative Works, in
|
|
104
|
+
at least one of the following places: within a NOTICE text file distributed
|
|
105
|
+
as part of the Derivative Works; within the Source form or documentation,
|
|
106
|
+
if provided along with the Derivative Works; or, within a display generated
|
|
107
|
+
by the Derivative Works, if and wherever such third-party notices normally
|
|
108
|
+
appear. The contents of the NOTICE file are for informational purposes only
|
|
109
|
+
and do not modify the License. You may add Your own attribution notices
|
|
110
|
+
within Derivative Works that You distribute, alongside or as an addendum to
|
|
111
|
+
the NOTICE text from the Work, provided that such additional attribution
|
|
112
|
+
notices cannot be construed as modifying the License.
|
|
113
|
+
|
|
114
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
115
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
116
|
+
distribution of Your modifications, or for any such Derivative Works as a
|
|
117
|
+
whole, provided Your use, reproduction, and distribution of the Work otherwise
|
|
118
|
+
complies with the conditions stated in this License.
|
|
119
|
+
|
|
120
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
121
|
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
122
|
+
Licensor shall be under the terms and conditions of this License, without any
|
|
123
|
+
additional terms or conditions. Notwithstanding the above, nothing herein
|
|
124
|
+
shall supersede or modify the terms of any separate license agreement you may
|
|
125
|
+
have executed with Licensor regarding such Contributions.
|
|
126
|
+
|
|
127
|
+
6. Trademarks. This License does not grant permission to use the trade names,
|
|
128
|
+
trademarks, service marks, or product names of the Licensor, except as
|
|
129
|
+
required for reasonable and customary use in describing the origin of the Work
|
|
130
|
+
and reproducing the content of the NOTICE file.
|
|
131
|
+
|
|
132
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
133
|
+
writing, Licensor provides the Work (and each Contributor provides its
|
|
134
|
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
135
|
+
KIND, either express or implied, including, without limitation, any warranties
|
|
136
|
+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
137
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
138
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
139
|
+
associated with Your exercise of permissions under this License.
|
|
140
|
+
|
|
141
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
142
|
+
tort (including negligence), contract, or otherwise, unless required by
|
|
143
|
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
144
|
+
writing, shall any Contributor be liable to You for damages, including any
|
|
145
|
+
direct, indirect, special, incidental, or consequential damages of any
|
|
146
|
+
character arising as a result of this License or out of the use or inability
|
|
147
|
+
to use the Work (including but not limited to damages for loss of goodwill,
|
|
148
|
+
work stoppage, computer failure or malfunction, or any and all other
|
|
149
|
+
commercial damages or losses), even if such Contributor has been advised of
|
|
150
|
+
the possibility of such damages.
|
|
151
|
+
|
|
152
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
|
|
153
|
+
Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
154
|
+
acceptance of support, warranty, indemnity, or other liability obligations
|
|
155
|
+
and/or rights consistent with this License. However, in accepting such
|
|
156
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
157
|
+
responsibility, not on behalf of any other Contributor, and only if You agree
|
|
158
|
+
to indemnify, defend, and hold each Contributor harmless for any liability
|
|
159
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
160
|
+
accepting any such warranty or additional liability.
|
|
161
|
+
|
|
162
|
+
END OF TERMS AND CONDITIONS
|
|
163
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tigrcorn_quic_cc
|