Difference between revisions of "Third-party Addons"

From Gramps
Jump to: navigation, search
(Others)
(Others)
Line 161: Line 161:
 
'''I want to share some tips who help me'''
 
'''I want to share some tips who help me'''
  
* GRAMPS heart, core, API is written on [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/RelLib/ RelLib]
+
* GRAMPS [[Using_database_API|heart, core, API]] is written on [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/RelLib/ RelLib]
 
* On GRAMPS 2.2.x, as non-developper, I used two simple custom templates for exporting results (with [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/ListModel.py?view=markup ListModel] or internal glade), plus the python command line output !!! Fortunatly, GRAMPS 3.0 will introduce a simplified API. (see [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/Simple/_SimpleAccess.py?view=markup SimpleAccess.py] and [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/plugins/all_events.py?view=markup all_events.py]).
 
* On GRAMPS 2.2.x, as non-developper, I used two simple custom templates for exporting results (with [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/ListModel.py?view=markup ListModel] or internal glade), plus the python command line output !!! Fortunatly, GRAMPS 3.0 will introduce a simplified API. (see [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/Simple/_SimpleAccess.py?view=markup SimpleAccess.py] and [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/plugins/all_events.py?view=markup all_events.py]).
 
* Tools could be written too ... (see [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/PluginUtils/_Tool.py?view=markup Tool.py] and [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/plugins/DumpGenderStats.py?view=markup DumpGenderStats.py])
 
* Tools could be written too ... (see [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/PluginUtils/_Tool.py?view=markup Tool.py] and [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/plugins/DumpGenderStats.py?view=markup DumpGenderStats.py])

Revision as of 18:19, 6 July 2007

Third-party plugins and unsupported plugins you can use in GRAMPS to obtain extra functionality.

Installation of unsupported or third-party plugins in GRAMPS

To use one of these plugins add the file(s) to your ~/.gramps/plugins directory, and restart GRAMPS.

Age Statistics Plugin

The age statistics plugin shows the spread of ages in your database and age differences between parents and children. By Douglas S. Blank.

What does it do? This plugin shows the spread of ages in your database and age differences between parents and children. The file is at: http://bubo.brynmawr.edu/~dblank/AgeStats.py

Plugin author Douglas S. Blank.

Safety of your database This plugin only reads your data, and attempts no changes. However it's generally a good idea to make a backup before trying unsupported plugins.

User comments Here's a sample output:

--------+----------------------------------------------------+
  Age   |             Lifespan Age Distribution              |
--------+----------------------------------------------------+
   0-  5|XXXXXXXXXXXXXXXXXXXXXXXXXX                          |
   5- 10|XX                                                  |
  10- 15|                                                    |
  15- 20|XXXXXXXXXXXXX                                       |
  20- 25|XXXXXX                                              |
  25- 30|XXXXXX                                              |
  30- 35|XXXX                                                |
  35- 40|XXXXXXXX                                            |
  40- 45|XXXXXXXX                                            |
  45- 50|XXXXXX                                              |
  50- 55|XXXXXXXXXXXXXXXXX                                   |
  55- 60|XXXXXXXXXXXXXXXXX                                   |
  60- 65|XXXXXXXXXXXXXXXXXXXXXXXXXX                          |
  65- 70|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                    |
  70- 75|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                      |
  75- 80|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX             |
  80- 85|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
  85- 90|XXXXXXXXXXXXXXXXXXXXX                               |
  90- 95|XXXXXXXXXX                                          |
  95-100|XX                                                  |
 100-105|XXXX                                                |
 105-110|                                                    |
 110-115|                                                    |
 115-120|                                                    |
--------+----------------------------------------------------+
 Counts 0             6          12          18            24

Statistics:
  Total  : 155
  Minimum: 0
  Average: 60.55
  Median : 69
  Maximum: 101

--------+----------------------------------------------------+
  Diff  |        Father - Child Age Diff Distribution        |
