filament-py 0.1.0__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.
- filament_py-0.1.0/.gitignore +4 -0
- filament_py-0.1.0/LICENSE +201 -0
- filament_py-0.1.0/PKG-INFO +279 -0
- filament_py-0.1.0/README.md +264 -0
- filament_py-0.1.0/py.typed +0 -0
- filament_py-0.1.0/pyproject.toml +33 -0
- filament_py-0.1.0/src/filament/.fern/metadata.json +17 -0
- filament_py-0.1.0/src/filament/CONTRIBUTING.md +125 -0
- filament_py-0.1.0/src/filament/__init__.py +439 -0
- filament_py-0.1.0/src/filament/_default_clients.py +30 -0
- filament_py-0.1.0/src/filament/auth/__init__.py +4 -0
- filament_py-0.1.0/src/filament/auth/client.py +662 -0
- filament_py-0.1.0/src/filament/auth/raw_client.py +747 -0
- filament_py-0.1.0/src/filament/client.py +344 -0
- filament_py-0.1.0/src/filament/connection/__init__.py +4 -0
- filament_py-0.1.0/src/filament/connection/client.py +567 -0
- filament_py-0.1.0/src/filament/connection/raw_client.py +671 -0
- filament_py-0.1.0/src/filament/connector/__init__.py +4 -0
- filament_py-0.1.0/src/filament/connector/client.py +618 -0
- filament_py-0.1.0/src/filament/connector/raw_client.py +718 -0
- filament_py-0.1.0/src/filament/core/__init__.py +127 -0
- filament_py-0.1.0/src/filament/core/api_error.py +23 -0
- filament_py-0.1.0/src/filament/core/client_wrapper.py +156 -0
- filament_py-0.1.0/src/filament/core/datetime_utils.py +70 -0
- filament_py-0.1.0/src/filament/core/file.py +67 -0
- filament_py-0.1.0/src/filament/core/force_multipart.py +18 -0
- filament_py-0.1.0/src/filament/core/http_client.py +940 -0
- filament_py-0.1.0/src/filament/core/http_response.py +63 -0
- filament_py-0.1.0/src/filament/core/http_sse/__init__.py +42 -0
- filament_py-0.1.0/src/filament/core/http_sse/_api.py +455 -0
- filament_py-0.1.0/src/filament/core/http_sse/_decoders.py +74 -0
- filament_py-0.1.0/src/filament/core/http_sse/_exceptions.py +7 -0
- filament_py-0.1.0/src/filament/core/http_sse/_models.py +17 -0
- filament_py-0.1.0/src/filament/core/jsonable_encoder.py +133 -0
- filament_py-0.1.0/src/filament/core/logging.py +107 -0
- filament_py-0.1.0/src/filament/core/parse_error.py +36 -0
- filament_py-0.1.0/src/filament/core/pydantic_utilities.py +486 -0
- filament_py-0.1.0/src/filament/core/query_encoder.py +58 -0
- filament_py-0.1.0/src/filament/core/remove_none_from_dict.py +11 -0
- filament_py-0.1.0/src/filament/core/request_options.py +40 -0
- filament_py-0.1.0/src/filament/core/serialization.py +347 -0
- filament_py-0.1.0/src/filament/member/__init__.py +4 -0
- filament_py-0.1.0/src/filament/member/client.py +441 -0
- filament_py-0.1.0/src/filament/member/raw_client.py +504 -0
- filament_py-0.1.0/src/filament/metrics/__init__.py +4 -0
- filament_py-0.1.0/src/filament/metrics/client.py +333 -0
- filament_py-0.1.0/src/filament/metrics/raw_client.py +361 -0
- filament_py-0.1.0/src/filament/pipeline/__init__.py +34 -0
- filament_py-0.1.0/src/filament/pipeline/client.py +930 -0
- filament_py-0.1.0/src/filament/pipeline/notifier/__init__.py +4 -0
- filament_py-0.1.0/src/filament/pipeline/notifier/client.py +448 -0
- filament_py-0.1.0/src/filament/pipeline/notifier/raw_client.py +516 -0
- filament_py-0.1.0/src/filament/pipeline/raw_client.py +1018 -0
- filament_py-0.1.0/src/filament/pipeline/schedule/__init__.py +4 -0
- filament_py-0.1.0/src/filament/pipeline/schedule/client.py +254 -0
- filament_py-0.1.0/src/filament/pipeline/schedule/raw_client.py +282 -0
- filament_py-0.1.0/src/filament/pipeline/version/__init__.py +4 -0
- filament_py-0.1.0/src/filament/pipeline/version/client.py +351 -0
- filament_py-0.1.0/src/filament/pipeline/version/raw_client.py +407 -0
- filament_py-0.1.0/src/filament/reference.md +3831 -0
- filament_py-0.1.0/src/filament/run/__init__.py +4 -0
- filament_py-0.1.0/src/filament/run/client.py +384 -0
- filament_py-0.1.0/src/filament/run/raw_client.py +440 -0
- filament_py-0.1.0/src/filament/service_account/__init__.py +4 -0
- filament_py-0.1.0/src/filament/service_account/client.py +429 -0
- filament_py-0.1.0/src/filament/service_account/raw_client.py +490 -0
- filament_py-0.1.0/src/filament/types/__init__.py +410 -0
- filament_py-0.1.0/src/filament/types/auth_v1accept_invite_response.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1create_service_account_response.py +34 -0
- filament_py-0.1.0/src/filament/types/auth_v1get_auth_config_request.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1get_auth_config_response.py +40 -0
- filament_py-0.1.0/src/filament/types/auth_v1get_session_request.py +9 -0
- filament_py-0.1.0/src/filament/types/auth_v1get_session_response.py +28 -0
- filament_py-0.1.0/src/filament/types/auth_v1invite_member_response.py +29 -0
- filament_py-0.1.0/src/filament/types/auth_v1list_members_request.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1list_members_response.py +34 -0
- filament_py-0.1.0/src/filament/types/auth_v1list_service_accounts_request.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1list_service_accounts_response.py +29 -0
- filament_py-0.1.0/src/filament/types/auth_v1login_response.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1logout_request.py +8 -0
- filament_py-0.1.0/src/filament/types/auth_v1logout_response.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1member.py +31 -0
- filament_py-0.1.0/src/filament/types/auth_v1register_response.py +23 -0
- filament_py-0.1.0/src/filament/types/auth_v1remove_member_response.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1remove_service_account_response.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1role.py +5 -0
- filament_py-0.1.0/src/filament/types/auth_v1rotate_service_account_secret_response.py +31 -0
- filament_py-0.1.0/src/filament/types/auth_v1service_account.py +35 -0
- filament_py-0.1.0/src/filament/types/auth_v1set_member_role_response.py +5 -0
- filament_py-0.1.0/src/filament/types/connect_error.py +38 -0
- filament_py-0.1.0/src/filament/types/connect_error_code.py +25 -0
- filament_py-0.1.0/src/filament/types/connect_error_details_any.py +36 -0
- filament_py-0.1.0/src/filament/types/connect_protocol_version.py +5 -0
- filament_py-0.1.0/src/filament/types/connect_timeout_header.py +6 -0
- filament_py-0.1.0/src/filament/types/google_protobuf_list_value.py +10 -0
- filament_py-0.1.0/src/filament/types/google_protobuf_null_value.py +5 -0
- filament_py-0.1.0/src/filament/types/google_protobuf_struct.py +10 -0
- filament_py-0.1.0/src/filament/types/google_protobuf_value.py +5 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1candidate_status.py +13 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1candidate_value.py +26 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1config_field.py +62 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1config_schema.py +30 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1connection.py +70 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1connector_kind.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1connector_maturity.py +13 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1connector_spec.py +59 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1create_connection_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1create_pipeline_notifier_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1create_pipeline_response.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1create_pipeline_schedule_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1create_pipeline_version_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1delete_connection_response.py +5 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1delete_pipeline_notifier_response.py +5 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1delete_pipeline_response.py +5 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1discover_resources_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1edge_validation.py +57 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1enum_option.py +24 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1field_condition.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1field_scope.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1field_type.py +18 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_connection_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_connector_response.py +25 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_pipeline_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_pipeline_version_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_resource_columns_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1get_run_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_connections_response.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_connectors_response.py +27 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_pipeline_notifiers_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_pipeline_versions_response.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_pipelines_response.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1list_runs_response.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1notification_type.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1notifier.py +68 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1notifier_event.py +16 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1notifier_input.py +48 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pagination_request.py +31 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pagination_response.py +33 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline.py +75 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_edge.py +53 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_edge_run.py +29 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_graph.py +22 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_node.py +48 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_schedule.py +36 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_schedule_config.py +31 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_schedule_overlap_policy.py +12 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1pipeline_version.py +39 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1rate_policy.py +28 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1read_mode.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1replication_mode.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1requirement.py +41 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1requirement_kind.py +8 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1resource.py +32 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1resource_column.py +49 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1resource_columns.py +21 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1resource_cursor_config.py +25 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1resource_validation.py +35 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_event.py +45 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_event_fields.py +40 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_info.py +87 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_options.py +44 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_pipeline_response.py +26 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_resource_state.py +32 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_signal.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_snapshot.py +27 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1run_status.py +18 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1signal_run_response.py +5 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1sort_by.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1sort_order.py +7 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1sorting_request.py +28 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1tail_run_request.py +35 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1tail_run_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1update_connection_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1update_pipeline_notifier_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1update_pipeline_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1update_pipeline_schedule_response.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1validate_config_response.py +21 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1validate_pipeline_response.py +26 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1validation_error.py +20 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1worker_configuration.py +36 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1worker_resources.py +27 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1worker_toleration.py +28 -0
- filament_py-0.1.0/src/filament/types/ingestion_v1write_mode.py +10 -0
- filament_py-0.1.0/src/filament/types/metrics_v1aggregate_row.py +24 -0
- filament_py-0.1.0/src/filament/types/metrics_v1metric.py +16 -0
- filament_py-0.1.0/src/filament/types/metrics_v1metric_dimension.py +13 -0
- filament_py-0.1.0/src/filament/types/metrics_v1metric_filter.py +26 -0
- filament_py-0.1.0/src/filament/types/metrics_v1metric_granularity.py +7 -0
- filament_py-0.1.0/src/filament/types/metrics_v1query_aggregate_response.py +20 -0
- filament_py-0.1.0/src/filament/types/metrics_v1query_timeseries_response.py +20 -0
- filament_py-0.1.0/src/filament/types/metrics_v1timeseries.py +29 -0
- filament_py-0.1.0/src/filament/types/metrics_v1timeseries_point.py +28 -0
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026- Intergalactic Data Labs, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: filament-py
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Generated Python client for the Filament API
|
|
5
|
+
Project-URL: Repository, https://github.com/galaxy-io/filament
|
|
6
|
+
Project-URL: Issues, https://github.com/galaxy-io/filament/issues
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: anyio<5,>=4
|
|
11
|
+
Requires-Dist: httpx<1,>=0.28
|
|
12
|
+
Requires-Dist: pydantic<3,>=2.8
|
|
13
|
+
Requires-Dist: typing-extensions<5,>=4.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Filament Python SDK
|
|
17
|
+
|
|
18
|
+
Create connections, discover resources, build pipelines, and run them from Python.
|
|
19
|
+
|
|
20
|
+
- **Package:** `filament-py`
|
|
21
|
+
- **Import:** `from filament import Filament`
|
|
22
|
+
- **Python:** 3.10+
|
|
23
|
+
- **Clients:** synchronous `Filament` and asynchronous `AsyncFilament`
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
Until the first PyPI release, install from a Filament checkout:
|
|
28
|
+
|
|
29
|
+
~~~sh
|
|
30
|
+
uv add /path/to/filament/sdks/python
|
|
31
|
+
~~~
|
|
32
|
+
|
|
33
|
+
After the package is published:
|
|
34
|
+
|
|
35
|
+
~~~sh
|
|
36
|
+
uv add filament-py
|
|
37
|
+
~~~
|
|
38
|
+
|
|
39
|
+
For an existing virtual environment, use `uv pip install filament-py`.
|
|
40
|
+
|
|
41
|
+
## Connect to Filament
|
|
42
|
+
|
|
43
|
+
~~~python
|
|
44
|
+
import os
|
|
45
|
+
|
|
46
|
+
from filament import Filament
|
|
47
|
+
|
|
48
|
+
filament = Filament(
|
|
49
|
+
base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
for connector in filament.connector.list().connectors or []:
|
|
53
|
+
print(connector.name)
|
|
54
|
+
~~~
|
|
55
|
+
|
|
56
|
+
Set `FILAMENT_TOKEN` to a bearer token accepted by your server's identity provider.
|
|
57
|
+
For a local server with authentication disabled, omit `token`. The SDK also accepts
|
|
58
|
+
a callable token provider for credentials that need refreshing.
|
|
59
|
+
|
|
60
|
+
You can configure request timeouts with `Filament(..., timeout=30)`; the value is
|
|
61
|
+
in seconds. The SDK creates its HTTP client and supplies protocol headers.
|
|
62
|
+
|
|
63
|
+
## Create and run a pipeline
|
|
64
|
+
|
|
65
|
+
A **connector** is an available integration, such as `sample` or `stdout`.
|
|
66
|
+
A **connection** is a configured instance you create using that connector.
|
|
67
|
+
|
|
68
|
+
The workflow is:
|
|
69
|
+
|
|
70
|
+
1. Create source and sink connections.
|
|
71
|
+
2. Discover the source's resources and select which ones to include.
|
|
72
|
+
3. Create a pipeline and save its graph.
|
|
73
|
+
4. Submit a run.
|
|
74
|
+
|
|
75
|
+
This complete example routes five rows from each selected sample resource to
|
|
76
|
+
stdout. It requires a running Filament deployment with a working execution backend.
|
|
77
|
+
|
|
78
|
+
~~~python
|
|
79
|
+
import os
|
|
80
|
+
from uuid import uuid4
|
|
81
|
+
|
|
82
|
+
from filament import (
|
|
83
|
+
Filament,
|
|
84
|
+
IngestionV1PipelineEdge,
|
|
85
|
+
IngestionV1PipelineGraph,
|
|
86
|
+
IngestionV1PipelineNode,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
filament = Filament(
|
|
90
|
+
base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"),
|
|
91
|
+
)
|
|
92
|
+
name = f"sample-to-stdout-{uuid4().hex[:8]}"
|
|
93
|
+
|
|
94
|
+
source = filament.connection.create(
|
|
95
|
+
name=f"{name}-source",
|
|
96
|
+
kind="CONNECTOR_KIND_SOURCE",
|
|
97
|
+
connector="sample",
|
|
98
|
+
).connection
|
|
99
|
+
|
|
100
|
+
sink = filament.connection.create(
|
|
101
|
+
name=f"{name}-sink",
|
|
102
|
+
kind="CONNECTOR_KIND_SINK",
|
|
103
|
+
connector="stdout",
|
|
104
|
+
).connection
|
|
105
|
+
|
|
106
|
+
resources = filament.connector.discover_resources(
|
|
107
|
+
connection_id=source.id,
|
|
108
|
+
).resources or []
|
|
109
|
+
|
|
110
|
+
# Select every available resource, or set this to ["users"].
|
|
111
|
+
selected_resources = [
|
|
112
|
+
resource.name for resource in resources if resource.is_selectable
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
pipeline = filament.pipeline.create(name=name).pipeline
|
|
116
|
+
|
|
117
|
+
filament.pipeline.version.create(
|
|
118
|
+
pipeline_id=pipeline.id,
|
|
119
|
+
graph=IngestionV1PipelineGraph(
|
|
120
|
+
nodes=[
|
|
121
|
+
IngestionV1PipelineNode(
|
|
122
|
+
id="source",
|
|
123
|
+
kind="CONNECTOR_KIND_SOURCE",
|
|
124
|
+
connection_id=source.id,
|
|
125
|
+
config={"rows": 5},
|
|
126
|
+
),
|
|
127
|
+
IngestionV1PipelineNode(
|
|
128
|
+
id="sink",
|
|
129
|
+
kind="CONNECTOR_KIND_SINK",
|
|
130
|
+
connection_id=sink.id,
|
|
131
|
+
),
|
|
132
|
+
],
|
|
133
|
+
edges=[
|
|
134
|
+
IngestionV1PipelineEdge(
|
|
135
|
+
from_node="source",
|
|
136
|
+
to_node="sink",
|
|
137
|
+
resource=resource,
|
|
138
|
+
)
|
|
139
|
+
for resource in selected_resources
|
|
140
|
+
],
|
|
141
|
+
),
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
submitted = filament.pipeline.run(pipeline_id=pipeline.id)
|
|
145
|
+
|
|
146
|
+
print("Pipeline:", pipeline.id)
|
|
147
|
+
for edge_run in submitted.edge_runs or []:
|
|
148
|
+
print("Run:", edge_run.run.id, edge_run.run.status)
|
|
149
|
+
~~~
|
|
150
|
+
|
|
151
|
+
`pipeline.create(...)` creates the pipeline's metadata.
|
|
152
|
+
`pipeline.version.create(...)` saves its graph; the backend assigns the version
|
|
153
|
+
automatically. Both steps are required before the first run.
|
|
154
|
+
|
|
155
|
+
The sample source discovers `users` and `orders`. To route all resources without
|
|
156
|
+
enumerating them, save one edge with `resource` omitted. You still supply the source
|
|
157
|
+
and sink nodes.
|
|
158
|
+
|
|
159
|
+
Submitting a run returns its ID and initial status. It does not wait for completion.
|
|
160
|
+
Inspect a run with `filament.run.get(run_id=run_id)`, or open the pipeline in the UI.
|
|
161
|
+
The stdout sink writes rows to the worker's logs. The example leaves its connections,
|
|
162
|
+
pipeline, and run available for inspection.
|
|
163
|
+
|
|
164
|
+
The runnable version lives in
|
|
165
|
+
[examples/smoke.py](https://github.com/galaxy-io/filament/blob/main/sdks/python/examples/smoke.py).
|
|
166
|
+
From the repository root:
|
|
167
|
+
|
|
168
|
+
~~~sh
|
|
169
|
+
uv run --project sdks/python sdks/python/examples/smoke.py
|
|
170
|
+
~~~
|
|
171
|
+
|
|
172
|
+
## Async usage
|
|
173
|
+
|
|
174
|
+
The async client exposes the same resource groups and methods.
|
|
175
|
+
|
|
176
|
+
~~~python
|
|
177
|
+
import asyncio
|
|
178
|
+
import os
|
|
179
|
+
|
|
180
|
+
from filament import AsyncFilament
|
|
181
|
+
|
|
182
|
+
async def main():
|
|
183
|
+
filament = AsyncFilament(
|
|
184
|
+
base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"),
|
|
185
|
+
token=os.getenv("FILAMENT_TOKEN"),
|
|
186
|
+
)
|
|
187
|
+
response = await filament.pipeline.list()
|
|
188
|
+
for pipeline in response.pipelines or []:
|
|
189
|
+
print(pipeline.id, pipeline.name)
|
|
190
|
+
|
|
191
|
+
asyncio.run(main())
|
|
192
|
+
~~~
|
|
193
|
+
|
|
194
|
+
## API groups
|
|
195
|
+
|
|
196
|
+
| Group | Examples |
|
|
197
|
+
| --- | --- |
|
|
198
|
+
| `connector` | `list`, `get`, `discover_resources`, `validate_config` |
|
|
199
|
+
| `connection` | `create`, `get`, `list`, `update`, `delete` |
|
|
200
|
+
| `pipeline` | `create`, `get`, `list`, `update`, `validate`, `run` |
|
|
201
|
+
| `pipeline.version` | `create`, `get`, `list` |
|
|
202
|
+
| `pipeline.schedule` | `create`, `update` |
|
|
203
|
+
| `pipeline.notifier` | `create`, `list`, `update`, `delete` |
|
|
204
|
+
| `run` | `get`, `list`, `signal` |
|
|
205
|
+
| `metrics` | `query_timeseries`, `query_aggregate` |
|
|
206
|
+
| `auth` | `get_config`, `get_session`, `login`, `logout` |
|
|
207
|
+
| `member` | `list`, `invite`, `set_role`, `remove` |
|
|
208
|
+
| `service_account` | `create`, `list`, `rotate_secret`, `remove` |
|
|
209
|
+
|
|
210
|
+
The SDK covers unary API methods. Streaming `TailRun` is not included.
|
|
211
|
+
|
|
212
|
+
## Responses and pagination
|
|
213
|
+
|
|
214
|
+
Methods return generated models. For example, `pipeline.create(...)` returns a
|
|
215
|
+
response whose `pipeline` property holds the created pipeline.
|
|
216
|
+
|
|
217
|
+
Fields omitted by the server can be `None`, including lists. Use
|
|
218
|
+
`response.pipelines or []` when iterating. Protobuf 64-bit integer fields, such as
|
|
219
|
+
timestamps and record counts, can be decimal strings; use `int(value)` when needed.
|
|
220
|
+
|
|
221
|
+
List methods expose explicit pagination:
|
|
222
|
+
|
|
223
|
+
~~~python
|
|
224
|
+
from filament import IngestionV1PaginationRequest
|
|
225
|
+
|
|
226
|
+
page = filament.pipeline.list(
|
|
227
|
+
pagination=IngestionV1PaginationRequest(page_size=25),
|
|
228
|
+
)
|
|
229
|
+
next_cursor = page.pagination.next_cursor if page.pagination else None
|
|
230
|
+
~~~
|
|
231
|
+
|
|
232
|
+
Pass `next_cursor` as `IngestionV1PaginationRequest(cursor=next_cursor, page_size=25)`
|
|
233
|
+
to fetch the next page when a cursor is present. Omitting pagination returns the
|
|
234
|
+
full result set.
|
|
235
|
+
|
|
236
|
+
## Errors and retries
|
|
237
|
+
|
|
238
|
+
~~~python
|
|
239
|
+
from filament.core.api_error import ApiError
|
|
240
|
+
|
|
241
|
+
try:
|
|
242
|
+
filament.pipeline.get(id="missing-pipeline")
|
|
243
|
+
except ApiError as error:
|
|
244
|
+
print(error.status_code) # e.g. 404
|
|
245
|
+
print(error.body) # Connect error code, message, and optional details
|
|
246
|
+
~~~
|
|
247
|
+
|
|
248
|
+
Automatic retries are disabled because mutations are not generally idempotent.
|
|
249
|
+
For a read you want to retry, use
|
|
250
|
+
`filament.pipeline.list(request_options={"max_retries": 2})`.
|
|
251
|
+
|
|
252
|
+
## Development
|
|
253
|
+
|
|
254
|
+
The client and models are generated by Fern from the protobuf-derived OpenAPI
|
|
255
|
+
specification. Configure names and generation in `fern/`; do not edit
|
|
256
|
+
`sdks/python/src/filament/` directly. This README and the package metadata are
|
|
257
|
+
maintained separately and preserved across regeneration.
|
|
258
|
+
|
|
259
|
+
From the repository root:
|
|
260
|
+
|
|
261
|
+
~~~sh
|
|
262
|
+
# Regenerate the OpenAPI specification and SDK (requires Buf and Fern login).
|
|
263
|
+
just sdk-python
|
|
264
|
+
|
|
265
|
+
# Install the SDK and run interoperability tests against an ephemeral Go server.
|
|
266
|
+
uv sync --project sdks/python
|
|
267
|
+
FILAMENT_SDK_PYTHON="$PWD/sdks/python/.venv/bin/python" GOWORK=off \
|
|
268
|
+
go test ./sdks/python/tests -run TestPythonSDK -count=1
|
|
269
|
+
|
|
270
|
+
# Build the wheel and source distribution.
|
|
271
|
+
uv build --no-sources --project sdks/python
|
|
272
|
+
~~~
|
|
273
|
+
|
|
274
|
+
See the [publishing guide](https://github.com/galaxy-io/filament/blob/main/sdks/python/PUBLISHING.md)
|
|
275
|
+
for releasing `filament-py` to PyPI.
|
|
276
|
+
|
|
277
|
+
## License
|
|
278
|
+
|
|
279
|
+
Apache-2.0.
|