You are not logged in.

#1 2013-05-17 11:37:27

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Python API files

Hi,

These (generated?) files are instrumental in library function names autocompletion or calltips or some such things. Some genius invented a killer name for them (pun intended). This API acronym virtually disables Google. I'd be most grateful for some relevant links. Expanded API acronym is welcome, too.

Last edited by Llama (2013-05-17 15:02:50)

Offline

#2 2013-05-17 13:09:47

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Python API files

I'm so confused! Do you have a question?

What do you mean by "These files"?

"API" = Application Programming Interface

Offline

#3 2013-05-17 13:19:50

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Python API files

I think he's asking about something else that's called API and that its similarity to that other acronym makes searching for it impossible.

Offline

#4 2013-05-17 14:54:43

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Python API files

jakobcreutzfeldt wrote:

I think he's asking about something else that's called API and that its similarity to that other acronym makes searching for it impossible.

My point exactly.

Offline

#5 2013-05-17 14:57:14

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Python API files

Could you explain a bit better what you're looking for? I have no idea based on your original question.

Offline

#6 2013-05-17 15:12:52

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: Python API files

SciTE uses .api files to hold autocomplete and calltip information. AFAIK that naming scheme was chosen because it represents the application programming interface of that particular language.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2013-05-17 15:13:38

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Python API files

jakobcreutzfeldt wrote:

Could you explain a bit better what you're looking for? I have no idea based on your original question.

Well... Editor settings of the Eric Python IDE comprise the API tab. There is a "Compile APIs Automatically" check box, a choice of programming languages (combo box), and an (empty) list of presumably 'compiled' APIs. There are also cryptic boxes like 'Add from Installed APIs' and 'Add from Plugin APIs'. That's all I have to go on. I've got an impression that it is a Python feature, not Eric's.

Offline

#8 2013-05-17 15:20:53

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: Python API files

For eric4, there is a tool to generate those files: http://manned.org/eric4-api.1
Since this ide uses scintilla they should be similar to SciTE I think.

PS: You should also look into the rope-plugin. I think it could provide autocompletion without generating api files and using the python source directly instead.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#9 2013-05-17 15:21:35

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Python API files

Llama wrote:

Editor settings of the Eric Python IDE comprise the API tab. There is a "Compile APIs Automatically" check box, a choice of programming languages (combo box), and an (empty) list of presumably 'compiled' APIs. There are also cryptic boxes like 'Add from Installed APIs' and 'Add from Plugin APIs'. That's all I have to go on. I've got an impression that it is a Python feature, not Eric's.

What is your question? Please use a question mark! big_smile

Offline

#10 2013-05-17 15:23:54

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Python API files

progandy wrote:

For eric4, there is a tool to generate those files: http://manned.org/eric4-api.1

Thanks! Do you mean there's no such tool for eric5?

Offline

#11 2013-05-17 15:25:00

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Python API files

A quick perusal of the Eric documentation suggests that it's an Eric thing, not a Python thing.

Offline

#12 2013-05-17 15:30:04

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Python API files

jakobcreutzfeldt wrote:

A quick perusal of the Eric documentation suggests that it's an Eric thing, not a Python thing.

The usage isn't very clear either way.

Offline

#13 2013-05-17 15:32:46

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Python API files

http://comments.gmane.org/gmane.comp.ide.eric/513

Do you have a script called something like eric{4,5}-api.py? Apparently that's what you need to generate API files, by feeding the script .py files, or something to that extent.

Offline

#14 2013-05-17 15:37:06

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Python API files

jakobcreutzfeldt wrote:

http://comments.gmane.org/gmane.comp.ide.eric/513

Do you have a script called something like eric{4,5}-api.py? Apparently that's what you need to generate API files, by feeding the script .py files, or something to that extent.

Yes, there's eric5_api.py. That's something to start with. Thanks!

Offline

Board footer

Powered by FluxBB