--------+----------------------------------------------------+
   0-  5|                                                    |
   5- 10|                                                    |
  10- 15|                                                    |
  15- 20|XXXXXXXXX                                           |
  20- 25|XXXXXXXXXXXX                                        |
  25- 30|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
  30- 35|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
  35- 40|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   |
  40- 45|XXXXXXXXXXXXXXXXXXX                                 |
  45- 50|XXXXXXXXX                                           |
  50- 55|XXXXXX                                              |
  55- 60|XXXX                                                |
--------+----------------------------------------------------+
 Counts 0            21          43          64            86

Statistics:
  Total  : 359
  Minimum: 0
  Average: 33.30
  Median : 32
  Maximum: 58

--------+----------------------------------------------------+
  Diff  |        Mother - Child Age Diff Distribution        |
--------+----------------------------------------------------+
   0-  5|                                                    |
   5- 10|                                                    |
  10- 15|                                                    |
  15- 20|XXX                                                 |
  20- 25|XXXXXXXXXXXXXXXXXXXXXX                              |
  25- 30|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
  30- 35|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX               |
  35- 40|XXXXXXXXXXXXXXXXXXXXXXXX                            |
  40- 45|XXXXXXX                                             |
  45- 50|XXXX                                                |
  50- 55|                                                    |
  55- 60|                                                    |
--------+----------------------------------------------------+
 Counts 0            30          60          90           121

Statistics:
  Total  : 360
  Minimum: 3
  Average: 29.92
  Median : 29
  Maximum: 48

DenominoViso - HTML Ancestors page

The DenominoViso plugin creates an interactive html/javascript page displaying all ancestors on one page. By Michiel Nauta.

What does it do? This plugin can be found at http://www.home.versatel.nl/m.d.nauta/index.html

Plugin author Michiel Nauta

Safety of your database This plugin only reads your data, and attempts no changes. However it's generally a good idea to make a backup before trying unsupported plugins.

User comments

Place Completion Tool

Place completion tool in action

The place completion tool enables you to work on a selection of your places. It can look up latitude and longitude, and you can set county, parish, state, ... data on a group of places with one click.

Download, Manual and Installation

See: Place completion tool

Family Lines

Example of a Familylines graph with thumbnail images.

What does it do? The family lines plugin produces .dot (Graphviz) files which can then be used to produce .gif, .png, .pdf, and many other formats. You give it a list of people of interest, and it will output only people directly related to the people of interest. For example, place your grandparents as people of interest, and select the option to follow both ancestors and children.

Download http://charette.no-ip.com:1234/Charette/FamilyLines.py

Plugin author Stéphane Charette, [email protected]

Safety of your database This plugin only reads the database, and attempts no changes.

See Familylines plugin for additional information on this plugin.

Others

GRAMPS offers a fantastic and powerful report manager which allow us to export on most current formats. (see DbSummary.py)

But if like me, you start to understand python and want to generate custom plugins or you are a python wizard and want to generate tools, maybe you need more examples.

I want to share some tips who help me

Here my custom plugins for testing

I warn you, I don't study python programmation and maybe don't use the right method. But there is always multiple solutions. Plugins are OK for me, if they help someone, then it was a good reason to share them.

  • forename.py is a summary of forenames on your database. It uses the model list written for GRAMPS core. It lists people and retrieve the first name with a count.

Also, a funny exercise : you can get "surnames" with a minor modification ...

  • reporeport.py is something I would like to write but I am not able yet ... backlink or dictionnaries are for me black magic !!! Thanks Alex for your help ! This plugin displays Repositories with their related sources data. This may be useful for genealogical search.
  • datespersurname.py enlights my limits (very experimental). I wanted to generated a list of surnames with a span of years on differents places. Also, a list of places with their presents surnames will be possible too. 3 lists with an index were planned but this will use python core functions. Here just my first try, far away to be finished ...
  • html_tree.py was a testing for next GRAMPS simplified API. Should still work with command line. Also, I need to add image_path for parents.

Improve, modify them. Enjoy !!!