Skip to main content

Disruptive Technologies Python Integrations

build codecov

Documentation

Installation

The package can be installed through pip:

pip install --upgrade dtintegrations

or from source:

pip install .

Requirements

  • Python 3.8, 3.9, 3.10, 3.11

Usage

Currently, the main functionality of this package is validating requests forwarded by a Data Connector.

The following example shows this for a Google Cloud Function.

from dtintegrations import data_connector, provider


def endpoint(request):
    # Validate and decode the incoming request.
    payload = data_connector.HttpPush.from_provider(
        request=request,
        provider=provider.GCLOUD,
        secret='<SIGNATURE_SECRET>',
    )

    # Print the payload data.
    print(payload)

    # If all is well, return 200 response.
    return ('OK', 200)

Examples

A few examples has been provided, but must be run either on a serverless platform or locally with a combination or ngrok and the appropriate development framework.

Exceptions

If a method is unsuccessful or has been provided with invalid parameters, an exception is raised. A list of available exceptions are available in the API Reference.

Development

Set up the development virtualenv environment:

make

Run unit-tests against the currently active python version:

make test

Lint the package code using MyPy and flake8:

make lint

Build the package distribution:

make build

Metadata

Release files for dtintegrations 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dtintegrations 0.6.1
File Size Uploaded Provenance Actions
dtintegrations-0.6.1.tar.gz 8.1 kB Without provenance Details for dtintegrations-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dtintegrations 0.6.1
File Interpreter ABI Platform Actions
dtintegrations-0.6.1-py3-none-any.whl Python 3 none any Details for dtintegrations-0.6.1-py3-none-any.whl

Total release size: 16.9 kB

Release files / dtintegrations-0.6.1.tar.gz

Download URL dtintegrations-0.6.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c26b657b264149860999c2c672579c464ad45d6ea27ed30c44df9dbe78eb33ce
BLAKE2b-256 checksum
How to use checksums
dc551db90fb7f649caf0e02cfc8073967da991432c28f6390865dca664d6dcf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / dtintegrations-0.6.1-py3-none-any.whl

Download URL dtintegrations-0.6.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7242addd4303e2198bd9bb8d2cff1dfc9539798b8600f6089ae49ef0b5e84fb5
BLAKE2b-256 checksum
How to use checksums
8884b4d61a5bc72787bdca3842634912b18d9ceba66ca41513196cf1fc716b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Security for dtintegrations 0.6.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page