Skip to main content

A collection of Luigi tasks for data processing

Project description

Luigi Tasks

A collection of Luigi tasks for data processing.

Installation

You can install this package from PyPI:

pip install luigi-tasks

Or install directly from the source:

pip install .

Available Tasks

HelloTask

A simple task that prints "Hello, World!" and creates a hello.txt file.

from luigi_tasks import HelloTask
import luigi

luigi.build([HelloTask()], local_scheduler=True)

PrintTask

A task that prints a custom message and saves it to a file.

from luigi_tasks import PrintTask
import luigi

# Run with default message
luigi.build([PrintTask()], local_scheduler=True)

# Run with custom message
luigi.build([PrintTask(message="Custom message")], local_scheduler=True)

Using in Docker

To use this package in a Docker container, add the following to your Dockerfile:

FROM python:3.12-slim

# Install the package
RUN pip install luigi-tasks

# Your other Docker configurations...

Development

To set up the development environment:

  1. Clone the repository
  2. Install development dependencies:
    pip install -e ".[dev]"
    
  3. Run tests (if available):
    pytest
    

Building for PyPI

To build and publish to PyPI:

  1. Update the version in pyproject.toml
  2. Build the package:
    python -m build
    
  3. Upload to PyPI:
    python -m twine upload dist/*
    

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

luigi_tasks-0.1.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

luigi_tasks-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file luigi_tasks-0.1.3.tar.gz.

File metadata

  • Download URL: luigi_tasks-0.1.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for luigi_tasks-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ec88dc61a27a1771761f9c3e01a573d77cab7b84436612790d90efbacbd91a32
MD5 54ebd05051176658cb0c3ca0abf7a9b6
BLAKE2b-256 92acf136dc6c4806d80e27b4af9b1bc040d8b2bb94ca91726479941f6cfc4094

See more details on using hashes here.

File details

Details for the file luigi_tasks-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: luigi_tasks-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for luigi_tasks-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5918cb528f9dbd03e68f29fbd31d45d412af8c3dda6758436c37cb3a7a3132
MD5 90f39c927a22ed53b2ddea7e7057d719
BLAKE2b-256 0cbe6300ba0e41017189cb22a5b689a884ab908b0d755f430d6e3f2bf4d51319

See more details on using hashes here.

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