Skip to main content

DLT (dlthub.com) source for Slack (slack.com)

Project description

dlt-source-slack

PyPI version

DLT source for slack.

Currently loads the following data:

Table Contains
users Items of the users model

Why are you not using the dlt-hub/verified-sources slack source / Differences

The official verified source has a few drawbacks:

  • on usage of the verified source, a copy of the current state of the dlt-hub/verified-sources repository is copied into your project; Once you make changes to it, it effectively becomes a fork, making it hard to update after the fact.
  • This makes use of a preexisting client implementation

Usage

Create a .dlt/secrets.toml with your API token (see dlt_source_slack/manifest.yml for a Slack app manifest that has the necessary credentials):

slack_bot_token = "xoxb-..."

and then run the default source with optional list references:

from dlt_source_slack import source as slack_source

pipeline = dlt.pipeline(
   pipeline_name="slack_pipeline",
   destination="duckdb",
   dev_mode=True,
)
slack_data = slack_source()
pipeline.run(slack_data)

Development

This project is using devenv.

Commands:

Command What does it do?
format Formats & lints all code
sample-pipeline-run Runs the sample pipeline.
sample-pipeline-show Starts the streamlit-based dlt hub

Run the sample

SLACK_BOT_TOKEN=[xoxb-...] \
  sample-pipeline-run

alternatively you can also create a .dlt/secrets.toml (excluded from git) with the following content:

slack_bot_token = "xoxb-..."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dlt_source_slack-0.0.2.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dlt_source_slack-0.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file dlt_source_slack-0.0.2.tar.gz.

File metadata

  • Download URL: dlt_source_slack-0.0.2.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dlt_source_slack-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bf112019d19139d0ba85203f46d604301b8e5c91982a65cc856fc2e449f11d1f
MD5 52a17d469f0ad5dd0bbfe60193708e1d
BLAKE2b-256 555f21826e8d7e1969ad20683222508c1d1369e567a636d4c264580b44b3458f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_slack-0.0.2.tar.gz:

Publisher: test.yml on planet-a-ventures/dlt-source-slack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dlt_source_slack-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dlt_source_slack-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f50860374d9ef07c68a95c9692cb2d9144947333a54f836eb18850d4795474ad
MD5 71b63f849a4c0d0fbe246a1704388cf7
BLAKE2b-256 471d936b2a76abd41f8cd4cb9241184b3d650211030f9166fa02566fbe9b70cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_slack-0.0.2-py3-none-any.whl:

Publisher: test.yml on planet-a-ventures/dlt-source-slack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page