bitbucket-pipes-toolkit-3.2.1


توضیحات

This package contains various helpers for developing bitbucket pipelines pipes
ویژگی مقدار
سیستم عامل -
نام فایل bitbucket-pipes-toolkit-3.2.1
نام bitbucket-pipes-toolkit
نسخه کتابخانه 3.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Atlassian
ایمیل نویسنده bitbucketci-team@atlassian.com
آدرس صفحه اصلی https://bitbucket.org/bitbucketpipelines/bitbucket-pipes-toolkit
آدرس اینترنتی https://pypi.org/project/bitbucket-pipes-toolkit/
مجوز -
Bitbucket Pipes Toolkit ========= ![Coverage](https://bitbucket.org/bitbucketpipelines/bitbucket-pipes-toolkit/downloads/coverage.svg) 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 ```python3 import os 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' } # Set environment variables required in schema. os.environ['USERNAME'] = 'user' os.environ['PASSWORD'] = 'pwd' my_pipe = MyPipe(pipe_metadata=pipe_metadata, schema=schema) my_pipe.run() ``` Documentation ============= For more details have a look at the [official documentation](https://bitbucket-pipes-toolkit.readthedocs.io).


نحوه نصب


نصب پکیج whl bitbucket-pipes-toolkit-3.2.1:

    pip install bitbucket-pipes-toolkit-3.2.1.whl


نصب پکیج tar.gz bitbucket-pipes-toolkit-3.2.1:

    pip install bitbucket-pipes-toolkit-3.2.1.tar.gz