← Back to team overview

kicad-developers team mailing list archive

Re: Footprint python plugin: Is it possible to merge ?

 

Hi Jean-Samuel

Aha, that makes sense.

Maybe the following is a bad idea, but anyway -- here goes.
With that I guess one could even make a script that is cloning and
updating the kicad footprints from github and chaching them also.

Nick

2014-11-03 18:28 GMT+01:00 Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx>:
> Hi Nick,
>
> Sorry I'm not always clear in my explaination...
>
> This plugin provide a gateway to custom plugin writen in python.
> For example you can write a new plugin in python to fetch some footprint
> from a database for example...
>
> Thanks,
> Le 03/11/2014 17:37, Nick Østergaard a écrit :
>> Hi Jean-Samuel
>>
>> What exactly does this do? I guess a section for the documentation has
>> to be written to describe the purpose or functionality of this option.
>>
>> Does this plugin then run a python script that magically creates the
>> footprint you have in mind or? Does this provide a gateway to make
>> some custom plugin to fetch footprints from various sources from a
>> simple python?
>>
>> Sorry for all the questionmarks, but I don't quite get what exactly
>> this is. (I have not tried it yet)
>>
>> Nick
>>
>> 2014-11-03 15:14 GMT+01:00 Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx>:
>>> Hi All,
>>>
>>> I wrote few months ago an extension to be able to write in python a
>>> footprint library plugin.
>>> ie: for the moment for footprint you have to choice between:
>>> - Kicad
>>> - Legacy
>>> - GitHub
>>> ...
>>> And I had write a "Python". You choose the python module to load (the
>>> module name as an option of the python plugin) and this python
>>> module have to implement some functions to do the job.
>>>
>>> This code is currently under a branch :
>>> lp:~kicad-developers/kicad/python_plugin
>>>
>>> Specific code is mainly in pcbnew/fppython/ and there is a python
>>> example in pcbnew/fppython/fppython_example.py.
>>>
>>> I regularly merge with upstream to maintain this branch up to date.
>>> I cleanned up the code to meet coding standard.
>>>
>>> Is it possible to merge on main branch ?
>>>
>>> Regards,
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References