Skip to main content

This package containes various helpers for developing bitbucket pipelines pipes

Project description

Pipetools

This package contains various tools and helpers to make it more fun and easy for people to develope pipes. This includes improved colorized logging, shared data interface, array variables helpers and more.

Installation

pip install bitbucket_pipes_toolkit

Examples

Simple pipe example

from bitbucket_pipes_toolkit import Pipe

class MyPipe(Pipe):
    def run(self):
        super().run()
        print("I'm a simple little pipe")


# below is a simple schema for pipe variables.
schema = {'USERNAME': {'required': True, 'type': 'string'},
          'PASSWORD': {'required': True, 'type': 'string'}}

pipe_metadata = {
	'name': 'My Pipe',
	'image': 'mydockerimage:latest'
}
my_pipe=MyPipe(pipe_metadata=pipe_metadata, schema=schema)
my_pipe=pipe.run()

Documentation

For more details have a look at the official documentation.

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

bitbucket-pipes-toolkit-1.1.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file bitbucket-pipes-toolkit-1.1.1.tar.gz.

File metadata

  • Download URL: bitbucket-pipes-toolkit-1.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for bitbucket-pipes-toolkit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ae1ddec6e3e15e92777cec5771ac87d6dd4d4a4e44c677381f7a59dc019a0d8c
MD5 b101cb2c10a29805746f439dd3b52134
BLAKE2b-256 06c56af7be23252ad91d21a3303b5c4daeebb8e84b52df5114f1f887ee65471c

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