| | |
API Maker
Thread Solved
![]() |
Hi
From using java and BlueJ i have found it quite easy to make your own api using inbuilt things in BlueJ. So i was wondering if there was anything in python that would take a python program and find all of the definitions and make an API from that, in which the API would have the arguments needed as well as the docstring and other comments.
So if anyone has heard of a tool that would do this that would be lovely,
cheers
Paul
From using java and BlueJ i have found it quite easy to make your own api using inbuilt things in BlueJ. So i was wondering if there was anything in python that would take a python program and find all of the definitions and make an API from that, in which the API would have the arguments needed as well as the docstring and other comments.
So if anyone has heard of a tool that would do this that would be lovely,
cheers
Paul
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
The pydoc module (used by the function 'help') finds all definitions in a module and produces text or html documentation. I read that it does this by importing the module first and then using objects introspection. If you look at the code of
pydoc.py in your standard library, you should find tools to extract the api from the module. This could be a good starting point, with a lot of work already done. Last edited by Gribouillis; Jan 7th, 2009 at 5:26 am.
cheers grib that works a treat, i like the HTML making it does, thanks!
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
![]() |
Similar Threads
- Post Hibernation Issues (Windows Vista and Windows 7)
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- This is a wierd one! (Windows NT / 2000 / XP)
- [Java] Looking for Team - 3D Model Viewer & Converter (Software Development Job Offers)
- Virus Of Death - Help Needed! (Viruses, Spyware and other Nasties)
- Game crashes while playing any game. (Windows NT / 2000 / XP)
Other Threads in the Python Forum
- Previous Thread: Pattern / Image matching
- Next Thread: pycurl cookies
| Thread Tools | Search this Thread |
alarm ansi anydbm app assignment backend beginner binary bluetooth character cipher cmd coordinates customdialog cx-freeze data decimals development directory dynamic exe feet file float format function generator getvalue gnu graphics halp handling heads homework http ideas input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame pymailer python queue random recursion recursive schedule screensaverloopinactive script slicenotation sqlite ssh statistics string strings sudokusolver text thread time tlapse tuple ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib xlwt





