A similar-neuron system in Python world.
Project description
<div align=”center”>
# Similar-Neuron
_A similar-neuron system in Python world._
> 元梦元宙,无极无穷
[![CodeFactor](https://www.codefactor.io/repository/github/luxuncang/similar-neuron/badge)](https://www.codefactor.io/repository/github/luxuncang/similar-neuron) [![GitHub](https://img.shields.io/github/license/luxuncang/similar-neuron)](https://github.com/luxuncang/similar-neuron/blob/master/LICENSE) [![CodeQL](https://github.com/luxuncang/similar-neuron/workflows/CodeQL/badge.svg)](https://github.com/luxuncang/similar-neuron/blob/master/.github/workflows/codeql-analysis.yml)
</div>
## 入门
[PEP 484 – Type Hints](https://www.python.org/dev/peps/pep-0484/)
[pydantic](https://pydantic-docs.helpmanual.io/)
[inspect 模块](https://docs.python.org/zh-cn/3.8/library/inspect.html)
## 体系
[X] FunAdapter
[X] Granular
[ ] Listener
## 仿生结构
监听器-树突
分类器(过滤器)-胞体
执行器(调度器)-轴突
适配器-突触(末梢)
## FunAdapter
为了平滑适配接口,提供一个易于解耦的通用适配器,为函数提供一致性的栈空间 特性
依赖注入
依赖穿透
支持async/await
### Adapter
`Adapter` 是一个事件簇的抽象,根据其依赖的上下文创造出一种调用方式
![Adapter](docs/FuncAdapter.jpg)
coupler 协议转换栈(可选)
match 事件匹配栈(可选)
funcevnets 函数事件簇栈(必须)
callback 回调事件栈(可选)
exmaple: [AdapterEvent](src/test/test3-AdapterEvent.py)
### FramePenetration
`FramePenetration` 是一个自动依赖注入的上下文
exmaple: [FramePenetration](src/test/test1-FramePenetration.py)
## Granular
根据**实体**和**约束**进行完备粒度控制,100%控制所有终端实体
`Granular` 是 `SimilarNeuron` 的核心,为贯彻古今未来,将宇宙悉数辉映的重要基石,它魅力无限!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SimilarNeuron-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7565b10b9edf2811cad6e0148df3e8ce7a96a9e512d0c221c26a52334159ac |
|
MD5 | dbf4fdc18cb388b404eafcb6447f209f |
|
BLAKE2b-256 | 3cd7c5ac8002d33b2412e32b3819ec19c9db6d29c955800d0e9e5f92b15d7ac2 |