معرفی شرکت ها


craygraph-0.3.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A small toolkit for building dataflow-based framework.
ویژگی مقدار
سیستم عامل -
نام فایل craygraph-0.3.0
نام craygraph
نسخه کتابخانه 0.3.0
نگهدارنده ['Maxim Borisyak']
ایمیل نگهدارنده ['maximus.been@gmail.com']
نویسنده Maxim Borisyak and contributors.
ایمیل نویسنده maximus.been@gmail.com
آدرس صفحه اصلی https://gitlab.com/craynn/craygraph
آدرس اینترنتی https://pypi.org/project/craygraph/
مجوز MIT
# CRayGraph A toolkit for defining dataflow-based frameworks. Intended for use in CRayNN (network definitions) and CRayFlow (dataflow definitions). ## Installation ### via PyPi ``` pip install craygraph ``` ### via git `CRayGraph` can be installed directly from `gitlab.com`: ``` pip install git+https://gitlab.com/craynn/craygraph.git ``` however, as repository updates quite often, it is recommend to clone the repository and install the package in development mode: ``` git clone git@gitlab.com:craynn/craygraph.git cd craygraph/ pip install -e . ``` ## Usage This package provides three main functions: - `cragraph.graph` : utilities for constructing easily readable definitions of directed acyclic graphs (DAGs); - `cragraph.meta` : functions that help quickly adopt custom classes to work with `cragraph.graph`. ## DAG definition language The main feature of `craygraph` is intuitive and readable DAG definition language. ### Quick introduction > Below, functions like `a, b, c, d` represent node (subgraph) > constructors, i.e. `(*Node) -> Node` or `(*Node) -> list[Nodes]`, `x, y, z` represent input nodes. #### Tuple of functions = composition ```python achain(a, b, c, d)(x) ``` is equivalent to: ```python d(c(b(a(x)))) ``` and produces: ![linear graph](https://gitlab.com/craynn/craygraph/-/raw/imgs/imgs/linear.png) #### List of functions = independent application: ```python result = achain(a, [b, c], d)(x) ``` is equivalent to: ```python a_x = a(x) result = d(b(a_x), c(a_x)) ``` and results in the following graph: ![linear graph](https://gitlab.com/craynn/craygraph/-/raw/imgs/imgs/split.png) `craygraph.graph` contains some helper functions. `select[items](body)` selects inputs according to `items` and applies `body` ```python select[item](f)(*args) == f(args[item]) ``` for example: ```python result = achain( select[0, -1](a, b), c )(x, y, z) ``` is equivalent to: ```python result = c(b(a(x, z))) ``` which results in (node `y` is omitted since it is not used): ![linear graph](https://gitlab.com/craynn/craygraph/-/raw/imgs/imgs/select.png) `with_inputs[items](body)` is similar to `select`, but it takes inputs and replaces selected inputs with the result of `body`: ```python result = achain( with_inputs[0, -1](a, b), c )(x, y, z) ``` is equivalent to: ```python result = c(b(a(x, z))) ``` which results in: ![linear graph](https://gitlab.com/craynn/craygraph/-/raw/imgs/imgs/with_inputs.png)


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl craygraph-0.3.0:

    pip install craygraph-0.3.0.whl


نصب پکیج tar.gz craygraph-0.3.0:

    pip install craygraph-0.3.0.tar.gz