File: README

package info (click to toggle)
cpopen 1.4-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 128 kB
  • sloc: ansic: 293; python: 293; makefile: 38
file content (26 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# CPopen

A C reimplementation of the tricky bits of Python's Popen.

It is currently implemented in a very specific way and might break under
general use.

# TODO

* Support string invocation - Currently only support array invocation
* Support after fork func
* Support all stream modes - Currently everything has to be PIPE

# Usage

```{.python}
import cpopen
proc = cpopen.CPopen(["echo", "3"])
proc.communicate()
```

# Running the tests

```{.bash}
nosetests tests/tests.py
```