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
File details
Details for the file SimilarNeuron-0.0.3.tar.gz
.
File metadata
- Download URL: SimilarNeuron-0.0.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74214daeec70efbdeacdc2266402c7cf4e48a7d75bdc8b99292c5b7eb9b42e07 |
|
MD5 | 963b0f1cdcf82f6ec79aee7ca6851354 |
|
BLAKE2b-256 | 04f4aff1d6355a19ff4c23408e25299583864e14991cecc453e94e815e941670 |
File details
Details for the file SimilarNeuron-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: SimilarNeuron-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7565b10b9edf2811cad6e0148df3e8ce7a96a9e512d0c221c26a52334159ac |
|
MD5 | dbf4fdc18cb388b404eafcb6447f209f |
|
BLAKE2b-256 | 3cd7c5ac8002d33b2412e32b3819ec19c9db6d29c955800d0e9e5f92b15d7ac2 |