There are some examples of API usage here:
http://pep8.readthedocs.org/en/latest/advanced.html

Then you can have a look at Flake8 or other tools:
https://github.com/jcrocholl/pep8/wiki/RelatedTools#integration-of-pep8-with-other-tools

--
Florent


2013/5/1 Florent <florent.xicluna@gmail.com>
Hello,

I'm the current maintainer of pep8. I confirm that the project provides a public API and can be used as a library since version 1.3.
http://pep8.readthedocs.org/en/latest/api.html

There are many tools which already use it.
If you need something different, feel free to open an issue on the issue tracker, on GitHub.

--
Florent Xicluna


2013/5/1 harry <fortharris@gmail.com>

hi, i am currently working on an ide for python, i intended to enable pep8 checking by default but as it turned out, the checker was written purposefully for the command line making it a bit difficult and untidy to incorporate into the ide. i will therefore suggest that for future release, you enable the checker to be usable as a library so that the output can easily be processed and also the overal build of my ide will be a bit more compact. thanks.


_______________________________________________
code-quality mailing list
code-quality@python.org
http://mail.python.org/mailman/listinfo/code-quality