Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laike9m/Cyberbrain-Deprecated
[Deprecation] This project has been deprecated. Development moved to github.com/laike9m/Cyberbrain
https://github.com/laike9m/Cyberbrain-Deprecated
Last synced: 1 day ago
JSON representation
[Deprecation] This project has been deprecated. Development moved to github.com/laike9m/Cyberbrain
- Host: GitHub
- URL: https://github.com/laike9m/Cyberbrain-Deprecated
- Owner: laike9m
- Archived: true
- Created: 2018-10-27T17:30:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T06:17:50.000Z (about 4 years ago)
- Last Synced: 2024-10-29T23:34:40.407Z (15 days ago)
- Language: Python
- Homepage:
- Size: 438 KB
- Stars: 166
- Watchers: 10
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cyberbrain: helps you remember everything
# [Deprecation]: This project is deprecated and archived. I rewrote it from scratch, see https://github.com/laike9m/Cyberbrain.
[![Build Status](https://dev.azure.com/laike9m/laike9m/_apis/build/status/laike9m.Cyberbrain?branchName=master)](https://dev.azure.com/laike9m/laike9m/_build/latest?definitionId=1&branchName=master)
NOTE: This is a WIP, **DON'T** use it in production.
📢 I'm looking for collaborators who's interested in **visualization**. Please don't hesitate to contact me.
I gave a talk at PyCon China 2019 about Cyberbrain, slide can be found [here](https://yanshuo.io/assets/player/?deck=5d6c9136d37616007449891e#/).
## How to use
1. Install [Graphviz](https://www.graphviz.org/download/)
2. `pip install cyberbrain`
3. In your program, first call `cyberbrain.init()`, then call `cyberbrain.register(target_variable)`.Here's an example.
```python
def func_f(bar):
x = len(bar)
return xdef func_c(baa):
baa.append(None)
baa.append('?')def func_a(foo):
for i in range(2): pass
ba = [foo]
func_c(ba)
foo = func_f(ba) # foo is our target
cyberbrain.register(foo)import cyberbrain
cyberbrain.init()
fo = 1
func_a(fo)
```Run it, a pdf like this will be generated and automatically opened.
# Developement
First install [`Poetry`](https://github.com/sdispater/poetry), then run `poetry install`.