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.1.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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dlt_source_slack-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 13395cd939ece62df476df69eefe628e932da93f5e5d0d6841f552c4c70c9292
MD5 402d2eb25bf484d4960c814de8a52c7e
BLAKE2b-256 ccfadd7b8498e16c312dce4b0187dde488bcd1aceb7f6a3711f346f91e2b100d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_slack-0.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dlt_source_slack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 073c7ff2dee3fa086689611d4d5609c75154f8d926fa9a03b0e724d15ba5f502
MD5 8a0b5f499bc49fc28c44d1feb10c8de8
BLAKE2b-256 68a65552621546ccd229cde1e9c445fd728b0a071c119067701f503350ced899

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_slack-0.0.1-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