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.1a0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766059a2d14603658a85181bedf060061af15565deed9dd275eb50462b83a8b9 |
|
MD5 | 887f34ab2ceecc06ed7493dda589fade |
|
BLAKE2b-256 | 4d5d2487bd56a36a3686abcdd7e32c1e94e20860c532d33a7b7f41e6bddc002b |