RSS Forums RSS

API Maker

Please support our Python advertiser: Programming Forums
Thread Solved
Reply
Posts: 655
Reputation: paulthom12345 will become famous soon enough paulthom12345 will become famous soon enough 
Solved Threads: 91
paulthom12345's Avatar
paulthom12345 paulthom12345 is offline Offline
Practically a Master Poster

API Maker

  #1  
Jan 6th, 2009
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
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
AddThis Social Bookmark Button
Reply With Quote  
Posts: 521
Reputation: Gribouillis will become famous soon enough Gribouillis will become famous soon enough 
Solved Threads: 92
Gribouillis's Avatar
Gribouillis Gribouillis is offline Offline
Posting Pro

Re: API Maker

  #2  
Jan 7th, 2009
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 4:26 am.
Reply With Quote  
Posts: 655
Reputation: paulthom12345 will become famous soon enough paulthom12345 will become famous soon enough 
Solved Threads: 91
paulthom12345's Avatar
paulthom12345 paulthom12345 is offline Offline
Practically a Master Poster

Re: API Maker

  #3  
Jan 7th, 2009
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Python Forum
Views: 290 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:49 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC