معرفی شرکت ها


CndIO-2.1.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Tools to manage In/Out file. Easy to add new class if you need to change source/dest (file system, git ...)
ویژگی مقدار
سیستم عامل OS Independent
نام فایل CndIO-2.1.3
نام CndIO
نسخه کتابخانه 2.1.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Denis FABIEN
ایمیل نویسنده denis.fabien@changendevops.com
آدرس صفحه اصلی https://gitlab.com/changendevops/cnd-io
آدرس اینترنتی https://pypi.org/project/CndIO/
مجوز MIT/X11
# CND IO Python lib to import/export content from/into different type of provider : filesystem, git etc... # Usage ## Declare a provider First you need declare a provider, in this sample only one provider is available : FileSystem For a more simple use of error message, this lib can use CndPrint ``` import cndprint import cnd_io _print = cndprint.CndPrint(level="Info") provider = cnd_io.CndProviderLocalfile(print=_print) ``` ## Use the provider local file system into cnd_io ``` import cndprint import cnd_io _print = cndprint.CndPrint(level="Info") provider = cnd_io.CndProviderLocalfile(print=_print) cnd_io = cnd_io.CndIO(provider, print=_print) ``` ## Use the provider gitlab into cnd_io ``` import cndprint import cnd_io _print = cndprint.CndPrint(level="Info") provider = cnd_io.CndProviderGitlab(creds={'private_token': 'my-private-token', host="https://gitlab.com/api/v4/"}, print=_print) cnd_io = cnd_io.CndIO(provider, print=_print) ``` ## Get Content with file system provider ``` cnd_io.pull_file('source_name', 'path/myfile.txt') ``` with gitlab provider ``` cnd_io.pull_file('source_name', 'path/myfile.txt', branch="main") ``` ## Send on file ``` cnd_io.push_file('source_name', 'path/myfile.txt', 'content_to_push') ``` ## Get YAML Content ``` cnd_io.pull_yaml_file('source_name', 'path/myfile.txt') ``` ## Send one YAML file ``` cnd_io.push_yaml_file('source_name', 'path/myfile.txt', 'content_to_push') ``` ## Send multiple file in the same time (one text file + 1 yaml file) ``` cnd_io.commit_file('source_name', 'path/myfile1.txt', content_to_push1) cnd_io.commit_yaml_file('source_name', 'path/myfile2.txt', content_to_push2) cnd_io.push_files('source_name') ```


نیازمندی

مقدار نام
- clint
- coverage


نحوه نصب


نصب پکیج whl CndIO-2.1.3:

    pip install CndIO-2.1.3.whl


نصب پکیج tar.gz CndIO-2.1.3:

    pip install CndIO-2.1.3.tar.gz