Skip to content

soulseekah/pyflingfd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyflingfd

A simple Python binding for https://github.com/sharvil/flingfd - a small, standalone C library to pass file descriptors across processes on Linux.

Usage

import flingfd
import os

fd = flingfd.simple_recv( '/tmp/uniquefile' )
os.write( fd, 'fling!' )
os.fsync( fd )
import flingfd
import sys

flingfd.simple_send( '/tmp/uniquefile', sys.stdout )

Installation

Installing is super easy:

  • clone the repository
  • issue git submodule init && git submodule update inside of it to get libflingfd sources
  • then pip install -U . or python setup.py install should work out of the box