Skip to content

mdobson/python-spam-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example native python extension written in C

This is a sample python extension written in C. This is the result of two tutorials for python 2.7:

  1. Building an extension in C
  2. Using distutils to make a build file

Simply run python setup.py build and python setup.py install. This will expose the spam module. From there use spam.system() to execute shell commands. E.x spam.system("ls -l").

About

Example native extension module for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published