Skip to main content

pipen-deprecated

Marking pipen processes as deprecated.

Installation

pip install -U pipen-deprecated

Enable/Disable

The plugin is enabled by default after installation. To disable it, either uninstall it or:

from pipen import Proc, Pipen

# process definition

class MyPipeline(Pipen):
    plugins = ["-deprecated"]

Usage

To mark a process as deprecated, use the @mark(deprecated=...) decorator.

from pipen import Proc
from pipen.utils import mark

@mark(deprecated=True)
class ProcDeprecatedTrue(Proc):
    ...


@mark(deprecated="This process is deprecated.")
class ProcDeprecatedMessage(Proc):
    ...

When a deprecated process is run, a warning message will be logged.

If the process is marked with deprecated=True, the message will be:

[ProcDeprecatedTrue] is deprecated and will be removed in a future release.

If a custom message is provided, it will be used instead:

[ProcDeprecatedMessage] This process is deprecated.

You can use proc in the message as a placeholder for the process class. For example:

@mark(deprecated='"{proc.name}" is deprecated.')
class ProcDeprecatedMessage(Proc):
    ...

This will log:

"ProcDeprecatedMessage" is deprecated.

Download files

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

Source Distribution

pipen_deprecated-1.0.3.tar.gz (92.0 kB view details)

Uploaded Source

Built Distribution

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

pipen_deprecated-1.0.3-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file pipen_deprecated-1.0.3.tar.gz.

File metadata

  • Download URL: pipen_deprecated-1.0.3.tar.gz
  • Upload date:
  • Size: 92.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pipen_deprecated-1.0.3.tar.gz
Algorithm Hash digest
SHA256 26060fadce2e952630c2b3e994be9ddc4d022f232da3d341d960e9174400937d
MD5 4e627f8ecaaa22b7c6628c5e621abf80
BLAKE2b-256 9ae7f72feee1642cfabd1090107c9e16ce1dfa0145e8c79cc8e38356c70b213c

See more details on using hashes here.

File details

Details for the file pipen_deprecated-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pipen_deprecated-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pipen_deprecated-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25488fdc46f8bd9b2ade5dba7d2983e2740939dadf29dfad02af50f2c9727586
MD5 e56363c7dbc5ba271846bd053c3530aa
BLAKE2b-256 ad33ff464fd1cf8905bd33d9f1e53572d2ccc68d5a174ae4817003ced77328dd

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 Sentry Error logging StatusPage Status page