معرفی شرکت ها


ciscoglass-0.1.5


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Wrapper/SDK for Cisco Glass Apps
ویژگی مقدار
سیستم عامل -
نام فایل ciscoglass-0.1.5
نام ciscoglass
نسخه کتابخانه 0.1.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Adyanth H
ایمیل نویسنده adyah@cisco.com
آدرس صفحه اصلی https://wwwin-github.cisco.com/ciscoglass/python-sdk.git
آدرس اینترنتی https://pypi.org/project/ciscoglass/
مجوز -
# CiscoGlass Python SDK This is a python library to help simplify the process of building python apps for Cisco Glass. This provides an interface which abstracts away most of the repetitive code needed. Here is a sample below: ```python from ciscoglass import GlassApp import requests import time class SampleRequest(GlassApp): def run(self): endpoint = self.get_devices("TEST")[0] resp = requests.get(f"https://{endpoint.host}/json", auth=(endpoint.username, endpoint.password)) with self.file("log.txt", 'w') as f: f.writelines([ f"Log Time: {time.strftime('%Y%m%d-%H%M%S')}\n", resp.text + '\n' ]) print("Ran successfully, please check the log for more details!") if __name__ == "__main__": SampleRequest().run() ``` It provides a robust file access method which has functionality such as copy on write if in case you want to modify an input file, without you manually having to copy the files to output location. Also, there is no need to remember the locations of input/output files, calling the API for device list, etc. Further, it has a CLI interface to get you started with a default template for an app, including the Dockerfile and a sample JSON spec created for you. You can run the command as such: ```shell script python -m ciscoglass --help python -m ciscoglass create my_first_glass_app ```


نیازمندی

مقدار نام
- requests
- click


نحوه نصب


نصب پکیج whl ciscoglass-0.1.5:

    pip install ciscoglass-0.1.5.whl


نصب پکیج tar.gz ciscoglass-0.1.5:

    pip install ciscoglass-0.1.5.tar.gz