cocoindex 0.2.20__cp311-abi3-manylinux_2_28_aarch64.whl → 0.2.22__cp311-abi3-manylinux_2_28_aarch64.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.
Potentially problematic release.
This version of cocoindex might be problematic. Click here for more details.
- cocoindex/_engine.abi3.so +0 -0
- cocoindex/cli.py +43 -32
- cocoindex/engine_value.py +15 -13
- cocoindex/flow.py +4 -4
- cocoindex/op.py +262 -5
- cocoindex/sources/_engine_builtin_specs.py +11 -0
- cocoindex/typing.py +6 -6
- {cocoindex-0.2.20.dist-info → cocoindex-0.2.22.dist-info}/METADATA +10 -1
- {cocoindex-0.2.20.dist-info → cocoindex-0.2.22.dist-info}/RECORD +12 -12
- {cocoindex-0.2.20.dist-info → cocoindex-0.2.22.dist-info}/licenses/THIRD_PARTY_NOTICES.html +547 -4
- {cocoindex-0.2.20.dist-info → cocoindex-0.2.22.dist-info}/WHEEL +0 -0
- {cocoindex-0.2.20.dist-info → cocoindex-0.2.22.dist-info}/entry_points.txt +0 -0
cocoindex/_engine.abi3.so
CHANGED
|
Binary file
|
cocoindex/cli.py
CHANGED
|
@@ -84,9 +84,7 @@ def _load_user_app(app_target: str) -> None:
|
|
|
84
84
|
try:
|
|
85
85
|
load_user_app(app_target)
|
|
86
86
|
except UserAppLoaderError as e:
|
|
87
|
-
raise
|
|
88
|
-
f"Failed to load APP_TARGET '{app_target}': {e}"
|
|
89
|
-
) from e
|
|
87
|
+
raise ValueError(f"Failed to load APP_TARGET '{app_target}'") from e
|
|
90
88
|
|
|
91
89
|
add_user_app(app_target)
|
|
92
90
|
|
|
@@ -138,11 +136,9 @@ def ls(app_target: str | None) -> None:
|
|
|
138
136
|
"""
|
|
139
137
|
List all flows.
|
|
140
138
|
|
|
141
|
-
If APP_TARGET (path/to/app.py or a module) is provided, lists flows
|
|
142
|
-
defined in the app and their backend setup status.
|
|
139
|
+
If `APP_TARGET` (`path/to/app.py` or a module) is provided, lists flows defined in the app and their backend setup status.
|
|
143
140
|
|
|
144
|
-
If APP_TARGET is omitted, lists all flows that have a persisted
|
|
145
|
-
setup in the backend.
|
|
141
|
+
If `APP_TARGET` is omitted, lists all flows that have a persisted setup in the backend.
|
|
146
142
|
"""
|
|
147
143
|
persisted_flow_names = flow_names_with_setup()
|
|
148
144
|
if app_target:
|
|
@@ -190,16 +186,15 @@ def show(app_flow_specifier: str, color: bool, verbose: bool) -> None:
|
|
|
190
186
|
"""
|
|
191
187
|
Show the flow spec and schema.
|
|
192
188
|
|
|
193
|
-
APP_FLOW_SPECIFIER
|
|
194
|
-
Can be one of the following formats:
|
|
189
|
+
`APP_FLOW_SPECIFIER`: Specifies the application and optionally the target flow. Can be one of the following formats:
|
|
195
190
|
|
|
196
191
|
\b
|
|
197
|
-
- path/to/your_app.py
|
|
198
|
-
- an_installed.module_name
|
|
199
|
-
- path/to/your_app.py:SpecificFlowName
|
|
200
|
-
- an_installed.module_name:SpecificFlowName
|
|
192
|
+
- `path/to/your_app.py`
|
|
193
|
+
- `an_installed.module_name`
|
|
194
|
+
- `path/to/your_app.py:SpecificFlowName`
|
|
195
|
+
- `an_installed.module_name:SpecificFlowName`
|
|
201
196
|
|
|
202
|
-
|
|
197
|
+
`:SpecificFlowName` can be omitted only if the application defines a single flow.
|
|
203
198
|
"""
|
|
204
199
|
app_ref, flow_ref = _parse_app_flow_specifier(app_flow_specifier)
|
|
205
200
|
_load_user_app(app_ref)
|
|
@@ -256,6 +251,23 @@ def _drop_flows(flows: Iterable[flow.Flow], app_ref: str, force: bool = False) -
|
|
|
256
251
|
setup_bundle.apply(report_to_stdout=True)
|
|
257
252
|
|
|
258
253
|
|
|
254
|
+
def _deprecate_setup_flag(
|
|
255
|
+
ctx: click.Context, param: click.Parameter, value: bool
|
|
256
|
+
) -> bool:
|
|
257
|
+
"""Callback to warn users that --setup flag is deprecated."""
|
|
258
|
+
# Check if the parameter was explicitly provided by the user
|
|
259
|
+
if param.name is not None:
|
|
260
|
+
param_source = ctx.get_parameter_source(param.name)
|
|
261
|
+
if param_source == click.core.ParameterSource.COMMANDLINE:
|
|
262
|
+
click.secho(
|
|
263
|
+
"Warning: The --setup flag is deprecated and will be removed in a future version. "
|
|
264
|
+
"Setup is now always enabled by default.",
|
|
265
|
+
fg="yellow",
|
|
266
|
+
err=True,
|
|
267
|
+
)
|
|
268
|
+
return value
|
|
269
|
+
|
|
270
|
+
|
|
259
271
|
def _setup_flows(
|
|
260
272
|
flow_iter: Iterable[flow.Flow],
|
|
261
273
|
*,
|
|
@@ -316,7 +328,7 @@ def setup(app_target: str, force: bool, reset: bool) -> None:
|
|
|
316
328
|
"""
|
|
317
329
|
Check and apply backend setup changes for flows, including the internal storage and target (to export to).
|
|
318
330
|
|
|
319
|
-
APP_TARGET
|
|
331
|
+
`APP_TARGET`: `path/to/app.py` or `installed_module`.
|
|
320
332
|
"""
|
|
321
333
|
app_ref = _get_app_ref_from_specifier(app_target)
|
|
322
334
|
_load_user_app(app_ref)
|
|
@@ -397,8 +409,9 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], force: bool) -> Non
|
|
|
397
409
|
"--setup",
|
|
398
410
|
is_flag=True,
|
|
399
411
|
show_default=True,
|
|
400
|
-
default=
|
|
401
|
-
|
|
412
|
+
default=True,
|
|
413
|
+
callback=_deprecate_setup_flag,
|
|
414
|
+
help="(DEPRECATED) Automatically setup backends for the flow if it's not setup yet. This is now the default behavior.",
|
|
402
415
|
)
|
|
403
416
|
@click.option(
|
|
404
417
|
"--reset",
|
|
@@ -435,8 +448,7 @@ def update(
|
|
|
435
448
|
"""
|
|
436
449
|
Update the index to reflect the latest data from data sources.
|
|
437
450
|
|
|
438
|
-
APP_FLOW_SPECIFIER
|
|
439
|
-
If :FlowName is omitted, updates all flows.
|
|
451
|
+
`APP_FLOW_SPECIFIER`: `path/to/app.py`, module, `path/to/app.py:FlowName`, or `module:FlowName`. If `:FlowName` is omitted, updates all flows.
|
|
440
452
|
"""
|
|
441
453
|
app_ref, flow_name = _parse_app_flow_specifier(app_flow_specifier)
|
|
442
454
|
_load_user_app(app_ref)
|
|
@@ -494,18 +506,16 @@ def evaluate(
|
|
|
494
506
|
"""
|
|
495
507
|
Evaluate the flow and dump flow outputs to files.
|
|
496
508
|
|
|
497
|
-
Instead of updating the index, it dumps what should be indexed to files.
|
|
498
|
-
Mainly used for evaluation purpose.
|
|
509
|
+
Instead of updating the index, it dumps what should be indexed to files. Mainly used for evaluation purpose.
|
|
499
510
|
|
|
500
511
|
\b
|
|
501
|
-
APP_FLOW_SPECIFIER
|
|
502
|
-
|
|
503
|
-
-
|
|
504
|
-
-
|
|
505
|
-
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
:SpecificFlowName can be omitted only if the application defines a single flow.
|
|
512
|
+
`APP_FLOW_SPECIFIER`: Specifies the application and optionally the target flow. Can be one of the following formats:
|
|
513
|
+
- `path/to/your_app.py`
|
|
514
|
+
- `an_installed.module_name`
|
|
515
|
+
- `path/to/your_app.py:SpecificFlowName`
|
|
516
|
+
- `an_installed.module_name:SpecificFlowName`
|
|
517
|
+
|
|
518
|
+
`:SpecificFlowName` can be omitted only if the application defines a single flow.
|
|
509
519
|
"""
|
|
510
520
|
app_ref, flow_ref = _parse_app_flow_specifier(app_flow_specifier)
|
|
511
521
|
_load_user_app(app_ref)
|
|
@@ -561,8 +571,9 @@ def evaluate(
|
|
|
561
571
|
"--setup",
|
|
562
572
|
is_flag=True,
|
|
563
573
|
show_default=True,
|
|
564
|
-
default=
|
|
565
|
-
|
|
574
|
+
default=True,
|
|
575
|
+
callback=_deprecate_setup_flag,
|
|
576
|
+
help="(DEPRECATED) Automatically setup backends for the flow if it's not setup yet. This is now the default behavior.",
|
|
566
577
|
)
|
|
567
578
|
@click.option(
|
|
568
579
|
"--reset",
|
|
@@ -621,7 +632,7 @@ def server(
|
|
|
621
632
|
|
|
622
633
|
It will allow tools like CocoInsight to access the server.
|
|
623
634
|
|
|
624
|
-
APP_TARGET
|
|
635
|
+
`APP_TARGET`: `path/to/app.py` or `installed_module`.
|
|
625
636
|
"""
|
|
626
637
|
app_ref = _get_app_ref_from_specifier(app_target)
|
|
627
638
|
args = (
|
cocoindex/engine_value.py
CHANGED
|
@@ -70,6 +70,17 @@ def _is_type_kind_convertible_to(src_type_kind: str, dst_type_kind: str) -> bool
|
|
|
70
70
|
ANY_TYPE_INFO = analyze_type_info(inspect.Parameter.empty)
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
def make_engine_key_encoder(type_info: AnalyzedTypeInfo) -> Callable[[Any], Any]:
|
|
74
|
+
"""
|
|
75
|
+
Create an encoder closure for a key type.
|
|
76
|
+
"""
|
|
77
|
+
value_encoder = make_engine_value_encoder(type_info)
|
|
78
|
+
if isinstance(type_info.variant, AnalyzedBasicType):
|
|
79
|
+
return lambda value: [value_encoder(value)]
|
|
80
|
+
else:
|
|
81
|
+
return value_encoder
|
|
82
|
+
|
|
83
|
+
|
|
73
84
|
def make_engine_value_encoder(type_info: AnalyzedTypeInfo) -> Callable[[Any], Any]:
|
|
74
85
|
"""
|
|
75
86
|
Create an encoder closure for a specific type.
|
|
@@ -94,6 +105,9 @@ def make_engine_value_encoder(type_info: AnalyzedTypeInfo) -> Callable[[Any], An
|
|
|
94
105
|
# Otherwise it's a vector, falling into basic type in the engine.
|
|
95
106
|
|
|
96
107
|
if isinstance(variant, AnalyzedDictType):
|
|
108
|
+
key_type_info = analyze_type_info(variant.key_type)
|
|
109
|
+
key_encoder = make_engine_key_encoder(key_type_info)
|
|
110
|
+
|
|
97
111
|
value_type_info = analyze_type_info(variant.value_type)
|
|
98
112
|
if not isinstance(value_type_info.variant, AnalyzedStructType):
|
|
99
113
|
raise ValueError(
|
|
@@ -102,22 +116,10 @@ def make_engine_value_encoder(type_info: AnalyzedTypeInfo) -> Callable[[Any], An
|
|
|
102
116
|
)
|
|
103
117
|
value_encoder = make_engine_value_encoder(value_type_info)
|
|
104
118
|
|
|
105
|
-
key_type_info = analyze_type_info(variant.key_type)
|
|
106
|
-
key_encoder = make_engine_value_encoder(key_type_info)
|
|
107
|
-
if isinstance(key_type_info.variant, AnalyzedBasicType):
|
|
108
|
-
|
|
109
|
-
def encode_row(k: Any, v: Any) -> Any:
|
|
110
|
-
return [key_encoder(k)] + value_encoder(v)
|
|
111
|
-
|
|
112
|
-
else:
|
|
113
|
-
|
|
114
|
-
def encode_row(k: Any, v: Any) -> Any:
|
|
115
|
-
return key_encoder(k) + value_encoder(v)
|
|
116
|
-
|
|
117
119
|
def encode_struct_dict(value: Any) -> Any:
|
|
118
120
|
if not value:
|
|
119
121
|
return []
|
|
120
|
-
return [
|
|
122
|
+
return [key_encoder(k) + value_encoder(v) for k, v in value.items()]
|
|
121
123
|
|
|
122
124
|
return encode_struct_dict
|
|
123
125
|
|
cocoindex/flow.py
CHANGED
|
@@ -459,7 +459,9 @@ class _FlowBuilderState:
|
|
|
459
459
|
field_name_builder: _NameBuilder
|
|
460
460
|
|
|
461
461
|
def __init__(self, full_name: str):
|
|
462
|
-
self.engine_flow_builder = _engine.FlowBuilder(
|
|
462
|
+
self.engine_flow_builder = _engine.FlowBuilder(
|
|
463
|
+
full_name, execution_context.event_loop
|
|
464
|
+
)
|
|
463
465
|
self.field_name_builder = _NameBuilder()
|
|
464
466
|
|
|
465
467
|
def get_data_slice(self, v: Any) -> _engine.DataSlice:
|
|
@@ -931,9 +933,7 @@ def _create_lazy_flow(
|
|
|
931
933
|
flow_builder_state, flow_builder_state.engine_flow_builder.root_scope()
|
|
932
934
|
)
|
|
933
935
|
fl_def(FlowBuilder(flow_builder_state), root_scope)
|
|
934
|
-
return flow_builder_state.engine_flow_builder.build_flow(
|
|
935
|
-
execution_context.event_loop
|
|
936
|
-
)
|
|
936
|
+
return flow_builder_state.engine_flow_builder.build_flow()
|
|
937
937
|
|
|
938
938
|
return Flow(flow_name, _create_engine_flow)
|
|
939
939
|
|
cocoindex/op.py
CHANGED
|
@@ -9,22 +9,33 @@ from typing import (
|
|
|
9
9
|
Any,
|
|
10
10
|
Awaitable,
|
|
11
11
|
Callable,
|
|
12
|
+
Iterator,
|
|
12
13
|
Protocol,
|
|
13
14
|
dataclass_transform,
|
|
14
15
|
Annotated,
|
|
16
|
+
TypeVar,
|
|
17
|
+
Generic,
|
|
18
|
+
Literal,
|
|
15
19
|
get_args,
|
|
16
20
|
)
|
|
21
|
+
from collections.abc import AsyncIterator
|
|
17
22
|
|
|
18
23
|
from . import _engine # type: ignore
|
|
19
24
|
from .subprocess_exec import executor_stub
|
|
20
25
|
from .engine_object import dump_engine_object, load_engine_object
|
|
21
26
|
from .engine_value import (
|
|
27
|
+
make_engine_key_encoder,
|
|
22
28
|
make_engine_value_encoder,
|
|
23
29
|
make_engine_value_decoder,
|
|
24
30
|
make_engine_key_decoder,
|
|
25
31
|
make_engine_struct_decoder,
|
|
26
32
|
)
|
|
27
33
|
from .typing import (
|
|
34
|
+
KEY_FIELD_NAME,
|
|
35
|
+
AnalyzedTypeInfo,
|
|
36
|
+
StructSchema,
|
|
37
|
+
StructType,
|
|
38
|
+
TableType,
|
|
28
39
|
TypeAttr,
|
|
29
40
|
encode_enriched_type_info,
|
|
30
41
|
resolve_forward_ref,
|
|
@@ -96,12 +107,12 @@ class Executor(Protocol):
|
|
|
96
107
|
op_category: OpCategory
|
|
97
108
|
|
|
98
109
|
|
|
99
|
-
def _get_required_method(
|
|
100
|
-
method = getattr(
|
|
110
|
+
def _get_required_method(obj: type, name: str) -> Callable[..., Any]:
|
|
111
|
+
method = getattr(obj, name, None)
|
|
101
112
|
if method is None:
|
|
102
|
-
raise ValueError(f"Method {name}() is required for {
|
|
103
|
-
if not inspect.isfunction(method):
|
|
104
|
-
raise ValueError(f"
|
|
113
|
+
raise ValueError(f"Method {name}() is required for {obj}")
|
|
114
|
+
if not inspect.isfunction(method) and not inspect.ismethod(method):
|
|
115
|
+
raise ValueError(f"{obj}.{name}() is not a function; {method}")
|
|
105
116
|
return method
|
|
106
117
|
|
|
107
118
|
|
|
@@ -421,6 +432,252 @@ def function(**args: Any) -> Callable[[Callable[..., Any]], Callable[..., Any]]:
|
|
|
421
432
|
return _inner
|
|
422
433
|
|
|
423
434
|
|
|
435
|
+
########################################################
|
|
436
|
+
# Custom source connector
|
|
437
|
+
########################################################
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
@dataclasses.dataclass
|
|
441
|
+
class SourceReadOptions:
|
|
442
|
+
"""
|
|
443
|
+
The options for reading a source row.
|
|
444
|
+
This is argument for both `list()` and `get_value()` methods.
|
|
445
|
+
Note that in most cases (unless spelled out otherwise below) it's not a mandatory requirement, but more like a hint to say it's useful under the current context.
|
|
446
|
+
|
|
447
|
+
- include_ordinal: Whether to include the ordinal of the source row.
|
|
448
|
+
When provides_ordinal() returns True, you must provide `ordinal` in `list()` when `include_ordinal` is True.
|
|
449
|
+
It's optional for other cases. It's helpful to skip unnecessary reprocessing early, and avoid output from older version of input over-writing the latest one when there's concurrency (especially multiple processes) and source updates frequently.
|
|
450
|
+
|
|
451
|
+
- include_content_version_fp: Whether to include the content version fingerprint of the source row.
|
|
452
|
+
It's always optional even if this is True.
|
|
453
|
+
It's helpful to skip unnecessary reprocessing early.
|
|
454
|
+
You should only consider providing it if you can directly get it without computing the hash on the content.
|
|
455
|
+
|
|
456
|
+
- include_value: Whether to include the value of the source row.
|
|
457
|
+
You must provide it in `get_value()` when `include_value` is True.
|
|
458
|
+
It's optional for `list()`.
|
|
459
|
+
Consider providing it when it's significantly cheaper then calling another `get_value()` for each row.
|
|
460
|
+
It will save costs of individual `get_value()` calls.
|
|
461
|
+
"""
|
|
462
|
+
|
|
463
|
+
include_ordinal: bool = False
|
|
464
|
+
include_content_version_fp: bool = False
|
|
465
|
+
include_value: bool = False
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
K = TypeVar("K")
|
|
469
|
+
V = TypeVar("V")
|
|
470
|
+
|
|
471
|
+
NON_EXISTENCE: Literal["NON_EXISTENCE"] = "NON_EXISTENCE"
|
|
472
|
+
NO_ORDINAL: Literal["NO_ORDINAL"] = "NO_ORDINAL"
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
@dataclasses.dataclass
|
|
476
|
+
class PartialSourceRowData(Generic[V]):
|
|
477
|
+
"""
|
|
478
|
+
The data of a source row.
|
|
479
|
+
|
|
480
|
+
- value: The value of the source row. NON_EXISTENCE means the row does not exist.
|
|
481
|
+
- ordinal: The ordinal of the source row. NO_ORDINAL means ordinal is not available for the source.
|
|
482
|
+
- content_version_fp: The content version fingerprint of the source row.
|
|
483
|
+
"""
|
|
484
|
+
|
|
485
|
+
value: V | Literal["NON_EXISTENCE"] | None = None
|
|
486
|
+
ordinal: int | Literal["NO_ORDINAL"] | None = None
|
|
487
|
+
content_version_fp: bytes | None = None
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
@dataclasses.dataclass
|
|
491
|
+
class PartialSourceRow(Generic[K, V]):
|
|
492
|
+
key: K
|
|
493
|
+
data: PartialSourceRowData[V]
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
class _SourceExecutorContext:
|
|
497
|
+
_executor: Any
|
|
498
|
+
|
|
499
|
+
_key_encoder: Callable[[Any], Any]
|
|
500
|
+
_key_decoder: Callable[[Any], Any]
|
|
501
|
+
|
|
502
|
+
_value_encoder: Callable[[Any], Any]
|
|
503
|
+
|
|
504
|
+
_list_fn: Callable[
|
|
505
|
+
[SourceReadOptions],
|
|
506
|
+
AsyncIterator[PartialSourceRow[Any, Any]]
|
|
507
|
+
| Iterator[PartialSourceRow[Any, Any]],
|
|
508
|
+
]
|
|
509
|
+
_orig_get_value_fn: Callable[..., Any]
|
|
510
|
+
_get_value_fn: Callable[..., Awaitable[PartialSourceRowData[Any]]]
|
|
511
|
+
_provides_ordinal_fn: Callable[[], bool] | None
|
|
512
|
+
|
|
513
|
+
def __init__(
|
|
514
|
+
self,
|
|
515
|
+
executor: Any,
|
|
516
|
+
key_type_info: AnalyzedTypeInfo,
|
|
517
|
+
key_decoder: Callable[[Any], Any],
|
|
518
|
+
value_type_info: AnalyzedTypeInfo,
|
|
519
|
+
):
|
|
520
|
+
self._executor = executor
|
|
521
|
+
|
|
522
|
+
self._key_encoder = make_engine_key_encoder(key_type_info)
|
|
523
|
+
self._key_decoder = key_decoder
|
|
524
|
+
self._value_encoder = make_engine_value_encoder(value_type_info)
|
|
525
|
+
|
|
526
|
+
self._list_fn = _get_required_method(executor, "list")
|
|
527
|
+
self._orig_get_value_fn = _get_required_method(executor, "get_value")
|
|
528
|
+
self._get_value_fn = to_async_call(self._orig_get_value_fn)
|
|
529
|
+
self._provides_ordinal_fn = getattr(executor, "provides_ordinal", None)
|
|
530
|
+
|
|
531
|
+
def provides_ordinal(self) -> bool:
|
|
532
|
+
if self._provides_ordinal_fn is not None:
|
|
533
|
+
result = self._provides_ordinal_fn()
|
|
534
|
+
return bool(result)
|
|
535
|
+
else:
|
|
536
|
+
return False
|
|
537
|
+
|
|
538
|
+
async def list_async(
|
|
539
|
+
self, options: dict[str, Any]
|
|
540
|
+
) -> AsyncIterator[tuple[Any, dict[str, Any]]]:
|
|
541
|
+
"""
|
|
542
|
+
Return an async iterator that yields individual rows one by one.
|
|
543
|
+
Each yielded item is a tuple of (key, data).
|
|
544
|
+
"""
|
|
545
|
+
read_options = load_engine_object(SourceReadOptions, options)
|
|
546
|
+
args = _build_args(self._list_fn, 0, options=read_options)
|
|
547
|
+
list_result = self._list_fn(*args)
|
|
548
|
+
|
|
549
|
+
# Handle both sync and async iterators
|
|
550
|
+
if hasattr(list_result, "__aiter__"):
|
|
551
|
+
async for partial_row in list_result:
|
|
552
|
+
yield (
|
|
553
|
+
self._key_encoder(partial_row.key),
|
|
554
|
+
self._encode_source_row_data(partial_row.data),
|
|
555
|
+
)
|
|
556
|
+
else:
|
|
557
|
+
for partial_row in list_result:
|
|
558
|
+
yield (
|
|
559
|
+
self._key_encoder(partial_row.key),
|
|
560
|
+
self._encode_source_row_data(partial_row.data),
|
|
561
|
+
)
|
|
562
|
+
|
|
563
|
+
async def get_value_async(
|
|
564
|
+
self,
|
|
565
|
+
raw_key: Any,
|
|
566
|
+
options: dict[str, Any],
|
|
567
|
+
) -> dict[str, Any]:
|
|
568
|
+
key = self._key_decoder(raw_key)
|
|
569
|
+
read_options = load_engine_object(SourceReadOptions, options)
|
|
570
|
+
args = _build_args(self._orig_get_value_fn, 1, key=key, options=read_options)
|
|
571
|
+
row_data = await self._get_value_fn(*args)
|
|
572
|
+
return self._encode_source_row_data(row_data)
|
|
573
|
+
|
|
574
|
+
def _encode_source_row_data(
|
|
575
|
+
self, row_data: PartialSourceRowData[Any]
|
|
576
|
+
) -> dict[str, Any]:
|
|
577
|
+
"""Convert Python PartialSourceRowData to the format expected by Rust."""
|
|
578
|
+
return {
|
|
579
|
+
"ordinal": row_data.ordinal,
|
|
580
|
+
"content_version_fp": row_data.content_version_fp,
|
|
581
|
+
"value": (
|
|
582
|
+
NON_EXISTENCE
|
|
583
|
+
if row_data.value == NON_EXISTENCE
|
|
584
|
+
else self._value_encoder(row_data.value)
|
|
585
|
+
),
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
class _SourceConnector:
|
|
590
|
+
"""
|
|
591
|
+
The connector class passed to the engine.
|
|
592
|
+
"""
|
|
593
|
+
|
|
594
|
+
_spec_cls: type[Any]
|
|
595
|
+
_key_type_info: AnalyzedTypeInfo
|
|
596
|
+
_key_decoder: Callable[[Any], Any]
|
|
597
|
+
_value_type_info: AnalyzedTypeInfo
|
|
598
|
+
_table_type: EnrichedValueType
|
|
599
|
+
_connector_cls: type[Any]
|
|
600
|
+
|
|
601
|
+
_create_fn: Callable[[Any], Awaitable[Any]]
|
|
602
|
+
|
|
603
|
+
def __init__(
|
|
604
|
+
self,
|
|
605
|
+
spec_cls: type[Any],
|
|
606
|
+
key_type: Any,
|
|
607
|
+
value_type: Any,
|
|
608
|
+
connector_cls: type[Any],
|
|
609
|
+
):
|
|
610
|
+
self._spec_cls = spec_cls
|
|
611
|
+
self._key_type_info = analyze_type_info(key_type)
|
|
612
|
+
self._value_type_info = analyze_type_info(value_type)
|
|
613
|
+
self._connector_cls = connector_cls
|
|
614
|
+
|
|
615
|
+
# TODO: We can save the intermediate step after #1083 is fixed.
|
|
616
|
+
encoded_engine_key_type = encode_enriched_type_info(self._key_type_info)
|
|
617
|
+
engine_key_type = EnrichedValueType.decode(encoded_engine_key_type)
|
|
618
|
+
|
|
619
|
+
# TODO: We can save the intermediate step after #1083 is fixed.
|
|
620
|
+
encoded_engine_value_type = encode_enriched_type_info(self._value_type_info)
|
|
621
|
+
engine_value_type = EnrichedValueType.decode(encoded_engine_value_type)
|
|
622
|
+
|
|
623
|
+
if not isinstance(engine_value_type.type, StructType):
|
|
624
|
+
raise ValueError(f"Expected a StructType, got {engine_value_type.type}")
|
|
625
|
+
|
|
626
|
+
if isinstance(engine_key_type.type, StructType):
|
|
627
|
+
key_fields_schema = engine_key_type.type.fields
|
|
628
|
+
else:
|
|
629
|
+
key_fields_schema = [
|
|
630
|
+
FieldSchema(name=KEY_FIELD_NAME, value_type=engine_key_type)
|
|
631
|
+
]
|
|
632
|
+
self._key_decoder = make_engine_key_decoder(
|
|
633
|
+
[], key_fields_schema, self._key_type_info
|
|
634
|
+
)
|
|
635
|
+
self._table_type = EnrichedValueType(
|
|
636
|
+
type=TableType(
|
|
637
|
+
kind="KTable",
|
|
638
|
+
row=StructSchema(
|
|
639
|
+
fields=key_fields_schema + engine_value_type.type.fields
|
|
640
|
+
),
|
|
641
|
+
num_key_parts=len(key_fields_schema),
|
|
642
|
+
),
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
self._create_fn = to_async_call(_get_required_method(connector_cls, "create"))
|
|
646
|
+
|
|
647
|
+
async def create_executor(self, raw_spec: dict[str, Any]) -> _SourceExecutorContext:
|
|
648
|
+
spec = load_engine_object(self._spec_cls, raw_spec)
|
|
649
|
+
executor = await self._create_fn(spec)
|
|
650
|
+
return _SourceExecutorContext(
|
|
651
|
+
executor, self._key_type_info, self._key_decoder, self._value_type_info
|
|
652
|
+
)
|
|
653
|
+
|
|
654
|
+
def get_table_type(self) -> Any:
|
|
655
|
+
return dump_engine_object(self._table_type)
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
def source_connector(
|
|
659
|
+
*,
|
|
660
|
+
spec_cls: type[Any],
|
|
661
|
+
key_type: Any = Any,
|
|
662
|
+
value_type: Any = Any,
|
|
663
|
+
) -> Callable[[type], type]:
|
|
664
|
+
"""
|
|
665
|
+
Decorate a class to provide a source connector for an op.
|
|
666
|
+
"""
|
|
667
|
+
|
|
668
|
+
# Validate the spec_cls is a SourceSpec.
|
|
669
|
+
if not issubclass(spec_cls, SourceSpec):
|
|
670
|
+
raise ValueError(f"Expect a SourceSpec, got {spec_cls}")
|
|
671
|
+
|
|
672
|
+
# Register the source connector.
|
|
673
|
+
def _inner(connector_cls: type) -> type:
|
|
674
|
+
connector = _SourceConnector(spec_cls, key_type, value_type, connector_cls)
|
|
675
|
+
_engine.register_source_connector(spec_cls.__name__, connector)
|
|
676
|
+
return connector_cls
|
|
677
|
+
|
|
678
|
+
return _inner
|
|
679
|
+
|
|
680
|
+
|
|
424
681
|
########################################################
|
|
425
682
|
# Custom target connector
|
|
426
683
|
########################################################
|
|
@@ -35,6 +35,16 @@ class GoogleDrive(op.SourceSpec):
|
|
|
35
35
|
recent_changes_poll_interval: datetime.timedelta | None = None
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
@dataclass
|
|
39
|
+
class RedisNotification:
|
|
40
|
+
"""Redis pub/sub configuration for event notifications."""
|
|
41
|
+
|
|
42
|
+
# Redis server URL (e.g., "redis://localhost:6379")
|
|
43
|
+
redis_url: str
|
|
44
|
+
# Redis channel name for pub/sub notifications
|
|
45
|
+
redis_channel: str
|
|
46
|
+
|
|
47
|
+
|
|
38
48
|
class AmazonS3(op.SourceSpec):
|
|
39
49
|
"""Import data from an Amazon S3 bucket. Supports optional prefix and file filtering by glob patterns."""
|
|
40
50
|
|
|
@@ -46,6 +56,7 @@ class AmazonS3(op.SourceSpec):
|
|
|
46
56
|
included_patterns: list[str] | None = None
|
|
47
57
|
excluded_patterns: list[str] | None = None
|
|
48
58
|
sqs_queue_url: str | None = None
|
|
59
|
+
redis: RedisNotification | None = None
|
|
49
60
|
|
|
50
61
|
|
|
51
62
|
class AzureBlob(op.SourceSpec):
|
cocoindex/typing.py
CHANGED
|
@@ -475,16 +475,16 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
|
|
478
|
-
def encode_enriched_type_info(
|
|
478
|
+
def encode_enriched_type_info(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
|
|
479
479
|
"""
|
|
480
|
-
Encode an
|
|
480
|
+
Encode an `AnalyzedTypeInfo` to a CocoIndex engine's `EnrichedValueType` representation
|
|
481
481
|
"""
|
|
482
|
-
encoded: dict[str, Any] = {"type": _encode_type(
|
|
482
|
+
encoded: dict[str, Any] = {"type": _encode_type(type_info)}
|
|
483
483
|
|
|
484
|
-
if
|
|
485
|
-
encoded["attrs"] =
|
|
484
|
+
if type_info.attrs is not None:
|
|
485
|
+
encoded["attrs"] = type_info.attrs
|
|
486
486
|
|
|
487
|
-
if
|
|
487
|
+
if type_info.nullable:
|
|
488
488
|
encoded["nullable"] = True
|
|
489
489
|
|
|
490
490
|
return encoded
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cocoindex
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.22
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
6
6
|
Classifier: Operating System :: OS Independent
|
|
@@ -175,6 +175,13 @@ pip install -U cocoindex
|
|
|
175
175
|
|
|
176
176
|
2. [Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one. CocoIndex uses it for incremental processing.
|
|
177
177
|
|
|
178
|
+
3. (Optional) Install Claude Code skill for enhanced development experience. Run these commands in [Claude Code](https://claude.com/claude-code):
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
/plugin marketplace add cocoindex-io/cocoindex-claude
|
|
182
|
+
/plugin install cocoindex-skills@cocoindex
|
|
183
|
+
```
|
|
184
|
+
|
|
178
185
|
## Define data flow
|
|
179
186
|
|
|
180
187
|
Follow [Quick Start Guide](https://cocoindex.io/docs/getting_started/quickstart) to define your first indexing flow. An example flow looks like:
|
|
@@ -244,8 +251,10 @@ It defines an index flow like this:
|
|
|
244
251
|
| [Face Recognition](examples/face_recognition) | Recognize faces in images and build embedding index |
|
|
245
252
|
| [Paper Metadata](examples/paper_metadata) | Index papers in PDF files, and build metadata tables for each paper |
|
|
246
253
|
| [Multi Format Indexing](examples/multi_format_indexing) | Build visual document index from PDFs and images with ColPali for semantic search |
|
|
254
|
+
| [Custom Source HackerNews](examples/custom_source_hn) | Index HackerNews threads and comments, using *CocoIndex Custom Source* |
|
|
247
255
|
| [Custom Output Files](examples/custom_output_files) | Convert markdown files to HTML files and save them to a local directory, using *CocoIndex Custom Targets* |
|
|
248
256
|
| [Patient intake form extraction](examples/patient_intake_extraction) | Use LLM to extract structured data from patient intake forms with different formats |
|
|
257
|
+
| [HackerNews Trending Topics](examples/hn_trending_topics) | Extract trending topics from HackerNews threads and comments, using *CocoIndex Custom Source* and LLM |
|
|
249
258
|
|
|
250
259
|
More coming and stay tuned 👀!
|
|
251
260
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
cocoindex-0.2.
|
|
2
|
-
cocoindex-0.2.
|
|
3
|
-
cocoindex-0.2.
|
|
4
|
-
cocoindex-0.2.
|
|
1
|
+
cocoindex-0.2.22.dist-info/METADATA,sha256=degyFdBfLDpDuE2Pdt1YBAVNPfZLxnbxKATI6Y2Uc4Q,14194
|
|
2
|
+
cocoindex-0.2.22.dist-info/WHEEL,sha256=T94Vf-8hBLuJYmQaKIvspCD375-5CHbUeNmaNVtwQwY,108
|
|
3
|
+
cocoindex-0.2.22.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
|
|
4
|
+
cocoindex-0.2.22.dist-info/licenses/THIRD_PARTY_NOTICES.html,sha256=C9PJS4zDVauZTLWv9opaR-JU2pYaLvBBoreITkUhitY,750832
|
|
5
5
|
cocoindex/__init__.py,sha256=6qZWVkK4WZ01BIAg3CPh_bRRdA6Clk4d4Q6OnZ2jFa4,2630
|
|
6
|
-
cocoindex/_engine.abi3.so,sha256=
|
|
6
|
+
cocoindex/_engine.abi3.so,sha256=hnk2s_WEqsHS7ueLDmUfdMjq2yP2pPHFZr6bX66BkpY,68691120
|
|
7
7
|
cocoindex/auth_registry.py,sha256=g-uLDWLYW5NMbYe7q4Y-sU5dSyrlJXBEciyWtAiP9KE,1340
|
|
8
|
-
cocoindex/cli.py,sha256=
|
|
8
|
+
cocoindex/cli.py,sha256=k7bl8RTUZoNNxTlQMr-Y3-9-rTNt8z1v7rJWqsajYC8,24792
|
|
9
9
|
cocoindex/engine_object.py,sha256=5YTuWoR3WILhyt3PW-d9es3MAas_xD6tZZqvipN-sjg,10050
|
|
10
|
-
cocoindex/engine_value.py,sha256=
|
|
11
|
-
cocoindex/flow.py,sha256=
|
|
10
|
+
cocoindex/engine_value.py,sha256=WJw8ymYAqF2CCyg9SBiQzx8z9bl7XNVuD6ffgYvRRWQ,23277
|
|
11
|
+
cocoindex/flow.py,sha256=xDz3rOo4RhbboknvC-KnbWq8RBykEO0YsjGSBfXqIEg,40076
|
|
12
12
|
cocoindex/functions/__init__.py,sha256=V2IF4h-Cqq4OD_GN3Oqdry-FArORyRCKmqJ7g5UlJr8,1021
|
|
13
13
|
cocoindex/functions/_engine_builtin_specs.py,sha256=WpCGrjUfJBa8xZP5JiEmA8kLu7fp9Rcs7ynpuJmvSGg,1786
|
|
14
14
|
cocoindex/functions/colpali.py,sha256=oACyG3qG2dquyCJ6bT7FkMkua5rXDLSxnOHcgoz9waU,8865
|
|
@@ -16,14 +16,14 @@ cocoindex/functions/sbert.py,sha256=1z5OJT-blXT6tVN5vEvEzvYAzOnzs1RCnu1UbCUP6wM,
|
|
|
16
16
|
cocoindex/index.py,sha256=tz5ilvmOp0BtroGehCQDqWK_pIX9m6ghkhcxsDVU8WE,982
|
|
17
17
|
cocoindex/lib.py,sha256=spfdU4IbzdffHyGdrQPIw_qGo9aX0OAAboqsjj8bTiQ,2290
|
|
18
18
|
cocoindex/llm.py,sha256=8ZdJhOmhdb2xEcCxk6rDpnj6hlhCyFBmJdhCNMqAOP4,875
|
|
19
|
-
cocoindex/op.py,sha256=
|
|
19
|
+
cocoindex/op.py,sha256=TO-ETk3qXgnNS51NlWuLrOw_TfQ2mw83-_iswqULcQI,36095
|
|
20
20
|
cocoindex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
cocoindex/query_handler.py,sha256=X-SQT71LHiOOXn6-TJlQcGodJk-iT8p_1TcIMvRLBRI,1344
|
|
22
22
|
cocoindex/runtime.py,sha256=4NxcltaDZvA3RR3Pnt6gH_f99jcWSyMH_1Xi5BjbtwY,1342
|
|
23
23
|
cocoindex/setting.py,sha256=1Dx8ktjwf-8BiXrbsmfn5Mzudb2SQYqFdRnSNGVKaLk,4960
|
|
24
24
|
cocoindex/setup.py,sha256=7uIHKN4FOCuoidPXcKyGTrkqpkl9luL49-6UcnMxYzw,3068
|
|
25
25
|
cocoindex/sources/__init__.py,sha256=Yu9VHNaGlOEE3jpqfIseswsg25Le3HzwDr6XJAn22Ns,78
|
|
26
|
-
cocoindex/sources/_engine_builtin_specs.py,sha256=
|
|
26
|
+
cocoindex/sources/_engine_builtin_specs.py,sha256=MDsNP1y0vlUCGTAmA4jj2X8AMn1MVATbZzSi66ggvkA,3598
|
|
27
27
|
cocoindex/subprocess_exec.py,sha256=r1xO84uek4VP4I6i87JMwsH5xFm3vKW0ABvgn0jskt4,10088
|
|
28
28
|
cocoindex/targets/__init__.py,sha256=HQG7I4U0xQhHiYctiUvwEBLxT2727oHP3xwrqotjmhk,78
|
|
29
29
|
cocoindex/targets/_engine_builtin_specs.py,sha256=glXUN5bj11Jxky1VPvmGnWnMHXTQWEh08INcbldo3F4,3375
|
|
@@ -35,8 +35,8 @@ cocoindex/tests/test_optional_database.py,sha256=snAmkNa6wtOSaxoZE1HgjvL5v_ylitt
|
|
|
35
35
|
cocoindex/tests/test_transform_flow.py,sha256=G69w-n-vnCTo3r9hVIk2lJNAQEkGUA7PZfHsXna3oS0,6030
|
|
36
36
|
cocoindex/tests/test_typing.py,sha256=JoR-oMK-ZWjOGQi0pH5Etg5jp4oL_JSIreGBH247GCg,16291
|
|
37
37
|
cocoindex/tests/test_validation.py,sha256=X6AQzVs-hVKIXcrHMEMQnhfUE8at7iXQnPq8nHNhZ2Q,4543
|
|
38
|
-
cocoindex/typing.py,sha256=
|
|
38
|
+
cocoindex/typing.py,sha256=qQj5uM6XAKHzRJ2BIEs7X-xeOXVcM9p_xz5SVqPVvS8,23914
|
|
39
39
|
cocoindex/user_app_loader.py,sha256=bc3Af-gYRxJ9GpObtpjegZY855oQBCv5FGkrkWV2yGY,1873
|
|
40
40
|
cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
|
|
41
41
|
cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
|
|
42
|
-
cocoindex-0.2.
|
|
42
|
+
cocoindex-0.2.22.dist-info/RECORD,,
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
|
|
45
45
|
<h2>Overview of licenses:</h2>
|
|
46
46
|
<ul class="licenses-overview">
|
|
47
|
-
<li><a href="#Apache-2.0">Apache License 2.0</a> (
|
|
48
|
-
<li><a href="#MIT">MIT License</a> (
|
|
47
|
+
<li><a href="#Apache-2.0">Apache License 2.0</a> (422)</li>
|
|
48
|
+
<li><a href="#MIT">MIT License</a> (130)</li>
|
|
49
49
|
<li><a href="#Unicode-3.0">Unicode License v3</a> (19)</li>
|
|
50
|
+
<li><a href="#BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</a> (8)</li>
|
|
50
51
|
<li><a href="#ISC">ISC License</a> (8)</li>
|
|
51
|
-
<li><a href="#BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</a> (6)</li>
|
|
52
52
|
<li><a href="#Zlib">zlib License</a> (3)</li>
|
|
53
53
|
<li><a href="#CDLA-Permissive-2.0">Community Data License Agreement Permissive 2.0</a> (2)</li>
|
|
54
54
|
<li><a href="#BSD-2-Clause">BSD 2-Clause "Simplified" License</a> (1)</li>
|
|
@@ -901,6 +901,7 @@
|
|
|
901
901
|
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
|
902
902
|
<h4>Used by:</h4>
|
|
903
903
|
<ul class="license-used-by">
|
|
904
|
+
<li><a href=" https://github.com/tormol/encode_unicode ">encode_unicode 1.0.0</a></li>
|
|
904
905
|
<li><a href=" https://github.com/hsivonen/encoding_rs ">encoding_rs 0.8.35</a></li>
|
|
905
906
|
<li><a href=" https://github.com/lo48576/iri-string ">iri-string 0.7.8</a></li>
|
|
906
907
|
<li><a href=" https://github.com/pgvector/pgvector-rust ">pgvector 0.4.1</a></li>
|
|
@@ -2213,6 +2214,214 @@ Software.
|
|
|
2213
2214
|
limitations under the License.
|
|
2214
2215
|
|
|
2215
2216
|
</pre>
|
|
2217
|
+
</li>
|
|
2218
|
+
<li class="license">
|
|
2219
|
+
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
|
2220
|
+
<h4>Used by:</h4>
|
|
2221
|
+
<ul class="license-used-by">
|
|
2222
|
+
<li><a href=" https://github.com/Xuanwo/backon ">backon 1.5.2</a></li>
|
|
2223
|
+
</ul>
|
|
2224
|
+
<pre class="license-text"> Apache License
|
|
2225
|
+
Version 2.0, January 2004
|
|
2226
|
+
http://www.apache.org/licenses/
|
|
2227
|
+
|
|
2228
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
2229
|
+
|
|
2230
|
+
1. Definitions.
|
|
2231
|
+
|
|
2232
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
2233
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
2234
|
+
|
|
2235
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
2236
|
+
the copyright owner that is granting the License.
|
|
2237
|
+
|
|
2238
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
2239
|
+
other entities that control, are controlled by, or are under common
|
|
2240
|
+
control with that entity. For the purposes of this definition,
|
|
2241
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
2242
|
+
direction or management of such entity, whether by contract or
|
|
2243
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
2244
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
2245
|
+
|
|
2246
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
2247
|
+
exercising permissions granted by this License.
|
|
2248
|
+
|
|
2249
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
2250
|
+
including but not limited to software source code, documentation
|
|
2251
|
+
source, and configuration files.
|
|
2252
|
+
|
|
2253
|
+
"Object" form shall mean any form resulting from mechanical
|
|
2254
|
+
transformation or translation of a Source form, including but
|
|
2255
|
+
not limited to compiled object code, generated documentation,
|
|
2256
|
+
and conversions to other media types.
|
|
2257
|
+
|
|
2258
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
2259
|
+
Object form, made available under the License, as indicated by a
|
|
2260
|
+
copyright notice that is included in or attached to the work
|
|
2261
|
+
(an example is provided in the Appendix below).
|
|
2262
|
+
|
|
2263
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
2264
|
+
form, that is based on (or derived from) the Work and for which the
|
|
2265
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
2266
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
2267
|
+
of this License, Derivative Works shall not include works that remain
|
|
2268
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
2269
|
+
the Work and Derivative Works thereof.
|
|
2270
|
+
|
|
2271
|
+
"Contribution" shall mean any work of authorship, including
|
|
2272
|
+
the original version of the Work and any modifications or additions
|
|
2273
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
2274
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
2275
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
2276
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
2277
|
+
means any form of electronic, verbal, or written communication sent
|
|
2278
|
+
to the Licensor or its representatives, including but not limited to
|
|
2279
|
+
communication on electronic mailing lists, source code control systems,
|
|
2280
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
2281
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
2282
|
+
excluding communication that is conspicuously marked or otherwise
|
|
2283
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
2284
|
+
|
|
2285
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
2286
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
2287
|
+
subsequently incorporated within the Work.
|
|
2288
|
+
|
|
2289
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
2290
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
2291
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
2292
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
2293
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
2294
|
+
Work and such Derivative Works in Source or Object form.
|
|
2295
|
+
|
|
2296
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
2297
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
2298
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
2299
|
+
(except as stated in this section) patent license to make, have made,
|
|
2300
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
2301
|
+
where such license applies only to those patent claims licensable
|
|
2302
|
+
by such Contributor that are necessarily infringed by their
|
|
2303
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
2304
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
2305
|
+
institute patent litigation against any entity (including a
|
|
2306
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
2307
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
2308
|
+
or contributory patent infringement, then any patent licenses
|
|
2309
|
+
granted to You under this License for that Work shall terminate
|
|
2310
|
+
as of the date such litigation is filed.
|
|
2311
|
+
|
|
2312
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
2313
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
2314
|
+
modifications, and in Source or Object form, provided that You
|
|
2315
|
+
meet the following conditions:
|
|
2316
|
+
|
|
2317
|
+
(a) You must give any other recipients of the Work or
|
|
2318
|
+
Derivative Works a copy of this License; and
|
|
2319
|
+
|
|
2320
|
+
(b) You must cause any modified files to carry prominent notices
|
|
2321
|
+
stating that You changed the files; and
|
|
2322
|
+
|
|
2323
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
2324
|
+
that You distribute, all copyright, patent, trademark, and
|
|
2325
|
+
attribution notices from the Source form of the Work,
|
|
2326
|
+
excluding those notices that do not pertain to any part of
|
|
2327
|
+
the Derivative Works; and
|
|
2328
|
+
|
|
2329
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
2330
|
+
distribution, then any Derivative Works that You distribute must
|
|
2331
|
+
include a readable copy of the attribution notices contained
|
|
2332
|
+
within such NOTICE file, excluding those notices that do not
|
|
2333
|
+
pertain to any part of the Derivative Works, in at least one
|
|
2334
|
+
of the following places: within a NOTICE text file distributed
|
|
2335
|
+
as part of the Derivative Works; within the Source form or
|
|
2336
|
+
documentation, if provided along with the Derivative Works; or,
|
|
2337
|
+
within a display generated by the Derivative Works, if and
|
|
2338
|
+
wherever such third-party notices normally appear. The contents
|
|
2339
|
+
of the NOTICE file are for informational purposes only and
|
|
2340
|
+
do not modify the License. You may add Your own attribution
|
|
2341
|
+
notices within Derivative Works that You distribute, alongside
|
|
2342
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
2343
|
+
that such additional attribution notices cannot be construed
|
|
2344
|
+
as modifying the License.
|
|
2345
|
+
|
|
2346
|
+
You may add Your own copyright statement to Your modifications and
|
|
2347
|
+
may provide additional or different license terms and conditions
|
|
2348
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
2349
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
2350
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
2351
|
+
the conditions stated in this License.
|
|
2352
|
+
|
|
2353
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
2354
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
2355
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
2356
|
+
this License, without any additional terms or conditions.
|
|
2357
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
2358
|
+
the terms of any separate license agreement you may have executed
|
|
2359
|
+
with Licensor regarding such Contributions.
|
|
2360
|
+
|
|
2361
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
2362
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
2363
|
+
except as required for reasonable and customary use in describing the
|
|
2364
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
2365
|
+
|
|
2366
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
2367
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
2368
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
2369
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
2370
|
+
implied, including, without limitation, any warranties or conditions
|
|
2371
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
2372
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
2373
|
+
appropriateness of using or redistributing the Work and assume any
|
|
2374
|
+
risks associated with Your exercise of permissions under this License.
|
|
2375
|
+
|
|
2376
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
2377
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
2378
|
+
unless required by applicable law (such as deliberate and grossly
|
|
2379
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
2380
|
+
liable to You for damages, including any direct, indirect, special,
|
|
2381
|
+
incidental, or consequential damages of any character arising as a
|
|
2382
|
+
result of this License or out of the use or inability to use the
|
|
2383
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
2384
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
2385
|
+
other commercial damages or losses), even if such Contributor
|
|
2386
|
+
has been advised of the possibility of such damages.
|
|
2387
|
+
|
|
2388
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
2389
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
2390
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
2391
|
+
or other liability obligations and/or rights consistent with this
|
|
2392
|
+
License. However, in accepting such obligations, You may act only
|
|
2393
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
2394
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
2395
|
+
defend, and hold each Contributor harmless for any liability
|
|
2396
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
2397
|
+
of your accepting any such warranty or additional liability.
|
|
2398
|
+
|
|
2399
|
+
END OF TERMS AND CONDITIONS
|
|
2400
|
+
|
|
2401
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
2402
|
+
|
|
2403
|
+
To apply the Apache License to your work, attach the following
|
|
2404
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
2405
|
+
replaced with your own identifying information. (Don't include
|
|
2406
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
2407
|
+
comment syntax for the file format. We also recommend that a
|
|
2408
|
+
file or class name and description of purpose be included on the
|
|
2409
|
+
same "printed page" as the copyright notice for easier
|
|
2410
|
+
identification within third-party archives.
|
|
2411
|
+
|
|
2412
|
+
Copyright 2021 Datafuse Labs
|
|
2413
|
+
|
|
2414
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
2415
|
+
you may not use this file except in compliance with the License.
|
|
2416
|
+
You may obtain a copy of the License at
|
|
2417
|
+
|
|
2418
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
2419
|
+
|
|
2420
|
+
Unless required by applicable law or agreed to in writing, software
|
|
2421
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
2422
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2423
|
+
See the License for the specific language governing permissions and
|
|
2424
|
+
limitations under the License.</pre>
|
|
2216
2425
|
</li>
|
|
2217
2426
|
<li class="license">
|
|
2218
2427
|
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
|
@@ -2428,7 +2637,216 @@ Software.
|
|
|
2428
2637
|
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
|
2429
2638
|
<h4>Used by:</h4>
|
|
2430
2639
|
<ul class="license-used-by">
|
|
2431
|
-
<li><a href=" https://
|
|
2640
|
+
<li><a href=" https://github.com/daxpedda/web-time ">web-time 1.1.0</a></li>
|
|
2641
|
+
</ul>
|
|
2642
|
+
<pre class="license-text"> Apache License
|
|
2643
|
+
Version 2.0, January 2004
|
|
2644
|
+
http://www.apache.org/licenses/
|
|
2645
|
+
|
|
2646
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
2647
|
+
|
|
2648
|
+
1. Definitions.
|
|
2649
|
+
|
|
2650
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
2651
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
2652
|
+
|
|
2653
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
2654
|
+
the copyright owner that is granting the License.
|
|
2655
|
+
|
|
2656
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
2657
|
+
other entities that control, are controlled by, or are under common
|
|
2658
|
+
control with that entity. For the purposes of this definition,
|
|
2659
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
2660
|
+
direction or management of such entity, whether by contract or
|
|
2661
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
2662
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
2663
|
+
|
|
2664
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
2665
|
+
exercising permissions granted by this License.
|
|
2666
|
+
|
|
2667
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
2668
|
+
including but not limited to software source code, documentation
|
|
2669
|
+
source, and configuration files.
|
|
2670
|
+
|
|
2671
|
+
"Object" form shall mean any form resulting from mechanical
|
|
2672
|
+
transformation or translation of a Source form, including but
|
|
2673
|
+
not limited to compiled object code, generated documentation,
|
|
2674
|
+
and conversions to other media types.
|
|
2675
|
+
|
|
2676
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
2677
|
+
Object form, made available under the License, as indicated by a
|
|
2678
|
+
copyright notice that is included in or attached to the work
|
|
2679
|
+
(an example is provided in the Appendix below).
|
|
2680
|
+
|
|
2681
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
2682
|
+
form, that is based on (or derived from) the Work and for which the
|
|
2683
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
2684
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
2685
|
+
of this License, Derivative Works shall not include works that remain
|
|
2686
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
2687
|
+
the Work and Derivative Works thereof.
|
|
2688
|
+
|
|
2689
|
+
"Contribution" shall mean any work of authorship, including
|
|
2690
|
+
the original version of the Work and any modifications or additions
|
|
2691
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
2692
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
2693
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
2694
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
2695
|
+
means any form of electronic, verbal, or written communication sent
|
|
2696
|
+
to the Licensor or its representatives, including but not limited to
|
|
2697
|
+
communication on electronic mailing lists, source code control systems,
|
|
2698
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
2699
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
2700
|
+
excluding communication that is conspicuously marked or otherwise
|
|
2701
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
2702
|
+
|
|
2703
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
2704
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
2705
|
+
subsequently incorporated within the Work.
|
|
2706
|
+
|
|
2707
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
2708
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
2709
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
2710
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
2711
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
2712
|
+
Work and such Derivative Works in Source or Object form.
|
|
2713
|
+
|
|
2714
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
2715
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
2716
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
2717
|
+
(except as stated in this section) patent license to make, have made,
|
|
2718
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
2719
|
+
where such license applies only to those patent claims licensable
|
|
2720
|
+
by such Contributor that are necessarily infringed by their
|
|
2721
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
2722
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
2723
|
+
institute patent litigation against any entity (including a
|
|
2724
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
2725
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
2726
|
+
or contributory patent infringement, then any patent licenses
|
|
2727
|
+
granted to You under this License for that Work shall terminate
|
|
2728
|
+
as of the date such litigation is filed.
|
|
2729
|
+
|
|
2730
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
2731
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
2732
|
+
modifications, and in Source or Object form, provided that You
|
|
2733
|
+
meet the following conditions:
|
|
2734
|
+
|
|
2735
|
+
(a) You must give any other recipients of the Work or
|
|
2736
|
+
Derivative Works a copy of this License; and
|
|
2737
|
+
|
|
2738
|
+
(b) You must cause any modified files to carry prominent notices
|
|
2739
|
+
stating that You changed the files; and
|
|
2740
|
+
|
|
2741
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
2742
|
+
that You distribute, all copyright, patent, trademark, and
|
|
2743
|
+
attribution notices from the Source form of the Work,
|
|
2744
|
+
excluding those notices that do not pertain to any part of
|
|
2745
|
+
the Derivative Works; and
|
|
2746
|
+
|
|
2747
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
2748
|
+
distribution, then any Derivative Works that You distribute must
|
|
2749
|
+
include a readable copy of the attribution notices contained
|
|
2750
|
+
within such NOTICE file, excluding those notices that do not
|
|
2751
|
+
pertain to any part of the Derivative Works, in at least one
|
|
2752
|
+
of the following places: within a NOTICE text file distributed
|
|
2753
|
+
as part of the Derivative Works; within the Source form or
|
|
2754
|
+
documentation, if provided along with the Derivative Works; or,
|
|
2755
|
+
within a display generated by the Derivative Works, if and
|
|
2756
|
+
wherever such third-party notices normally appear. The contents
|
|
2757
|
+
of the NOTICE file are for informational purposes only and
|
|
2758
|
+
do not modify the License. You may add Your own attribution
|
|
2759
|
+
notices within Derivative Works that You distribute, alongside
|
|
2760
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
2761
|
+
that such additional attribution notices cannot be construed
|
|
2762
|
+
as modifying the License.
|
|
2763
|
+
|
|
2764
|
+
You may add Your own copyright statement to Your modifications and
|
|
2765
|
+
may provide additional or different license terms and conditions
|
|
2766
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
2767
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
2768
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
2769
|
+
the conditions stated in this License.
|
|
2770
|
+
|
|
2771
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
2772
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
2773
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
2774
|
+
this License, without any additional terms or conditions.
|
|
2775
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
2776
|
+
the terms of any separate license agreement you may have executed
|
|
2777
|
+
with Licensor regarding such Contributions.
|
|
2778
|
+
|
|
2779
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
2780
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
2781
|
+
except as required for reasonable and customary use in describing the
|
|
2782
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
2783
|
+
|
|
2784
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
2785
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
2786
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
2787
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
2788
|
+
implied, including, without limitation, any warranties or conditions
|
|
2789
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
2790
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
2791
|
+
appropriateness of using or redistributing the Work and assume any
|
|
2792
|
+
risks associated with Your exercise of permissions under this License.
|
|
2793
|
+
|
|
2794
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
2795
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
2796
|
+
unless required by applicable law (such as deliberate and grossly
|
|
2797
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
2798
|
+
liable to You for damages, including any direct, indirect, special,
|
|
2799
|
+
incidental, or consequential damages of any character arising as a
|
|
2800
|
+
result of this License or out of the use or inability to use the
|
|
2801
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
2802
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
2803
|
+
other commercial damages or losses), even if such Contributor
|
|
2804
|
+
has been advised of the possibility of such damages.
|
|
2805
|
+
|
|
2806
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
2807
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
2808
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
2809
|
+
or other liability obligations and/or rights consistent with this
|
|
2810
|
+
License. However, in accepting such obligations, You may act only
|
|
2811
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
2812
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
2813
|
+
defend, and hold each Contributor harmless for any liability
|
|
2814
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
2815
|
+
of your accepting any such warranty or additional liability.
|
|
2816
|
+
|
|
2817
|
+
END OF TERMS AND CONDITIONS
|
|
2818
|
+
|
|
2819
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
2820
|
+
|
|
2821
|
+
To apply the Apache License to your work, attach the following
|
|
2822
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
2823
|
+
replaced with your own identifying information. (Don't include
|
|
2824
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
2825
|
+
comment syntax for the file format. We also recommend that a
|
|
2826
|
+
file or class name and description of purpose be included on the
|
|
2827
|
+
same "printed page" as the copyright notice for easier
|
|
2828
|
+
identification within third-party archives.
|
|
2829
|
+
|
|
2830
|
+
Copyright 2023 dAxpeDDa
|
|
2831
|
+
|
|
2832
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
2833
|
+
you may not use this file except in compliance with the License.
|
|
2834
|
+
You may obtain a copy of the License at
|
|
2835
|
+
|
|
2836
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
2837
|
+
|
|
2838
|
+
Unless required by applicable law or agreed to in writing, software
|
|
2839
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
2840
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2841
|
+
See the License for the specific language governing permissions and
|
|
2842
|
+
limitations under the License.
|
|
2843
|
+
</pre>
|
|
2844
|
+
</li>
|
|
2845
|
+
<li class="license">
|
|
2846
|
+
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
|
2847
|
+
<h4>Used by:</h4>
|
|
2848
|
+
<ul class="license-used-by">
|
|
2849
|
+
<li><a href=" https://crates.io/crates/cocoindex ">cocoindex 0.2.22</a></li>
|
|
2432
2850
|
<li><a href=" https://github.com/awesomized/crc-fast-rust ">crc-fast 1.3.0</a></li>
|
|
2433
2851
|
<li><a href=" https://github.com/qdrant/rust-client ">qdrant-client 1.15.0</a></li>
|
|
2434
2852
|
</ul>
|
|
@@ -6854,6 +7272,7 @@ limitations under the License.
|
|
|
6854
7272
|
<ul class="license-used-by">
|
|
6855
7273
|
<li><a href=" https://github.com/Florob/RustyXML ">RustyXML 0.3.0</a></li>
|
|
6856
7274
|
<li><a href=" https://github.com/gimli-rs/addr2line ">addr2line 0.24.2</a></li>
|
|
7275
|
+
<li><a href=" https://github.com/vorner/arc-swap ">arc-swap 1.7.1</a></li>
|
|
6857
7276
|
<li><a href=" https://github.com/smol-rs/async-channel ">async-channel 1.9.0</a></li>
|
|
6858
7277
|
<li><a href=" https://github.com/smol-rs/async-channel ">async-channel 2.5.0</a></li>
|
|
6859
7278
|
<li><a href=" https://github.com/smol-rs/async-io ">async-io 2.5.0</a></li>
|
|
@@ -6929,6 +7348,7 @@ limitations under the License.
|
|
|
6929
7348
|
<li><a href=" https://github.com/bluss/matrixmultiply/ ">matrixmultiply 0.3.10</a></li>
|
|
6930
7349
|
<li><a href=" https://github.com/hyperium/mime ">mime 0.3.17</a></li>
|
|
6931
7350
|
<li><a href=" https://github.com/rust-ndarray/ndarray ">ndarray 0.16.1</a></li>
|
|
7351
|
+
<li><a href=" https://github.com/rust-num/num-bigint ">num-bigint 0.4.6</a></li>
|
|
6932
7352
|
<li><a href=" https://github.com/rust-num/num-complex ">num-complex 0.4.6</a></li>
|
|
6933
7353
|
<li><a href=" https://github.com/rust-num/num-integer ">num-integer 0.1.46</a></li>
|
|
6934
7354
|
<li><a href=" https://github.com/rust-num/num-traits ">num-traits 0.2.19</a></li>
|
|
@@ -6988,6 +7408,7 @@ limitations under the License.
|
|
|
6988
7408
|
<li><a href=" https://github.com/unicode-rs/unicode-normalization ">unicode-normalization 0.1.24</a></li>
|
|
6989
7409
|
<li><a href=" https://github.com/unicode-rs/unicode-properties ">unicode-properties 0.1.3</a></li>
|
|
6990
7410
|
<li><a href=" https://github.com/unicode-rs/unicode-segmentation ">unicode-segmentation 1.12.0</a></li>
|
|
7411
|
+
<li><a href=" https://github.com/unicode-rs/unicode-width ">unicode-width 0.2.2</a></li>
|
|
6991
7412
|
<li><a href=" https://github.com/unicode-rs/unicode-xid ">unicode-xid 0.2.6</a></li>
|
|
6992
7413
|
<li><a href=" https://github.com/servo/rust-url ">url 2.5.4</a></li>
|
|
6993
7414
|
<li><a href=" https://github.com/uuid-rs/uuid ">uuid 1.18.0</a></li>
|
|
@@ -10356,6 +10777,66 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
10356
10777
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
10357
10778
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
10358
10779
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10780
|
+
</pre>
|
|
10781
|
+
</li>
|
|
10782
|
+
<li class="license">
|
|
10783
|
+
<h3 id="BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</h3>
|
|
10784
|
+
<h4>Used by:</h4>
|
|
10785
|
+
<ul class="license-used-by">
|
|
10786
|
+
<li><a href=" https://github.com/redis-rs/redis-rs ">redis 0.31.0</a></li>
|
|
10787
|
+
</ul>
|
|
10788
|
+
<pre class="license-text">Copyright (c) 2022 by redis-rs contributors
|
|
10789
|
+
|
|
10790
|
+
Redis cluster code in parts copyright (c) 2018 by Atsushi Koge.
|
|
10791
|
+
|
|
10792
|
+
Some rights reserved.
|
|
10793
|
+
|
|
10794
|
+
Redistribution and use in source and binary forms, with or without
|
|
10795
|
+
modification, are permitted provided that the following conditions are
|
|
10796
|
+
met:
|
|
10797
|
+
|
|
10798
|
+
* Redistributions of source code must retain the above copyright
|
|
10799
|
+
notice, this list of conditions and the following disclaimer.
|
|
10800
|
+
|
|
10801
|
+
* Redistributions in binary form must reproduce the above
|
|
10802
|
+
copyright notice, this list of conditions and the following
|
|
10803
|
+
disclaimer in the documentation and/or other materials provided
|
|
10804
|
+
with the distribution.
|
|
10805
|
+
|
|
10806
|
+
* The names of the contributors may not be used to endorse or
|
|
10807
|
+
promote products derived from this software without specific
|
|
10808
|
+
prior written permission.
|
|
10809
|
+
|
|
10810
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
10811
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
10812
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
10813
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
10814
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
10815
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
10816
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
10817
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
10818
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
10819
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
10820
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10821
|
+
</pre>
|
|
10822
|
+
</li>
|
|
10823
|
+
<li class="license">
|
|
10824
|
+
<h3 id="BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</h3>
|
|
10825
|
+
<h4>Used by:</h4>
|
|
10826
|
+
<ul class="license-used-by">
|
|
10827
|
+
<li><a href=" https://github.com/mitsuhiko/sha1-smol ">sha1_smol 1.0.1</a></li>
|
|
10828
|
+
</ul>
|
|
10829
|
+
<pre class="license-text">Copyright (c) <year> <owner>.
|
|
10830
|
+
|
|
10831
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
10832
|
+
|
|
10833
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
10834
|
+
|
|
10835
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
10836
|
+
|
|
10837
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10838
|
+
|
|
10839
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10359
10840
|
</pre>
|
|
10360
10841
|
</li>
|
|
10361
10842
|
<li class="license">
|
|
@@ -11919,6 +12400,7 @@ SOFTWARE.
|
|
|
11919
12400
|
<li><a href=" https://github.com/Byron/google-apis-rs ">google-apis-common 7.0.0</a></li>
|
|
11920
12401
|
<li><a href=" https://github.com/neo4j-labs/neo4rs ">neo4rs-macros 0.3.0</a></li>
|
|
11921
12402
|
<li><a href=" https://github.com/neo4j-labs/neo4rs ">neo4rs 0.8.0</a></li>
|
|
12403
|
+
<li><a href=" https://github.com/ogham/rust-number-prefix ">number_prefix 0.4.0</a></li>
|
|
11922
12404
|
<li><a href=" https://github.com/chronotope/chrono-tz ">parse-zoneinfo 0.3.1</a></li>
|
|
11923
12405
|
<li><a href=" https://gitlab.redox-os.org/redox-os/seahash ">seahash 4.1.0</a></li>
|
|
11924
12406
|
<li><a href=" https://github.com/tree-sitter/tree-sitter-c-sharp ">tree-sitter-c-sharp 0.23.1</a></li>
|
|
@@ -12182,6 +12664,67 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
12182
12664
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12183
12665
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
12184
12666
|
SOFTWARE.
|
|
12667
|
+
</pre>
|
|
12668
|
+
</li>
|
|
12669
|
+
<li class="license">
|
|
12670
|
+
<h3 id="MIT">MIT License</h3>
|
|
12671
|
+
<h4>Used by:</h4>
|
|
12672
|
+
<ul class="license-used-by">
|
|
12673
|
+
<li><a href=" https://github.com/Marwes/combine ">combine 4.6.7</a></li>
|
|
12674
|
+
</ul>
|
|
12675
|
+
<pre class="license-text">The MIT License (MIT)
|
|
12676
|
+
|
|
12677
|
+
Copyright (c) 2015 Markus Westerlind
|
|
12678
|
+
|
|
12679
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12680
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12681
|
+
in the Software without restriction, including without limitation the rights
|
|
12682
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12683
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12684
|
+
furnished to do so, subject to the following conditions:
|
|
12685
|
+
|
|
12686
|
+
The above copyright notice and this permission notice shall be included in
|
|
12687
|
+
all copies or substantial portions of the Software.
|
|
12688
|
+
|
|
12689
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12690
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12691
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
12692
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
12693
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12694
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
12695
|
+
THE SOFTWARE.
|
|
12696
|
+
|
|
12697
|
+
</pre>
|
|
12698
|
+
</li>
|
|
12699
|
+
<li class="license">
|
|
12700
|
+
<h3 id="MIT">MIT License</h3>
|
|
12701
|
+
<h4>Used by:</h4>
|
|
12702
|
+
<ul class="license-used-by">
|
|
12703
|
+
<li><a href=" https://github.com/console-rs/console ">console 0.15.11</a></li>
|
|
12704
|
+
<li><a href=" https://github.com/console-rs/indicatif ">indicatif 0.17.11</a></li>
|
|
12705
|
+
</ul>
|
|
12706
|
+
<pre class="license-text">The MIT License (MIT)
|
|
12707
|
+
|
|
12708
|
+
Copyright (c) 2017 Armin Ronacher <armin.ronacher@active-4.com>
|
|
12709
|
+
|
|
12710
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12711
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12712
|
+
in the Software without restriction, including without limitation the rights
|
|
12713
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12714
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12715
|
+
furnished to do so, subject to the following conditions:
|
|
12716
|
+
|
|
12717
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12718
|
+
copies or substantial portions of the Software.
|
|
12719
|
+
|
|
12720
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12721
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12722
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
12723
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
12724
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12725
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
12726
|
+
SOFTWARE.
|
|
12727
|
+
|
|
12185
12728
|
</pre>
|
|
12186
12729
|
</li>
|
|
12187
12730
|
<li class="license">
|
|
File without changes
|
|
File without changes
|