Skip to main content

gPrime webapp for genealogy

Project description

# gPrime

[![Build Status](https://travis-ci.org/GenealogyCollective/gprime.svg?branch=master)](https://travis-ci.org/GenealogyCollective/gprime) [![codecov](https://codecov.io/gh/GenealogyCollective/gprime/branch/master/graph/badge.svg)](https://codecov.io/gh/GenealogyCollective/gprime)

gPrime is a web-based application for genealogy. It uses the Gramps API for data, reports, import/export, etc.

Additional Information

Requirements

  • Python3

Python package dependencies:

  • tornado

  • PIL

  • simplejson

  • passlib

  • meta

Installation

On Windows and Mac, perhaps the easiest method of using gPrime is to start with an [Anaconda Python3 environment](https://www.continuum.io/downloads).

Install from github:

` git clone --depth 1 https://github.com/GenealogyCollective/gprime cd gprime ` Once you have the source files, you can:

` python setup.py build python setup.py install `

or simply:

` pip install . --user -U `

Released version installation:

` pip install gprime `

Getting Started

To run gPrime, you need to do two things:

  1. Create a site directory

  2. Create at least one user and password

To create a site directory, provide a name for the tree, and give the site-dir directory:

` gprime --create="My Family Tree" --site-dir="family_tree" # or, if not installed: python -m gprime.app --create="My Family Tree" --site-dir="family_tree" `

Then, you need at least one user (as an example, we use “demo” as the username):

` gprime --site-dir="~/family_tree" --add-user=demo Password: (does not show any characters) `

Optionally, you may now want to also import some data (see below). The site-directory has a folder named “media” for all of the images and other documents. You can copy them here, or, in the previous example, make ~/family_tree/media link to your media folder.

Running

You can run gprime directly from either the downloaded directory, or from the installed version.

Installed version:

` gprime --config-file="familytree.conf" `

Downloaded versions:

` export PYTHONPATH=/path/to/gprime python -m gprime.app --config-file="familytree.cfg" `

Where familytree.cfg contains options and values, such as:

` port = 8001 site_dir = "My_Family_Tree_Folder" ` or

` site_dir = "/home/dblank/Desktop/Blank_Family/Blank Family/" `

Put this in your site folder named “config.cfg” to use automatically.

Options:

  • –site-dir=PATH/TO/FOLDER - The directory of the gPrime site directory (required)

  • –sitename=”Site Name” - Name to use for the site (optional, “gPrime” is default)

  • –create=TREE-NAME - Create a site directory (given by –site-dir) and family tree database with TREE-NAME

  • –add-user=USERNAME - Add a username and password; prompts for password if –password not given

  • –remove-user=USERNAME - Remove a user’s username and password from “SITE-DIR/passwd” file

  • –change-password=USERNAME - Change a user’s password; prompts for password if –password not given

  • –password=PASSWORD - Use with –change-password, or –add-user (this option is not recommended)

  • –import-file=FILENAME - Import a Gramps-supported file type (.ged, .gramps, .json, etc.)

  • –config-file=FILE - A config file of these options (optional); alternatively, will use SITE-DIR/config.cfg if one

  • –port=PORT-NUMBER - Port to listen on (8000 is default)

  • –hostname=LOCALHOST - Hostname to listen on (“localhost” is default)

  • –server=True|False - Start the server? Default is True

  • –open-browser=True|False - open a web browser on startup?

  • –debug=True|False - Use to see additional debugging information; useful for development (auto-restarts server)

  • –xsrf=True/False - Use cross-site request forgery protection (recommended)

  • –help - List additional options and details

Common variations

` gprime --help gprime --site-dir="family_tree_folder" --create="Smith Family" gprime --site-dir="family_tree_folder" --import-file="myinfo.gramps" gprime --site-dir="family_tree_folder" --add-user=demo --password=demo gprime --site-dir="/path/to/family_tree_folder" `

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

gprime-1.0.8a0.tar.gz (13.2 MB view details)

Uploaded Source

Built Distribution

gprime-1.0.8a0-py2.py3-none-any.whl (10.6 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file gprime-1.0.8a0.tar.gz.

File metadata

  • Download URL: gprime-1.0.8a0.tar.gz
  • Upload date:
  • Size: 13.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gprime-1.0.8a0.tar.gz
Algorithm Hash digest
SHA256 fb5f5cbd81812b7f0c8849267e0e1a9d916653092c8b9510a7933b31522b8f4d
MD5 8016319969e580bbc1244f4254dd0074
BLAKE2b-256 54f41f8b078ad749f216e43c2a1f4f8542b1b2c4654b9e44bb795f074e2188ae

See more details on using hashes here.

File details

Details for the file gprime-1.0.8a0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gprime-1.0.8a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d9cbd56b6c5cb46a4af19f23dbfd2f21807e0825ebf34f3681965fe558e490fd
MD5 5ced092983985c38324760f674865bc0
BLAKE2b-256 e73d7888faf54b6dd1440d5740cc20f4f0770cd551703ee83742016b63ffca62

See more details on using hashes here.

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