A Python library to filter Gramps objects by a query syntax
Project description
GQL – the Gramps Query Language
This Python library provides GQL, a query language to a Gramps database. The syntax is inspired by JQL, the Jira Query Language.
Installation
python -m pip install gramps-ql
Usage
from gramps_ql import iter_objects
db = ... # A Gramps DbReadBase instance
# iterate over private people
query = 'type=person AND private'
for obj in iter_objects(query, db):
f(obj) # do something with the Gramps object obj
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gramps-ql-0.1.tar.gz
(6.9 kB
view hashes)