• This repository has been archived on 08/Sep/2020
  • Stars
    star
    166
  • Rank 227,748 (Top 5 %)
  • Language
    Python
  • Created about 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[Deprecation] This project has been deprecated. Development moved to github.com/laike9m/Cyberbrain

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

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.

How to use

  1. Install Graphviz
  2. pip install cyberbrain
  3. In your program, first call cyberbrain.init(), then call cyberbrain.register(target_variable).

Here's an example.

def func_f(bar):
    x = len(bar)
    return x

def 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, then run poetry install.

More Repositories

1

Cyberbrain

Python debugging, redefined.
Python
2,503
star
2

pdir2

Pretty dir() printing with joy🍺
Python
1,320
star
3

Python-Type-Challenges

Master Python typing (type hints) with interactive online exercises!
Python
499
star
4

PyPunchP2P

Python实现NAT穿透+STUN+TURN+P2P聊天 | Python P2P chat
Python
434
star
5

My_Blog

My Django Blog
HTML
213
star
6

ezcf

Import configuration file for Pythonista
Python
159
star
7

zhihu-card

用卡片在个人网站上展示知乎账户
CSS
121
star
8

rsshub-zhihu-helper

如果你希望通过 RSSHub 浏览知乎,那么这个项目或许可以帮到你。
Python
70
star
9

Bad-Apple-Console

ASCII Art: Bad 🍎 in Windows console
C++
42
star
10

logseq-chatgpt

Talk to ChatGPT directly from Logseq
JavaScript
34
star
11

f

Log to a file without modifying code, with just one line 📝
Python
19
star
12

peerjs-with-nodewebkit-tutorial

How to integrate PeerJs into node-webkit/NW.js app
JavaScript
11
star
13

split_p

漫画图片分割 | split images for manga reading
Python
11
star
14

all_in_utf8

Recursively find and convert files to utf8 encoding
Python
5
star
15

VideoChat

elgg video chat plugin / elgg 视频通话插件
PHP
4
star
16

learn_socket

Learn Python socket programming
Python
3
star
17

CU_login

ChinaUnicom 自动登录断线重连
Python
3
star
18

Xylect

One-click AI search & translation, anywhere in your Mac
3
star
19

logseq-twitter-sync

JavaScript
2
star
20

MusicService

读取mp3生成markdown格式的音乐列表
Python
2
star
21

DataMining

DataMining Project
Python
1
star
22

spk_cmp2methods

compare 2 methods of speaker change detection
Python
1
star
23

h2-playground

Python
1
star
24

mysite1

My Django Project,consisting of my personal blog and the Mike Hilbert's tutorial things
Python
1
star
25

train

Python
1
star
26

Algorithm_homework_code

Python
1
star
27

pipAlwaysLatest

A wrapper around pip, install/generate requirements with the latest version
Python
1
star
28

Slides

HTML
1
star
29

cyberbrain-examples

Python
1
star
30

DumpRenrenPosts2Markdown

人人日志导出工具/Dump Renren Posts to Markdown
Python
1
star