| | |
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 |
accessdenied advanced apache application argv array beginner book builtin calculator change command converter countpasswordentry csv curved dan08 def dictionary dynamic edit enter event file float format function google homework import inches input jaunty java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric obexftp output parameters parsing path phonebook plugin prime programming py2exe pygame pyopengl python random recursion redirect remote return reverse scrolledtext session simple skinning software sprite statictext string strings syntax table terminal text textarea threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable voip wordgame wxpython





