stitch_connect_client
https://www.stitchdata.com/docs/developers/stitch-connect/api
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.4.1
- Package version: 0.6.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Table of Contents:
- Installation
- Guide
- Documentation for API Endpoints
- Documentation for Models
- Documentation for Authorization
- Development
Installation
This package requires Python 3.6 or above.
pip install stitch_connect_client
Guide
import stitch_connect_client
from stitch_connect_client.rest import ApiException
configuration = stitch_connect_client.Configuration()
# Configure Bearer authorization: bearerAuth
configuration.access_token = 'YOUR_BEARER_TOKEN'
# Defining host is optional and default to https://api.stitchdata.com
configuration.host = "https://api.stitchdata.com"
# Create an instance of the API class
api_instance = stitch_connect_client.DestinationsApi(stitch_connect_client.ApiClient(configuration))
create_destination_body = stitch_connect_client.CreateDestinationBody() # CreateDestinationBody | Object containing type and properties of a destination
try:
# Creates a new destination. Only a single destination is supported per Stitch client account.
api_response = api_instance.create_destination(create_destination_body)
print(api_response)
except ApiException as e:
print(f"Exception when calling DestinationsApi->create_destination: {e}")
Documentation for API Endpoints
All URIs are relative to https://api.stitchdata.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DestinationsApi | create_destination | POST /v4/destinations | Creates a new destination. Only a single destination is supported per Stitch client account. |
| DestinationsApi | delete_destination | DELETE /v4/destinations/{destination_id} | Deletes an existing destination. Note: Stitch requires a destination to replicate data. Replication will be paused until a new destination is created and has a successful connection. |
| DestinationsApi | get_destination_types | GET /v4/destination-types | Retrieves general information about the configuration required for all supported destination types. |
| DestinationsApi | get_destinations | GET /v4/destinations | Lists the destination currently in use for a Stitch account. Only a single data warehouse is supported per Stitch client account. |
| DestinationsApi | update_destination | PUT /v4/destinations/{destination_id} | Updates an existing destination. Modifications to the type attribute are not supported. |
| SourcesApi | create_source | POST /v4/sources | Creates a source object, which is the first step in setting up a new data source. After the source object is created, additional configuration steps must be completed. |
| SourcesApi | delete_source | DELETE /v4/sources/{source_id} | Deletes an existing data source. |
| SourcesApi | get_last_connection_check | GET /v4/sources/{source_id}/last-connection-check | Retrieves the last connection check for a source by the source's unique identifier. |
| SourcesApi | get_source | GET /v4/sources/{source_id} | Retrieves a previously created data source by its unique identifier. This endpoint can be used to retrieve an active, paused, or deleted source. |
| SourcesApi | get_sources | GET /v4/sources | Lists the sources for an account, including active, paused, and deleted sources. |
| SourcesApi | start_replication | POST /v4/sources/{source_id}/sync | Manually starts a replication job for a source using the source's unique identifier. |
| SourcesApi | update_source | PUT /v4/sources/{source_id} | Updates an existing data source. |
| StreamsApi | get_stream_schema | GET /v4/sources/{source_id}/streams/{stream_id} | Retrieves the schema for a source's stream by the source and stream's unique identifiers. |
| StreamsApi | get_streams | GET /v4/sources/{source_id}/streams | Lists the available streams for a source. |
| StreamsApi | update_stream_metadata | PUT /v4/sources/{source_id}/streams/metadata | Updates the metadata for streams and fields. This endpoint is used to define the metadata properties returned in the Stream Schema object's non-discoverable-metadata-keys property. |
Documentation for Models
- AzureDestinationFormProperties
- ConnectionCheck
- ConnectionDetails
- ConnectionStep
- ConnectionStepProps
- ConnectionStepPropsAnyOf
- ConnectionStepPropsJsonSchema
- CreateDestinationBody
- CreateSourceBody
- Destination
- DestinationFormProperties
- DestinationReportCard
- ErrorObject
- ErrorObjectError
- FieldLevelMetadata
- ForcedReplicationMethod
- ForcedReplicationMethodObject
- GoogleAnalyticsSourceFormProperties
- GoogleAnalyticsSourceFormPropertiesReportDefinitions
- HookNotification
- HookNotificationConfig
- Metadata
- MetadataObject
- MixpanelSourceFormProperties
- ReplicationJob
- S3DestinationFormProperties
- SalesforceSourceFormProperties
- Source
- SourceFormProperties
- SourceReportCard
- Stream
- StreamLevelMetadata
- StreamSchema
- StreamUpdate
- StreamsUpdateList
- UpdateSourceBody
Documentation for Authorization
bearerAuth
- Type: Bearer authentication
Development
To develop stitch_connect_client, install dependencies and enable the pre-commit hook:
pip install pre-commit tox
pre-commit install
To run tests:
tox
To regenerate the client, run:
npx openapi-generator generate \
-i https://raw.githubusercontent.com/NarrativeScience/stitch-connect-openapi/master/openapi.yml \
-g python \
-o . \
--library asyncio \
--package-name stitch_connect_client \
--git-user-id NarrativeScience \
--git-repo-id stitch-connect-python \
-p packageVersion=0.6.2 \
-t templates
Metadata
Release files for stitch_connect_client 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| stitch_connect_client-0.6.2.tar.gz | 74.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stitch_connect_client-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.0 kB
Release files / stitch_connect_client-0.6.2.tar.gz
| Download URL | stitch_connect_client-0.6.2.tar.gz |
|---|---|
| Size | 74.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e9eb364f8d520e37b6b7ab6c627f5a3d5640a1a0f831f994ff810def0de283d
|
|
BLAKE2b-256 checksum How to use checksums |
30fb52db4f5ed1f5c1533d6b7fb8d71de7f1bd94d3b3e89a3b5cfa7df3147bc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / stitch_connect_client-0.6.2-py3-none-any.whl
| Download URL | stitch_connect_client-0.6.2-py3-none-any.whl |
|---|---|
| Size | 102.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b9f0f57db5c34006b4ada0ea60871d892d2add3bdcc1c29325b18c5dafe4c12
|
|
BLAKE2b-256 checksum How to use checksums |
c2c75d63c0e0ba0de8388d2eba2395801457312d2559fc57c2de12750ec59e67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for stitch_connect_client 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.