Skip to main content

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


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)

Uploaded Source

Built Distribution

gramps_ql-0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page