Skip to main content

Dagster Toolbox

A set of tools to ease Dagster usage

Requirements

  • Python 3.10+
  • Dagster 1.6.13 / 0.22.13

Installation

pip install dagster-toolbox

Usage

New object storage resource

Declare resource

from dagster_toolbox.resources import ObjectStorage


class Analytics(ObjectStorage):
    bucket = "analytics"
    

@resource
def analytics_objects(init_context):
    return Analytics()


RESOURCE_DEFS = {
    "analytics_objects": analytics_objects,
}

Use resource

@asset
def export_files(context):
    partition_key = context.asset_partition_key_for_output()
    file_path = f"analytics/data/{partition_key}"
    
    file_resource = context.resource.analytics_objects.read(file_path)    
    ...

Download files

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

Source Distribution

dagster_toolbox-0.0.23.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

dagster_toolbox-0.0.23-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file dagster_toolbox-0.0.23.tar.gz.

File metadata

  • Download URL: dagster_toolbox-0.0.23.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for dagster_toolbox-0.0.23.tar.gz
Algorithm Hash digest
SHA256 65b6491f327e0c619704eb47d6b532cc9d48c3297b78403a02ba5353e9f65c5c
MD5 e622101ec292246744f742b276d94bd7
BLAKE2b-256 34f1e638a05150a9ee50a3f94b523fa9f7b47ddb9611503b12d9cfc6ba4cecb9

See more details on using hashes here.

File details

Details for the file dagster_toolbox-0.0.23-py3-none-any.whl.

File metadata

File hashes

Hashes for dagster_toolbox-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ad6494c44e822f2934e91a219481b54f90ec5395d3e353ec54436087fec6c5
MD5 23ec724de0a72702bd2374463959521b
BLAKE2b-256 edf8f9c7c85a45f5368dae4db215e24c110e402e5d59c9c8adada206d94b1698

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.23 This release

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Supported by

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