arize 8.0.0a22__tar.gz → 8.0.0b0__tar.gz
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.
- arize-8.0.0b0/LICENSE +176 -0
- arize-8.0.0b0/NOTICE +13 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/PKG-INFO +13 -6
- {arize-8.0.0a22 → arize-8.0.0b0}/README.md +3 -3
- {arize-8.0.0a22 → arize-8.0.0b0}/pyproject.toml +47 -36
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/__init__.py +28 -19
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_exporter/client.py +56 -37
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_exporter/parsers/tracing_data_parser.py +41 -30
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_exporter/validation.py +3 -3
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_flight/client.py +207 -76
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/__init__.py +30 -6
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/api/__init__.py +1 -0
- arize-8.0.0b0/src/arize/_generated/api_client/api/datasets_api.py +2170 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/api/experiments_api.py +167 -131
- arize-8.0.0a22/src/arize/_generated/api_client/api/datasets_api.py → arize-8.0.0b0/src/arize/_generated/api_client/api/projects_api.py +216 -515
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/api_client.py +2 -2
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/configuration.py +42 -34
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/exceptions.py +2 -2
- arize-8.0.0b0/src/arize/_generated/api_client/models/__init__.py +37 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset.py +10 -10
- arize-8.0.0b0/src/arize/_generated/api_client/models/dataset_example.py +111 -0
- arize-8.0.0b0/src/arize/_generated/api_client/models/dataset_example_update.py +100 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset_version.py +13 -13
- arize-8.0.0b0/src/arize/_generated/api_client/models/datasets_create_request.py +104 -0
- arize-8.0.0a22/src/arize/_generated/api_client/models/datasets_list_examples200_response.py → arize-8.0.0b0/src/arize/_generated/api_client/models/datasets_examples_insert_request.py +17 -9
- arize-8.0.0b0/src/arize/_generated/api_client/models/datasets_examples_list200_response.py +106 -0
- arize-8.0.0b0/src/arize/_generated/api_client/models/datasets_examples_update_request.py +102 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_list200_response.py +10 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiment.py +14 -16
- arize-8.0.0b0/src/arize/_generated/api_client/models/experiment_run.py +108 -0
- arize-8.0.0b0/src/arize/_generated/api_client/models/experiment_run_create.py +102 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_create_request.py +16 -10
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_list200_response.py +10 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_runs_list200_response.py +19 -5
- arize-8.0.0a22/src/arize/_generated/api_client/models/error.py → arize-8.0.0b0/src/arize/_generated/api_client/models/pagination_metadata.py +13 -11
- arize-8.0.0b0/src/arize/_generated/api_client/models/primitive_value.py +172 -0
- arize-8.0.0b0/src/arize/_generated/api_client/models/problem.py +100 -0
- arize-8.0.0b0/src/arize/_generated/api_client/models/project.py +99 -0
- arize-8.0.0a22/src/arize/_generated/api_client/models/datasets_create_request.py → arize-8.0.0b0/src/arize/_generated/api_client/models/projects_create_request.py +11 -13
- arize-8.0.0b0/src/arize/_generated/api_client/models/projects_list200_response.py +106 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/rest.py +2 -2
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset.py +4 -2
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_dataset_example.py +56 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_dataset_example_update.py +52 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset_version.py +7 -2
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_api.py +27 -13
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_create_request.py +8 -4
- arize-8.0.0a22/src/arize/_generated/api_client/test/test_datasets_list_examples200_response.py → arize-8.0.0b0/src/arize/_generated/api_client/test/test_datasets_examples_insert_request.py +19 -15
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_datasets_examples_list200_response.py +66 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_datasets_examples_update_request.py +61 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_list200_response.py +9 -3
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiment.py +2 -4
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_experiment_run.py +56 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_experiment_run_create.py +54 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_api.py +6 -6
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_create_request.py +9 -6
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_list200_response.py +9 -5
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_runs_list200_response.py +15 -5
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_pagination_metadata.py +53 -0
- arize-8.0.0a22/src/arize/_generated/api_client/test/test_error.py → arize-8.0.0b0/src/arize/_generated/api_client/test/test_primitive_value.py +13 -14
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_problem.py +57 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_project.py +58 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_projects_api.py +59 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_projects_create_request.py +54 -0
- arize-8.0.0b0/src/arize/_generated/api_client/test/test_projects_list200_response.py +70 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client_README.md +43 -29
- arize-8.0.0b0/src/arize/_generated/protocol/flight/flight_pb2.py +400 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_lazy.py +27 -19
- arize-8.0.0b0/src/arize/client.py +342 -0
- arize-8.0.0b0/src/arize/config.py +471 -0
- arize-8.0.0b0/src/arize/constants/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/constants/config.py +11 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/constants/ml.py +6 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/constants/openinference.py +2 -0
- arize-8.0.0b0/src/arize/constants/pyarrow.py +3 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/constants/spans.py +3 -1
- arize-8.0.0b0/src/arize/datasets/__init__.py +1 -0
- arize-8.0.0b0/src/arize/datasets/client.py +472 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/datasets/errors.py +32 -2
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/datasets/validation.py +18 -8
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/__init__.py +2 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/auto_generator.py +23 -19
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/base_generators.py +89 -36
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/constants.py +2 -0
- arize-8.0.0b0/src/arize/embeddings/cv_generators.py +50 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/errors.py +27 -5
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/nlp_generators.py +43 -18
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/embeddings/tabular_generators.py +46 -31
- arize-8.0.0b0/src/arize/embeddings/usecases.py +36 -0
- arize-8.0.0b0/src/arize/exceptions/__init__.py +1 -0
- arize-8.0.0b0/src/arize/exceptions/auth.py +23 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/exceptions/base.py +29 -4
- arize-8.0.0b0/src/arize/exceptions/models.py +41 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/exceptions/parameters.py +31 -0
- arize-8.0.0b0/src/arize/exceptions/spaces.py +21 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/exceptions/types.py +86 -7
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/exceptions/values.py +220 -20
- arize-8.0.0b0/src/arize/experiments/__init__.py +13 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/client.py +394 -285
- arize-8.0.0b0/src/arize/experiments/evaluators/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/evaluators/base.py +74 -41
- arize-8.0.0b0/src/arize/experiments/evaluators/exceptions.py +13 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/evaluators/executors.py +121 -73
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/evaluators/rate_limiters.py +106 -57
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/evaluators/types.py +34 -7
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/evaluators/utils.py +65 -27
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/functions.py +103 -101
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/tracing.py +52 -44
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/experiments/types.py +56 -31
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/logging.py +54 -22
- arize-8.0.0b0/src/arize/ml/__init__.py +1 -0
- arize-8.0.0b0/src/arize/ml/batch_validation/__init__.py +1 -0
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/batch_validation/errors.py +545 -67
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/batch_validation/validator.py +344 -303
- arize-8.0.0b0/src/arize/ml/bounded_executor.py +47 -0
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/casting.py +118 -108
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/client.py +339 -118
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/proto.py +97 -42
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/stream_validation.py +43 -15
- arize-8.0.0b0/src/arize/ml/surrogate_explainer/__init__.py +1 -0
- {arize-8.0.0a22/src/arize/models → arize-8.0.0b0/src/arize/ml}/surrogate_explainer/mimic.py +25 -10
- {arize-8.0.0a22/src/arize → arize-8.0.0b0/src/arize/ml}/types.py +355 -354
- arize-8.0.0b0/src/arize/pre_releases.py +44 -0
- arize-8.0.0b0/src/arize/projects/__init__.py +1 -0
- arize-8.0.0b0/src/arize/projects/client.py +134 -0
- arize-8.0.0b0/src/arize/regions.py +40 -0
- arize-8.0.0b0/src/arize/spans/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/client.py +204 -175
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/columns.py +13 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/conversion.py +60 -37
- arize-8.0.0b0/src/arize/spans/validation/__init__.py +1 -0
- arize-8.0.0b0/src/arize/spans/validation/annotations/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/annotations/annotations_validation.py +6 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/annotations/dataframe_form_validation.py +13 -11
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/annotations/value_validation.py +35 -11
- arize-8.0.0b0/src/arize/spans/validation/common/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/common/argument_validation.py +33 -8
- arize-8.0.0b0/src/arize/spans/validation/common/dataframe_form_validation.py +71 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/common/errors.py +211 -11
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/common/value_validation.py +81 -14
- arize-8.0.0b0/src/arize/spans/validation/evals/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/evals/dataframe_form_validation.py +28 -8
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/evals/evals_validation.py +34 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/evals/value_validation.py +26 -3
- arize-8.0.0b0/src/arize/spans/validation/metadata/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/metadata/argument_validation.py +14 -5
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/metadata/dataframe_form_validation.py +26 -10
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/metadata/value_validation.py +24 -10
- arize-8.0.0b0/src/arize/spans/validation/spans/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/spans/dataframe_form_validation.py +35 -14
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/spans/spans_validation.py +35 -4
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/spans/validation/spans/value_validation.py +78 -8
- arize-8.0.0b0/src/arize/utils/__init__.py +1 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/arrow.py +31 -15
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/cache.py +34 -6
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/dataframe.py +20 -3
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/online_tasks/__init__.py +2 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/online_tasks/dataframe_preprocessor.py +58 -47
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/openinference_conversion.py +44 -5
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/proto.py +10 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/utils/size.py +5 -3
- arize-8.0.0b0/src/arize/utils/types.py +105 -0
- arize-8.0.0b0/src/arize/version.py +3 -0
- arize-8.0.0a22/LICENSE.md +0 -12
- arize-8.0.0a22/src/arize/_generated/api_client/models/__init__.py +0 -26
- arize-8.0.0a22/src/arize/_generated/protocol/flight/export_pb2.py +0 -61
- arize-8.0.0a22/src/arize/_generated/protocol/flight/ingest_pb2.py +0 -365
- arize-8.0.0a22/src/arize/client.py +0 -219
- arize-8.0.0a22/src/arize/config.py +0 -263
- arize-8.0.0a22/src/arize/constants/__init__.py +0 -0
- arize-8.0.0a22/src/arize/constants/pyarrow.py +0 -1
- arize-8.0.0a22/src/arize/datasets/__init__.py +0 -0
- arize-8.0.0a22/src/arize/datasets/client.py +0 -252
- arize-8.0.0a22/src/arize/embeddings/cv_generators.py +0 -28
- arize-8.0.0a22/src/arize/embeddings/usecases.py +0 -26
- arize-8.0.0a22/src/arize/exceptions/__init__.py +0 -0
- arize-8.0.0a22/src/arize/exceptions/auth.py +0 -13
- arize-8.0.0a22/src/arize/exceptions/models.py +0 -22
- arize-8.0.0a22/src/arize/exceptions/spaces.py +0 -10
- arize-8.0.0a22/src/arize/experiments/__init__.py +0 -0
- arize-8.0.0a22/src/arize/experiments/evaluators/__init__.py +0 -0
- arize-8.0.0a22/src/arize/experiments/evaluators/exceptions.py +0 -10
- arize-8.0.0a22/src/arize/models/__init__.py +0 -0
- arize-8.0.0a22/src/arize/models/batch_validation/__init__.py +0 -0
- arize-8.0.0a22/src/arize/models/bounded_executor.py +0 -34
- arize-8.0.0a22/src/arize/models/surrogate_explainer/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/validation/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/validation/annotations/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/validation/common/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/validation/common/dataframe_form_validation.py +0 -45
- arize-8.0.0a22/src/arize/spans/validation/evals/__init__.py +0 -0
- arize-8.0.0a22/src/arize/spans/validation/metadata/__init__.py +0 -1
- arize-8.0.0a22/src/arize/spans/validation/spans/__init__.py +0 -0
- arize-8.0.0a22/src/arize/utils/__init__.py +0 -0
- arize-8.0.0a22/src/arize/version.py +0 -1
- {arize-8.0.0a22 → arize-8.0.0b0}/.gitignore +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_exporter/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_exporter/parsers/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_flight/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_flight/types.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/api_response.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/api_client/test/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/protocol/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/protocol/flight/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/protocol/rec/__init__.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/_generated/protocol/rec/public_pb2.py +0 -0
- {arize-8.0.0a22 → arize-8.0.0b0}/src/arize/constants/model_mapping.json +0 -0
arize-8.0.0b0/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
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,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising 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
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
arize-8.0.0b0/NOTICE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2020, Arize AI
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: arize
|
|
3
|
-
Version: 8.0.
|
|
3
|
+
Version: 8.0.0b0
|
|
4
4
|
Summary: A helper library to interact with Arize AI APIs
|
|
5
5
|
Project-URL: Homepage, https://arize.com
|
|
6
6
|
Project-URL: Documentation, https://docs.arize.com/arize
|
|
@@ -9,8 +9,9 @@ Project-URL: Source, https://github.com/Arize-ai/client_python
|
|
|
9
9
|
Project-URL: Changelog, https://github.com/Arize-ai/client_python/blob/main/CHANGELOG.md
|
|
10
10
|
Author-email: Arize AI <support@arize.com>
|
|
11
11
|
Maintainer-email: Arize AI <support@arize.com>
|
|
12
|
-
License:
|
|
13
|
-
License-File: LICENSE
|
|
12
|
+
License: Apache-2.0
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: NOTICE
|
|
14
15
|
Keywords: Arize,Evaluations,Explainability,LLM,Monitoring,Observability,Tracing
|
|
15
16
|
Classifier: Development Status :: 3 - Alpha
|
|
16
17
|
Classifier: Intended Audience :: Developers
|
|
@@ -36,6 +37,12 @@ Requires-Dist: torch<3,>=1.13; extra == 'auto-embeddings'
|
|
|
36
37
|
Requires-Dist: transformers<5,>=4.25; extra == 'auto-embeddings'
|
|
37
38
|
Provides-Extra: datasets-experiments
|
|
38
39
|
Requires-Dist: numpy>=2.0.0; extra == 'datasets-experiments'
|
|
40
|
+
Requires-Dist: openinference-semantic-conventions<1,>=0.1.21; extra == 'datasets-experiments'
|
|
41
|
+
Requires-Dist: opentelemetry-api>=1.38.0; extra == 'datasets-experiments'
|
|
42
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-common>=1.38.0; extra == 'datasets-experiments'
|
|
43
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.38.0; extra == 'datasets-experiments'
|
|
44
|
+
Requires-Dist: opentelemetry-proto>=1.38.0; extra == 'datasets-experiments'
|
|
45
|
+
Requires-Dist: opentelemetry-sdk>=1.38.0; extra == 'datasets-experiments'
|
|
39
46
|
Requires-Dist: pydantic; extra == 'datasets-experiments'
|
|
40
47
|
Requires-Dist: wrapt<2.0.0,>=1.0.0; extra == 'datasets-experiments'
|
|
41
48
|
Provides-Extra: dev
|
|
@@ -260,7 +267,7 @@ Use `arize.models` to interact with ML models: log ML data (traininv, validation
|
|
|
260
267
|
|
|
261
268
|
```python
|
|
262
269
|
from arize import ArizeClient
|
|
263
|
-
from arize.types import ModelTypes, Environments
|
|
270
|
+
from arize.ml.types import ModelTypes, Environments
|
|
264
271
|
|
|
265
272
|
client = ArizeClient(api_key=API_KEY)
|
|
266
273
|
SPACE_ID = "<your-space-id>"
|
|
@@ -285,14 +292,14 @@ response = client.models.log_stream(
|
|
|
285
292
|
|
|
286
293
|
```python
|
|
287
294
|
from arize import ArizeClient
|
|
288
|
-
from arize.types import ModelTypes, Environments
|
|
295
|
+
from arize.ml.types import ModelTypes, Environments
|
|
289
296
|
|
|
290
297
|
client = ArizeClient(api_key=API_KEY)
|
|
291
298
|
SPACE_ID = "<your-space-id>"
|
|
292
299
|
MODEL_NAME = "<your-model-name>"
|
|
293
300
|
MODEL_VERSION = "1.0"
|
|
294
301
|
|
|
295
|
-
from arize.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
|
|
302
|
+
from arize.ml.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
|
|
296
303
|
|
|
297
304
|
tags = ["drift_type"]
|
|
298
305
|
embedding_feature_column_names = {
|
|
@@ -196,7 +196,7 @@ Use `arize.models` to interact with ML models: log ML data (traininv, validation
|
|
|
196
196
|
|
|
197
197
|
```python
|
|
198
198
|
from arize import ArizeClient
|
|
199
|
-
from arize.types import ModelTypes, Environments
|
|
199
|
+
from arize.ml.types import ModelTypes, Environments
|
|
200
200
|
|
|
201
201
|
client = ArizeClient(api_key=API_KEY)
|
|
202
202
|
SPACE_ID = "<your-space-id>"
|
|
@@ -221,14 +221,14 @@ response = client.models.log_stream(
|
|
|
221
221
|
|
|
222
222
|
```python
|
|
223
223
|
from arize import ArizeClient
|
|
224
|
-
from arize.types import ModelTypes, Environments
|
|
224
|
+
from arize.ml.types import ModelTypes, Environments
|
|
225
225
|
|
|
226
226
|
client = ArizeClient(api_key=API_KEY)
|
|
227
227
|
SPACE_ID = "<your-space-id>"
|
|
228
228
|
MODEL_NAME = "<your-model-name>"
|
|
229
229
|
MODEL_VERSION = "1.0"
|
|
230
230
|
|
|
231
|
-
from arize.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
|
|
231
|
+
from arize.ml.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
|
|
232
232
|
|
|
233
233
|
tags = ["drift_type"]
|
|
234
234
|
embedding_feature_column_names = {
|
|
@@ -3,7 +3,8 @@ name = "arize"
|
|
|
3
3
|
description = "A helper library to interact with Arize AI APIs"
|
|
4
4
|
readme = "README.md"
|
|
5
5
|
requires-python = ">=3.10"
|
|
6
|
-
license = { text = "
|
|
6
|
+
license = { text = "Apache-2.0" }
|
|
7
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
7
8
|
keywords = [
|
|
8
9
|
"Arize",
|
|
9
10
|
"Observability",
|
|
@@ -14,10 +15,10 @@ keywords = [
|
|
|
14
15
|
"Evaluations",
|
|
15
16
|
]
|
|
16
17
|
authors = [
|
|
17
|
-
|
|
18
|
+
{ name = "Arize AI", email = "support@arize.com" }
|
|
18
19
|
]
|
|
19
20
|
maintainers = [
|
|
20
|
-
|
|
21
|
+
{ name = "Arize AI", email = "support@arize.com" }
|
|
21
22
|
]
|
|
22
23
|
classifiers = [
|
|
23
24
|
"Development Status :: 3 - Alpha",
|
|
@@ -48,7 +49,7 @@ dynamic = ["version"]
|
|
|
48
49
|
[project.optional-dependencies]
|
|
49
50
|
dev = [
|
|
50
51
|
"pytest==8.4.2",
|
|
51
|
-
"ruff==0.13.2"
|
|
52
|
+
"ruff==0.13.2"
|
|
52
53
|
]
|
|
53
54
|
spans = [
|
|
54
55
|
"openinference-semantic-conventions>=0.1.21, <1",
|
|
@@ -61,7 +62,7 @@ spans = [
|
|
|
61
62
|
]
|
|
62
63
|
ml-stream = [
|
|
63
64
|
"requests_futures>=1.0.0, <2",
|
|
64
|
-
"protobuf>=4.21.0,<6"
|
|
65
|
+
"protobuf>=4.21.0,<6"
|
|
65
66
|
]
|
|
66
67
|
ml-batch = [
|
|
67
68
|
"pandas>=1.0.0,<3",
|
|
@@ -74,16 +75,15 @@ datasets-experiments = [
|
|
|
74
75
|
"pydantic",
|
|
75
76
|
"numpy>=2.0.0",
|
|
76
77
|
"wrapt>=1.0.0,<2.0.0",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
# "opentelemetry-proto>=1.38.0",
|
|
78
|
+
"openinference-semantic-conventions>=0.1.21, <1",
|
|
79
|
+
"opentelemetry-exporter-otlp-proto-common>=1.38.0",
|
|
80
|
+
"opentelemetry-exporter-otlp-proto-grpc>=1.38.0",
|
|
81
|
+
"opentelemetry-sdk>=1.38.0",
|
|
82
|
+
"opentelemetry-api>=1.38.0",
|
|
83
|
+
"opentelemetry-proto>=1.38.0",
|
|
84
84
|
]
|
|
85
85
|
mimic-explainer = [
|
|
86
|
-
"interpret-community[mimic]>=0.22.0,<1"
|
|
86
|
+
"interpret-community[mimic]>=0.22.0,<1"
|
|
87
87
|
]
|
|
88
88
|
auto-embeddings = [
|
|
89
89
|
"Pillow>=8.4.0, <11",
|
|
@@ -118,7 +118,7 @@ packages = ["src/arize"]
|
|
|
118
118
|
[tool.hatch.build.targets.sdist]
|
|
119
119
|
exclude = [
|
|
120
120
|
"tests",
|
|
121
|
-
"docs"
|
|
121
|
+
"docs"
|
|
122
122
|
]
|
|
123
123
|
|
|
124
124
|
|
|
@@ -126,12 +126,15 @@ exclude = [
|
|
|
126
126
|
include = '\.pyi?$'
|
|
127
127
|
exclude = '(_pb2\.py$|docs/source/.*\.py)'
|
|
128
128
|
|
|
129
|
+
# TODO(Kiko): Revisit ruff ignores
|
|
129
130
|
[tool.ruff]
|
|
130
|
-
target-version = "
|
|
131
|
+
target-version = "py310"
|
|
131
132
|
line-length = 80
|
|
132
133
|
exclude = [
|
|
133
134
|
"dist/",
|
|
135
|
+
"testing_notebooks/",
|
|
134
136
|
"__pycache__",
|
|
137
|
+
"src/arize/_generated/**/*.py",
|
|
135
138
|
"*_pb2.py*",
|
|
136
139
|
"*_pb2_grpc.py*",
|
|
137
140
|
"*.pyi",
|
|
@@ -143,27 +146,35 @@ line-ending = "native"
|
|
|
143
146
|
|
|
144
147
|
[tool.ruff.lint]
|
|
145
148
|
select = [
|
|
146
|
-
#
|
|
147
|
-
|
|
148
|
-
# pycodestyle
|
|
149
|
-
"W",
|
|
150
|
-
# Pyflakes
|
|
151
|
-
"
|
|
152
|
-
#
|
|
153
|
-
"
|
|
154
|
-
#
|
|
155
|
-
|
|
156
|
-
#
|
|
157
|
-
|
|
158
|
-
#
|
|
159
|
-
"
|
|
160
|
-
#
|
|
161
|
-
|
|
162
|
-
#
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
"
|
|
149
|
+
# Core correctness & style
|
|
150
|
+
# ------------------------
|
|
151
|
+
"E", # pycodestyle errors (syntax, indentation, whitespace)
|
|
152
|
+
"W", # pycodestyle warnings (less severe style issues)
|
|
153
|
+
"F", # Pyflakes (unused imports, undefined names, etc.)
|
|
154
|
+
"UP", # pyupgrade (modernize syntax for your Python version)
|
|
155
|
+
"B", # flake8-bugbear (likely bugs and design problems)
|
|
156
|
+
"SIM", # flake8-simplify (simpler / clearer code patterns)
|
|
157
|
+
"I", # isort (import ordering)
|
|
158
|
+
|
|
159
|
+
# Typing & documentation
|
|
160
|
+
# ------------------------
|
|
161
|
+
"ANN", # flake8-annotations (enforce type annotations)
|
|
162
|
+
"D", # pydocstyle (docstring conventions for public APIs)
|
|
163
|
+
"TCH", # flake8-type-checking (TYPE_CHECKING import hygiene)
|
|
164
|
+
|
|
165
|
+
# Recommended for SDKs
|
|
166
|
+
# ------------------------
|
|
167
|
+
"RUF", # Ruff-native rules (high-signal correctness & footguns)
|
|
168
|
+
"C4", # flake8-comprehensions (cleaner comprehensions)
|
|
169
|
+
"PIE", # flake8-pie (small correctness & readability improvements)
|
|
170
|
+
"PERF", # perflint (common performance pitfalls)
|
|
171
|
+
"DTZ", # flake8-datetimez (timezone-aware datetime usage)
|
|
172
|
+
"TRY", # tryceratops (better exception handling patterns)
|
|
173
|
+
"RET", # flake8-return (return consistency)
|
|
174
|
+
"S", # flake8-bandit (basic security issues; tune via ignores)
|
|
175
|
+
]
|
|
176
|
+
ignore = [
|
|
177
|
+
"TRY003", # Put long / detailed messages inside the exception class
|
|
167
178
|
]
|
|
168
179
|
|
|
169
180
|
[tool.ruff.lint.isort]
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"""Arize SDK for model observability and LLM tracing."""
|
|
2
|
+
|
|
1
3
|
import logging
|
|
2
4
|
from collections.abc import Mapping
|
|
3
5
|
|
|
4
6
|
from arize._generated.api_client import models
|
|
5
7
|
from arize.client import ArizeClient
|
|
6
8
|
from arize.config import SDKConfiguration
|
|
9
|
+
from arize.regions import Region
|
|
7
10
|
|
|
8
11
|
# Attach a NullHandler by default in the top-level package
|
|
9
12
|
# so that if no configuration is installed, nothing explodes.
|
|
@@ -14,41 +17,46 @@ try:
|
|
|
14
17
|
from .logging import auto_configure_from_env
|
|
15
18
|
|
|
16
19
|
auto_configure_from_env()
|
|
17
|
-
except Exception:
|
|
18
|
-
#
|
|
20
|
+
except Exception: # noqa: S110
|
|
21
|
+
# Intentionally silent: logging configuration is optional and should never
|
|
22
|
+
# prevent SDK initialization. Users can configure logging explicitly if needed.
|
|
19
23
|
pass
|
|
20
24
|
|
|
21
|
-
__all__ = [
|
|
25
|
+
__all__ = [
|
|
26
|
+
"ArizeClient",
|
|
27
|
+
"Region",
|
|
28
|
+
"SDKConfiguration",
|
|
29
|
+
]
|
|
22
30
|
|
|
23
31
|
|
|
24
|
-
def make_to_df(field_name: str):
|
|
32
|
+
def make_to_df(field_name: str) -> object:
|
|
25
33
|
def to_df(
|
|
26
|
-
self,
|
|
34
|
+
self: object,
|
|
27
35
|
by_alias: bool = False,
|
|
28
36
|
exclude_none: str | bool = False,
|
|
29
37
|
json_normalize: bool = False,
|
|
30
38
|
convert_dtypes: bool = True,
|
|
31
|
-
):
|
|
32
|
-
"""
|
|
33
|
-
Convert a list of objects to a pandas DataFrame.
|
|
39
|
+
) -> object:
|
|
40
|
+
"""Convert a list of objects to a pandas DataFrame.
|
|
34
41
|
|
|
35
42
|
Behavior:
|
|
36
43
|
- If an item is a Pydantic v2 model, use `.model_dump(by_alias=...)`.
|
|
37
44
|
- If an item is a mapping (dict-like), use it as-is.
|
|
38
45
|
- Otherwise, raise a ValueError (unsupported row type).
|
|
39
46
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Args:
|
|
48
|
+
self (object): The object instance containing the field to convert.
|
|
49
|
+
by_alias (bool): Use field aliases when dumping Pydantic models.
|
|
50
|
+
exclude_none (str | bool): Control None/NaN column dropping.
|
|
51
|
+
- False: keep Nones as-is
|
|
52
|
+
- "all": drop columns where all values are None/NaN
|
|
53
|
+
- "any": drop columns where any value is None/NaN
|
|
54
|
+
- True: alias for "all"
|
|
55
|
+
json_normalize (bool): If True, flatten nested dicts via `pandas.json_normalize`.
|
|
56
|
+
convert_dtypes (bool): If True, call `DataFrame.convert_dtypes()` at the end.
|
|
49
57
|
|
|
50
58
|
Returns:
|
|
51
|
-
|
|
59
|
+
pandas.DataFrame: The converted DataFrame.
|
|
52
60
|
"""
|
|
53
61
|
import pandas as pd
|
|
54
62
|
|
|
@@ -85,6 +93,7 @@ def make_to_df(field_name: str):
|
|
|
85
93
|
|
|
86
94
|
|
|
87
95
|
models.DatasetsList200Response.to_df = make_to_df("datasets") # type: ignore[attr-defined]
|
|
88
|
-
models.
|
|
96
|
+
models.DatasetsExamplesList200Response.to_df = make_to_df("examples") # type: ignore[attr-defined]
|
|
89
97
|
models.ExperimentsList200Response.to_df = make_to_df("experiments") # type: ignore[attr-defined]
|
|
90
98
|
models.ExperimentsRunsList200Response.to_df = make_to_df("experiment_runs") # type: ignore[attr-defined]
|
|
99
|
+
models.ProjectsList200Response.to_df = make_to_df("projects") # type: ignore[attr-defined]
|