Skip to content

Commit 37e45ca

Browse files
committed
version bump 2.4.0
1 parent ac60196 commit 37e45ca

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Code2flow CHANGELOG
22

3+
## [2.4.0] - 2021-12-26
4+
- Implement subsets
5+
36
## [2.3.1] - 2021-12-13
47
- Colored edges
58
- Improve dependency robustness

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![code2flow logo](https://raw.githubusercontent.com/scottrogowski/code2flow/master/assets/code2flowlogo.png)
22

3-
![Version 2.3.1](https://img.shields.io/badge/version-2.3.1-brightgreen) ![Build passing](https://img.shields.io/badge/build-passing-brightgreen) ![Coverage 100%](https://img.shields.io/badge/coverage-100%25-brightgreen) ![License MIT](https://img.shields.io/badge/license-MIT-green])
3+
![Version 2.4.0](https://img.shields.io/badge/version-2.4.0-brightgreen) ![Build passing](https://img.shields.io/badge/build-passing-brightgreen) ![Coverage 100%](https://img.shields.io/badge/coverage-100%25-brightgreen) ![License MIT](https://img.shields.io/badge/license-MIT-green])
44

55
Code2flow generates [call graphs](https://en.wikipedia.org/wiki/Call_graph) for dynamic programming language. Code2flow supports Python, Javascript, Ruby, and PHP.
66

@@ -18,7 +18,7 @@ Code2flow is useful for:
1818

1919
Code2flow will provide a *pretty good estimate* of your project's structure. No algorithm can generate a perfect call graph for a [dynamic language](https://en.wikipedia.org/wiki/Dynamic_programming_language) - even less so if that language is [duck-typed](https://en.wikipedia.org/wiki/Duck_typing). See the known limitations in the section below.
2020

21-
*(Below: Code2flow running against a subset of itself)*
21+
*(Below: Code2flow running against a subset of itself `code2flow code2flow/engine.py code2flow/python.py --target-function=code2flow --downstream-depth=3`)*
2222

2323
![code2flow running against a subset of itself](https://raw.githubusercontent.com/scottrogowski/code2flow/master/assets/code2flow_output.png)
2424

@@ -52,7 +52,7 @@ Or, for javascript:
5252
code2flow myjavascriptfile.js
5353
```
5454

55-
You can also specify multiple files or import directories:
55+
You can specify multiple files or import directories:
5656

5757
```bash
5858
code2flow project/directory/source_a.js project/directory/source_b.js
@@ -66,6 +66,13 @@ code2flow project/directory/*.js
6666
code2flow project/directory --language js
6767
```
6868

69+
To pull out a subset of the the graph, try something like:
70+
71+
```bash
72+
code2flow mypythonfile.py --target-function my_func --upstream-depth=1 --downstream-depth=1
73+
```
74+
75+
6976
There are a ton of command line options, to see them all, run:
7077

7178
```bash

assets/code2flow_output.png

4.21 KB
Loading

code2flow/engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .model import (TRUNK_COLOR, LEAF_COLOR, NODE_COLOR, GROUP_TYPE, OWNER_CONST,
1515
Edge, Group, Node, Variable, is_installed, flatten)
1616

17-
VERSION = '2.3.1'
17+
VERSION = '2.4.0'
1818

1919
IMAGE_EXTENSIONS = ('png', 'svg')
2020
TEXT_EXTENSIONS = ('dot', 'gv', 'json')

0 commit comments

Comments
 (0)