gamesguru/getmyancestors.git
2 days agoAttributeError: 'CachedSession' object has no attribute 'debug' dev 3/head
Shane Jaroch [Sat, 24 Jan 2026 07:42:50 +0000 (02:42 -0500)]
AttributeError: 'CachedSession' object has no attribute 'debug'

    and lint fixes

2 days agoasyncio live production issue (manual test)
Shane Jaroch [Sat, 24 Jan 2026 07:18:48 +0000 (02:18 -0500)]
asyncio live production issue (manual test)

2 days agoa few more name tweaks and config changes
Shane Jaroch [Sat, 24 Jan 2026 07:12:21 +0000 (02:12 -0500)]
a few more name tweaks and config changes

2 days agowip fixes for manual tests and save "main" name
Shane Jaroch [Sat, 24 Jan 2026 06:50:06 +0000 (01:50 -0500)]
wip fixes for manual tests and save "main" name

2 days agofixup
Shane Jaroch [Sat, 24 Jan 2026 05:56:44 +0000 (00:56 -0500)]
fixup

2 days agoRevert to last known good state 26a0314
Shane Jaroch [Fri, 23 Jan 2026 23:17:00 +0000 (18:17 -0500)]
Revert to last known good state 26a0314

2 days agohuge wip
Shane Jaroch [Fri, 23 Jan 2026 23:15:44 +0000 (18:15 -0500)]
huge wip

2 days agoupdate license, coverage min, fixtures, and regen script
Shane Jaroch [Fri, 23 Jan 2026 20:39:20 +0000 (15:39 -0500)]
update license, coverage min, fixtures, and regen script

2 days agofix coverage minimum: 68.31% [run `make clean test/` to see]
Shane Jaroch [Fri, 23 Jan 2026 20:05:48 +0000 (15:05 -0500)]
fix coverage minimum: 68.31% [run `make clean test/` to see]

2 days agoformat submodule python; update submodule (regen fixtures)
Shane Jaroch [Fri, 23 Jan 2026 20:04:58 +0000 (15:04 -0500)]
format submodule python; update submodule (regen fixtures)

2 days agoadd: class ParentRelType(Enum) [distinguish step/birth parents]
Shane Jaroch [Fri, 23 Jan 2026 19:03:07 +0000 (14:03 -0500)]
add: class ParentRelType(Enum) [distinguish step/birth parents]

3 days agoUpdate .github/workflows/test.yml
Shane Jaroch [Thu, 22 Jan 2026 23:54:02 +0000 (18:54 -0500)]
Update .github/workflows/test.yml

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
3 days agoci: add format check, PR trigger for Coveralls; drop legacy cookie migration
Shane Jaroch [Thu, 22 Jan 2026 23:23:29 +0000 (18:23 -0500)]
ci: add format check, PR trigger for Coveralls; drop legacy cookie migration

- Add 'Check Clean After Format' step to catch unformatted PRs
- Add pull_request trigger so Coveralls can post PR comments
- Fix legacy_cookie_file path for backward compatibility migration
- Add 5min timeout to test_installation pip install

3 days agolint fixes
Shane Jaroch [Thu, 22 Jan 2026 23:17:27 +0000 (18:17 -0500)]
lint fixes

3 days agofully deterministic `make test/offline` (hopefully?)
Shane Jaroch [Thu, 22 Jan 2026 23:11:35 +0000 (18:11 -0500)]
fully deterministic `make test/offline` (hopefully?)

3 days agowip non-determinism in make test/offline
Shane Jaroch [Thu, 22 Jan 2026 23:05:35 +0000 (18:05 -0500)]
wip non-determinism in make test/offline

3 days agotest: update merged line count after name deduplication fix
Shane Jaroch [Thu, 22 Jan 2026 23:02:44 +0000 (18:02 -0500)]
test: update merged line count after name deduplication fix

3 days agoMerge origin/master into dev
Shane Jaroch [Thu, 22 Jan 2026 23:01:36 +0000 (18:01 -0500)]
Merge origin/master into dev

Resolved conflicts:
- session.py: kept dev's comprehensive refactor
- gui.py: kept dev's safer error handling
- pyproject.toml: kept dev's full dependency list
- Deleted: tree.py, getmyancestors.py, requirements.txt (superseded by refactor)

3 days agolint fixes
Shane Jaroch [Thu, 22 Jan 2026 22:55:29 +0000 (17:55 -0500)]
lint fixes

3 days agoMajor refactor: Typer CLI, comprehensive tests, and CI improvements
Shane Jaroch [Thu, 22 Jan 2026 22:01:33 +0000 (17:01 -0500)]
Major refactor: Typer CLI, comprehensive tests, and CI improvements

- Migrate CLI to Typer for tab completion and better argument handling
- Split tree.py into modular tree/ package (core, records, elements, utils)
- Add comprehensive test suite with merge idempotency, session caching, etc.
- Add offline test fixtures via git submodule (res/testdata)
- Set up GitHub Actions CI with Coveralls integration
- Add git-sqlite-filter for reproducible SQLite fixture handling
- Improve merge deduplication for names, facts, notes, and sources
- Fix session cookie/caching and rate limiting
- Add Makefile for common dev tasks

Modernizes the tool with a new CLI, faster and safer networking, and a refactored tree/session architecture to improve reliability and performance. Adds CI and tests, and consolidates packaging for easier development.

- **New Features**
  - New CLI with exclude list and distance options; UTF‑8-safe output.
  - HTTP caching (requests-cache), optional cache-control, and request rate limiting; persistent cookie cache.
  - Offline mode to use cached data without logging in.
  - Place enrichment via Geonames/geocoder with structured Place objects.
  - Clear GUI Tkinter error; first‑run license prompt stored locally.
  - Immigration fact mapping and contributor attribution from change logs.

- **Refactors**
  - New GMASession with cached session; switched to FS IDs; tree split into elements/records; legacy getmyancestors.py removed; entry points updated.
  - Added unit/integration tests and GitHub Actions (Linux/macOS/Windows); Makefile targets; linting/formatting gates.
  - Dependencies consolidated in pyproject; added requests-cache, requests-ratelimiter, geocoder; removed requirements.txt.
  - Fixed merge duplication; idempotent merges via set-based dedup in mergemyanc.

3 weeks agoadding rate limit
Josemando Sobral [Sun, 2 Feb 2025 21:48:34 +0000 (18:48 -0300)]
adding rate limit

    ORIGINAL COMMIT
    ~~~~~~~~~~~~~~~

    $ git show f6bb22e --stat
    commit f6bb22e6c3602d30e55fc9eeb140b964552b8d18
    Author: Josemando Sobral <josemando@gmail.com>
    Date:   Sun Feb 2 18:48:34 2025 -0300

        adding rate limit

     getmyancestors/classes/session.py | 8 ++++++++
     pyproject.toml                    | 2 +-
     requirements.txt                  | 1 +
     3 files changed, 10 insertions(+), 1 deletion(-)

Signed-off-by: Shane Jaroch <chown_tee@proton.me>
10 months ago[FIX] fix fstogedcom master
Benoît Fontaine [Tue, 4 Mar 2025 21:02:33 +0000 (22:02 +0100)]
[FIX] fix fstogedcom

12 months agoupdate requirements
Benoît Fontaine [Sun, 5 Jan 2025 21:34:41 +0000 (22:34 +0100)]
update requirements

13 months agoFix babelfish version for python3.12+
Benoît Fontaine [Thu, 12 Dec 2024 22:16:59 +0000 (23:16 +0100)]
Fix babelfish version for python3.12+

13 months agoFix auth
Benoît Fontaine [Thu, 12 Dec 2024 21:28:48 +0000 (22:28 +0100)]
Fix auth

17 months agoAdded a main for easier testing
Barnabas Sudy [Sat, 24 Aug 2024 05:16:33 +0000 (07:16 +0200)]
Added a main for easier testing

17 months agoFixed cache, date formatting and envet id
Barnabas Sudy [Tue, 20 Aug 2024 05:19:08 +0000 (07:19 +0200)]
Fixed cache, date formatting and envet id

17 months agoRetriveing place information from geonames
Barnabas Sudy [Sun, 11 Aug 2024 04:12:01 +0000 (06:12 +0200)]
Retriveing place information from geonames

17 months agoAdded request cache
Barnabas Sudy [Sun, 11 Aug 2024 04:10:22 +0000 (06:10 +0200)]
Added request cache

17 months agoUsing Familysearch ids instead of the counters
Barnabas Sudy [Wed, 31 Jul 2024 03:37:38 +0000 (05:37 +0200)]
Using Familysearch ids instead of the counters

18 months agoAdded distance argument to download all people up until a distance.
Barnabas Sudy [Sun, 7 Jul 2024 09:01:59 +0000 (11:01 +0200)]
Added distance argument to download all people up until a distance.

18 months agoAdded exclude list parameter to be able to exclude people from the generation
Barnabas Sudy [Sun, 7 Jul 2024 08:41:27 +0000 (10:41 +0200)]
Added exclude list parameter to be able to exclude people from the generation

19 months agoUpdate base URL
Adriaan Joubert [Sun, 23 Jun 2024 01:18:58 +0000 (02:18 +0100)]
Update base URL

19 months agoUpdate auth flow
Adriaan Joubert [Sun, 23 Jun 2024 01:18:36 +0000 (02:18 +0100)]
Update auth flow

19 months agoupdate README
Benoît Fontaine [Wed, 5 Jun 2024 20:43:52 +0000 (22:43 +0200)]
update README

19 months ago[FIX] fix GEDCOM version
Benoît Fontaine [Wed, 5 Jun 2024 20:43:18 +0000 (22:43 +0200)]
[FIX] fix GEDCOM version

20 months agofix memories
Benoît Fontaine [Fri, 10 May 2024 13:37:32 +0000 (15:37 +0200)]
fix memories

22 months agofix merge ordinances
Benoît Fontaine [Fri, 15 Mar 2024 21:13:56 +0000 (22:13 +0100)]
fix merge ordinances

2 years agoFix new authentification
Benoît Fontaine [Tue, 21 Nov 2023 16:28:21 +0000 (17:28 +0100)]
Fix new authentification

2 years agoMerge pull request #47 from melroy89/master-1
Linekio [Sun, 27 Aug 2023 12:46:09 +0000 (14:46 +0200)]
Merge pull request #47 from melroy89/master-1

Update requirements.txt

2 years agoUpdate pyproject.toml
Melroy van den Berg [Thu, 10 Aug 2023 23:21:23 +0000 (01:21 +0200)]
Update pyproject.toml

Update fake-useragent to latest version (v1.2.1). Disclaimer: I'm the package maintainer.

2 years agoUpdate requirements.txt
Melroy van den Berg [Thu, 10 Aug 2023 21:43:34 +0000 (23:43 +0200)]
Update requirements.txt

Upgrade fake-useragent to the latest version (v1.2.1). Disclaimer: I'm the maintainer.

2 years agoupdate version
Benoît Fontaine [Sun, 30 Jul 2023 16:22:51 +0000 (18:22 +0200)]
update version

2 years agoMerge pull request #46 from a2800276/main
Linekio [Sun, 30 Jul 2023 16:14:01 +0000 (18:14 +0200)]
Merge pull request #46 from a2800276/main

added possibility to optionally save password in gui

2 years agoadded possibility to optionally save password in gui
Tim Becker [Tue, 11 Jul 2023 16:39:04 +0000 (18:39 +0200)]
added possibility to optionally save password in gui

3 years agoMove version in package
Benoît Fontaine [Sun, 4 Dec 2022 19:43:42 +0000 (20:43 +0100)]
Move version in package

3 years agoUse pyproject.toml
Benoît Fontaine [Sat, 3 Dec 2022 21:35:40 +0000 (22:35 +0100)]
Use pyproject.toml

3 years agoAPI now need a fake user agent
Benoît Fontaine [Sat, 3 Dec 2022 20:02:48 +0000 (21:02 +0100)]
API now need a fake user agent

3 years agoMerge pull request #42 from changeling/abstract_classes_and_constants
Linekio [Sun, 27 Feb 2022 18:10:02 +0000 (19:10 +0100)]
Merge pull request #42 from changeling/abstract_classes_and_constants

Abstract classes, constants and related functions.

3 years agoAdd newline to class.gedcom and adjust imports
changeling [Wed, 9 Feb 2022 23:43:35 +0000 (17:43 -0600)]
Add newline to class.gedcom and adjust imports

Add newline before class definition in gedcom.py
Add class import of Ordinance to gedcom.py
Add constant import of ORDINANCES to gedcompy
Remove unnecessary imports from getmyancestors.py

3 years agoSplit classes.py into separate modules.
changeling [Wed, 9 Feb 2022 08:28:58 +0000 (02:28 -0600)]
Split classes.py into separate modules.
Create gui.py, session.py, tree.py, gedcom.py.
Update version to 1.0.2-rc.2.
Add classes directory to setup.cfg.

3 years agoMove classes.py into classes directory.
changeling [Wed, 9 Feb 2022 05:58:17 +0000 (23:58 -0600)]
Move classes.py into classes directory.

3 years agoIncrement package __version__ to 1.0.2-rc.1
changeling [Tue, 8 Feb 2022 18:36:16 +0000 (12:36 -0600)]
Increment package __version__ to 1.0.2-rc.1

3 years agoAbstract classes, constants and related functions to shared modules.
changeling [Tue, 8 Feb 2022 18:16:57 +0000 (12:16 -0600)]
Abstract classes, constants and related functions to shared modules.

Move classes and related functions to classes.py.
Move constants and related functions to constants.py.
Minor edits to comments.

TODO Check class and constant imports, and remove from imports where unused in primary modules.

4 years agoUpdate dependency babelfish for python3.10
Benoît Fontaine [Thu, 21 Oct 2021 19:38:54 +0000 (21:38 +0200)]
Update dependency babelfish for python3.10

4 years ago[ADD] Add packaging with setup.py
Benoît [Tue, 23 Feb 2021 00:13:43 +0000 (01:13 +0100)]
[ADD] Add packaging with setup.py

4 years ago[ADD] Add github issue template
Benoît [Sat, 13 Feb 2021 15:07:04 +0000 (16:07 +0100)]
[ADD] Add github issue template

4 years ago[FIX] Fix multi-individual ancestor download.
Fred Wright [Tue, 19 Jan 2021 22:03:34 +0000 (14:03 -0800)]
[FIX] Fix multi-individual ancestor download.

The 'todo' variable for the ancestor download needs to be a set,
not the original comma-separated string.

TESTED:
Downloads of multiple individuals now include ancestors when
appropriate.

4 years ago[IMP] Direct informational messages to stderr.
Fred Wright [Tue, 19 Jan 2021 02:59:55 +0000 (18:59 -0800)]
[IMP] Direct informational messages to stderr.

This allows the GEDCOM output to be piped to another program without
polluting it with progress messages.

The usage text is now also directed to stderr, as is normal practice.

TESTED:
Piped output to an editor, with the progess messages still appearing
on the terminal.
Usage text now appears on the terminal, even with redirected stdout.

5 years agoFix requirements command in README
Benoît Fontaine [Mon, 14 Dec 2020 19:52:02 +0000 (20:52 +0100)]
Fix requirements command in README

5 years ago[FIX] update Accept header to get contributors
Benoît Fontaine [Mon, 9 Mar 2020 18:05:44 +0000 (19:05 +0100)]
[FIX] update Accept header to get contributors

5 years ago[IMP] fstogedcom : keep username in cache
Benoît Fontaine [Sat, 7 Mar 2020 09:14:02 +0000 (10:14 +0100)]
[IMP] fstogedcom : keep username in cache

5 years ago[FIX] Add of the request header to ask for json format. Necessary fix since recent...
Benoît Fontaine [Sat, 7 Mar 2020 09:10:59 +0000 (10:10 +0100)]
[FIX] Add of the request header to ask for json format. Necessary fix since recent api update.

5 years agoAdd requirements.txt
Benoît [Sat, 29 Feb 2020 18:12:01 +0000 (19:12 +0100)]
Add requirements.txt

5 years agoWrites a partial gedcom file if an exception occur.
Benoît Fontaine [Mon, 24 Feb 2020 06:31:01 +0000 (07:31 +0100)]
Writes a partial gedcom file if an exception occur.

6 years agoMerge branch 'fhgwright-fixes'
Benoît Fontaine [Tue, 7 Jan 2020 09:53:14 +0000 (10:53 +0100)]
Merge branch 'fhgwright-fixes'

6 years agoblack format
Benoît Fontaine [Tue, 7 Jan 2020 09:52:40 +0000 (10:52 +0100)]
black format

6 years agoTolerate inability to write settings file.
Fred Wright [Sun, 5 Jan 2020 23:25:23 +0000 (15:25 -0800)]
Tolerate inability to write settings file.

It's questionable that the unsolicited write of the settings is
reasonable at all, but at the very least it shouldn't crash if it
can't, e.g., when outputting to /dev/null for testing.

TESTED:
Now prints message and continues on failed attempt to write
/dev/null.settings.  Writes settings successfully with real
output file specified.

6 years agoUpdate ordinances following FamilySeacrch's update
Benoît [Wed, 11 Dec 2019 23:31:18 +0000 (00:31 +0100)]
Update ordinances following FamilySeacrch's update

6 years agoFix : unquote url-like Fact value
Benoît Fontaine [Tue, 5 Nov 2019 20:58:09 +0000 (21:58 +0100)]
Fix : unquote url-like Fact value

6 years agoUpdate following FamilySearch's last update
Benoît Fontaine [Tue, 5 Nov 2019 18:35:32 +0000 (19:35 +0100)]
Update following FamilySearch's last update
Replace "father" key with "parent1" and "mother" with "parent2"

6 years agoMerge pull request #22 from fhgwright/fixes
Linekio [Mon, 26 Aug 2019 07:34:31 +0000 (09:34 +0200)]
Merge pull request #22 from fhgwright/fixes

Adds execute permissions to fstogedcom.py.

6 years agoAdds execute permissions to fstogedcom.py.
Fred Wright [Sat, 24 Aug 2019 02:43:51 +0000 (19:43 -0700)]
Adds execute permissions to fstogedcom.py.

This program has a shebang line to permit it to be run directly as a
program, but lacks the necessary execute permissions.

Also removes the superfluous shebang line from translation.py.

TESTED:
Running ./fstogedcom.py now works.

6 years agoMerge pull request #20 from sebdu66/patch-1
Linekio [Thu, 18 Jul 2019 06:03:00 +0000 (08:03 +0200)]
Merge pull request #20 from sebdu66/patch-1

Add initiatory ordinance (WAC) since it's supported by some software like Rootsmagic.

6 years agoAdd initiatory ordinance
sebdu66 [Tue, 16 Jul 2019 11:45:59 +0000 (13:45 +0200)]
Add initiatory ordinance

This update add the ordinance initiatory and add the WAC tag to the gedcom file

6 years agoUpdate argument parser :
Benoît Fontaine [Tue, 9 Jul 2019 21:43:45 +0000 (23:43 +0200)]
Update argument parser :
  -u <STR>, --username <STR>
                        FamilySearch username
  -p <STR>, --password <STR>
                        FamilySearch password
  -i <STR> [<STR> ...], --individuals <STR> [<STR> ...]
                        List of individual FamilySearch IDs for whom to
                        retrieve ancestors
  -a <INT>, --ascend <INT>
                        Number of generations to ascend [4]
  -d <INT>, --descend <INT>
                        Number of generations to descend [0]
  -m, --marriage        Add spouses and couples information [False]
  -r, --get-contributors
                        Add list of contributors in notes [False]
  -c, --get_ordinances  Add LDS ordinances (need LDS account) [False]
  -v, --verbose         Increase output verbosity [False]
  -t <INT>, --timeout <INT>
                        Timeout in seconds [60]
  --show-password       Show password in .settings file [False]
  -o <FILE>, --outfile <FILE>
                        output GEDCOM file [stdout]
  -l <FILE>, --logfile <FILE>
                        output log file [stderr]

6 years agofstogedcom: replace get_userid call with fid attribute
Benoît Fontaine [Sun, 30 Jun 2019 22:59:01 +0000 (00:59 +0200)]
fstogedcom: replace get_userid call with fid attribute

6 years agoFix duplicate lines FAMS
Benoît Fontaine [Wed, 5 Jun 2019 15:10:04 +0000 (17:10 +0200)]
Fix duplicate lines FAMS

6 years agoFix mergemyancestors with new Gedcom header
Benoît Fontaine [Thu, 16 May 2019 09:41:21 +0000 (11:41 +0200)]
Fix mergemyancestors with new Gedcom header

6 years ago- Add black formating (see https://github.com/python/black)
Benoît Fontaine [Thu, 16 May 2019 09:39:17 +0000 (11:39 +0200)]
- Add black formating (see https://github.com/python/black)
- Add docstrings

6 years agoMerge pull request #14 from changeling/logging_and_reports
Linekio [Sat, 30 Mar 2019 16:38:39 +0000 (17:38 +0100)]
Merge pull request #14 from changeling/logging_and_reports

Change `redact-password` to `show-password`.

6 years agoChange `redact-password` to `show-password`.
changeling [Sat, 30 Mar 2019 15:23:39 +0000 (10:23 -0500)]
Change `redact-password` to `show-password`.

Default is to hide password in `.settings` file.

6 years agoReverse argument --redact-password : print passwords in settings if set
Benoît Fontaine [Thu, 28 Mar 2019 21:18:19 +0000 (22:18 +0100)]
Reverse argument --redact-password : print passwords in settings if set

6 years agoMerge pull request #13 from changeling/logging_and_reports
Linekio [Thu, 28 Mar 2019 21:16:02 +0000 (22:16 +0100)]
Merge pull request #13 from changeling/logging_and_reports

Added reporting for configuration used when executing `getmyancestors…

6 years agoUpdate .settings file handling and defaults.
changeling [Wed, 27 Mar 2019 00:05:56 +0000 (19:05 -0500)]
Update .settings file handling and defaults.

Handle non-argparse `username` and `password`.
Removed printing of settings to stdout.
Remove `redact_password = True` line.
Add `--redact-password` argument, defaulting to `False`.
Removed `.settings` file creation when output is directed to stdout.

6 years agoMerge remote-tracking branch 'upstream/master' into logging_and_reports
changeling [Wed, 13 Mar 2019 08:54:10 +0000 (03:54 -0500)]
Merge remote-tracking branch 'upstream/master' into logging_and_reports

6 years agoUpdate GEDCOM Header in getmyancestors.py for 5.5.1 compliance. (#11)
changeling [Mon, 11 Mar 2019 06:28:54 +0000 (01:28 -0500)]
Update GEDCOM Header in getmyancestors.py for 5.5.1 compliance. (#11)

* Update GEDCOM Header in getmyancestors.py for 5.5.1 compliance.

getmyancestors.py: Add SOUR, SUBM ref and SUBM entry. Update VERS to 5.5.1.
(UTF-8 is only in GEDCOM 5.5.1 and not 5.5, but getmyancestors creates header with VERS 5.5 and encoding UTF-8.)

* Fix Notes: set the text attribute before adding to Tree

* Updated to render correct ordinals in Download progress counts.

fstogedcom.py:
Lines 34-45: Implemented ordinal() function.
Line 441: Yield correct ordinal for ancestor generations.
Line 450: Yield correct ordinal for descendant generations.

getmyancestors.py
Lines 107-118: Implemented ordinal() function.
Line: 960: Yield correct ordinal for ancestor generations.
Line 970: Yield correct ordinal for descendant generations.

translation.py
Lines 104-115: Translate ordinal suffixes.
Lines 116-120: Translate updated ancestor and descendant generation strings.

Fixed string slice in ordinal() to correctly handle 11, 12, 13.

Fixed string slice in ordinal() to correctly handle 11, 12, 13 in fstogedcom.py and getmyancestors.py.

* Replaced ordinal() function and calls with num2word module and calls.

Replaced ordinal() function and calls with num2word module and calls in fstogedcom.py and getmyancestors.py.

Removed ordinal suffixes from translation.py.

* Update README.md to reference num2words and github repository.

Added num2words requirement to README.md.
Add references for github repository to README.md.

* Update getmyancestors.py to add more 5.5.1 HEAD entries.

Add display_name to Session().
Assign display_name from current.json ['users'][0]['displayName'].
Add 'getmyancestors' value for HEAD.SOUR, HEAD.SOUR.NAME, HEAD.DEST. See:
https://www.tamurajones.net/GEDCOMSOURandDEST.xhtml for discussion.
Add HEAD.SOUR.VERS with placeholder value for version.
Add HEAD.DATE and HEAD.TIME.
Add SUBM.NAME from Family Search displayName for current user.
Add SUBM.LANG from Family Search displayName for current user. NOTE: This value is invalid.
TODO: Fix 2-char lang value to full language name for legal GEDCOM.

* Update getmyancestors.py to correct SUBM.LANG format.

Added import of babelfish to handle language formats.
Added babelfish conversion to SUBM.LANG to convert alpha2 language code (i.e. `en`) from Family Search to legal GEDCOM language code (i.e. `ENGLISH`).
Updated README.md to include reference to babelfish module.

* Revert "Merge pull request #9 from changeling/handle_ordinals"

This reverts commit 88e724d1b6d590af7dd4f7d91dbe4997bfd6a0a6, reversing
changes made to 0a0a1035f9f4c4a985069f2a914851e630e84b50.

* Change information text about downloading generations

* Update GEDCOM Header in getmyancestors.py for 5.5.1 compliance.

getmyancestors.py: Add SOUR, SUBM ref and SUBM entry. Update VERS to 5.5.1.
(UTF-8 is only in GEDCOM 5.5.1 and not 5.5, but getmyancestors creates header with VERS 5.5 and encoding UTF-8.)

* Update getmyancestors.py to add more 5.5.1 HEAD entries.

Add display_name to Session().
Assign display_name from current.json ['users'][0]['displayName'].
Add 'getmyancestors' value for HEAD.SOUR, HEAD.SOUR.NAME, HEAD.DEST. See:
https://www.tamurajones.net/GEDCOMSOURandDEST.xhtml for discussion.
Add HEAD.SOUR.VERS with placeholder value for version.
Add HEAD.DATE and HEAD.TIME.
Add SUBM.NAME from Family Search displayName for current user.
Add SUBM.LANG from Family Search displayName for current user. NOTE: This value is invalid.
TODO: Fix 2-char lang value to full language name for legal GEDCOM.

* Update getmyancestors.py to correct SUBM.LANG format.

Added import of babelfish to handle language formats.
Added babelfish conversion to SUBM.LANG to convert alpha2 language code (i.e. `en`) from Family Search to legal GEDCOM language code (i.e. `ENGLISH`).
Updated README.md to include reference to babelfish module.

* Updated `README.md` and `getmyancestors.py` re  5.5.1.

`getmyancestors.py`:
Remove `DEST` tag.
Set `SOUR.VERS` to 1.0.
Implement `babelfish` module to correct FamilySearch `LANG` to match iso639 full language for 5.5.1 compliance.
`README.md`.:
Add babelfish.
Modify requirement install instruction for readability and line length re PEP 8.
Add github Issues link.

* Revert "Merge branch '551_compliance' of https://github.com/changeling/getmyancestors into 551_compliance"

This reverts commit 94b9fda218fdb316e1479c1661a1956f9ef4f2fb, reversing
changes made to ec42301fcbbef74d60a3c79f6e13885215ac47c8.

6 years agoMerge branch 'logging_and_reports' of https://github.com/changeling/getmyancestors...
changeling [Tue, 5 Feb 2019 02:37:27 +0000 (20:37 -0600)]
Merge branch 'logging_and_reports' of https://github.com/changeling/getmyancestors into logging_and_reports

6 years agoAdded reporting for configuration used when executing `getmyancestors.py`.
changeling [Tue, 29 Jan 2019 06:40:49 +0000 (00:40 -0600)]
Added reporting for configuration used when executing `getmyancestors.py`.

Added reporting for configuration used when executing `getmyancestors.py`.
Added `.vscode/` and `scratchpad.py` to .gitignore.

6 years agoChange information text about downloading generations
Benoît Fontaine [Sat, 2 Feb 2019 22:51:48 +0000 (23:51 +0100)]
Change information text about downloading generations

6 years agoRevert "Merge pull request #9 from changeling/handle_ordinals"
Benoît Fontaine [Sat, 2 Feb 2019 18:44:45 +0000 (19:44 +0100)]
Revert "Merge pull request #9 from changeling/handle_ordinals"

This reverts commit 88e724d1b6d590af7dd4f7d91dbe4997bfd6a0a6, reversing
changes made to 0a0a1035f9f4c4a985069f2a914851e630e84b50.

6 years agoAdded reporting for configuration used when executing `getmyancestors.py`.
changeling [Tue, 29 Jan 2019 06:40:49 +0000 (00:40 -0600)]
Added reporting for configuration used when executing `getmyancestors.py`.

Added reporting for configuration used when executing `getmyancestors.py`.
Added `.vscode/` and `scratchpad.py` to .gitignore.

7 years agoMerge pull request #9 from changeling/handle_ordinals
Linekio [Mon, 7 Jan 2019 09:28:29 +0000 (10:28 +0100)]
Merge pull request #9 from changeling/handle_ordinals

Updated to render correct ordinals in Download progress counts.

7 years agoFix Notes: set the text attribute before adding to Tree
Benoît Fontaine [Mon, 7 Jan 2019 09:20:03 +0000 (10:20 +0100)]
Fix Notes: set the text attribute before adding to Tree

7 years agoUpdate README.md to reference num2words and github repository.
changeling [Fri, 14 Dec 2018 19:38:41 +0000 (13:38 -0600)]
Update README.md to reference num2words and github repository.

Added num2words requirement to README.md.
Add references for github repository to README.md.

7 years agoReplaced ordinal() function and calls with num2word module and calls.
changeling [Thu, 13 Dec 2018 20:12:01 +0000 (14:12 -0600)]
Replaced ordinal() function and calls with num2word module and calls.

Replaced ordinal() function and calls with num2word module and calls in fstogedcom.py and getmyancestors.py.

Removed ordinal suffixes from translation.py.

7 years agoUpdated to render correct ordinals in Download progress counts.
changeling [Thu, 13 Dec 2018 18:04:49 +0000 (12:04 -0600)]
Updated to render correct ordinals in Download progress counts.

fstogedcom.py:
Lines 34-45: Implemented ordinal() function.
Line 441: Yield correct ordinal for ancestor generations.
Line 450: Yield correct ordinal for descendant generations.

getmyancestors.py
Lines 107-118: Implemented ordinal() function.
Line: 960: Yield correct ordinal for ancestor generations.
Line 970: Yield correct ordinal for descendant generations.

translation.py
Lines 104-115: Translate ordinal suffixes.
Lines 116-120: Translate updated ancestor and descendant generation strings.

Fixed string slice in ordinal() to correctly handle 11, 12, 13.

Fixed string slice in ordinal() to correctly handle 11, 12, 13 in fstogedcom.py and getmyancestors.py.

7 years agoUpdate readme
Benoît Fontaine [Sun, 11 Nov 2018 16:51:37 +0000 (17:51 +0100)]
Update readme

7 years agoFix an error when changes.json doesn't return datas (status code 204)
Benoît Fontaine [Sat, 10 Nov 2018 19:03:56 +0000 (20:03 +0100)]
Fix an error when changes.json doesn't return datas (status code 204)

7 years agoMemories: now accept all types of file. Plain text memories are stored as Notes
Benoît Fontaine [Sat, 15 Sep 2018 22:32:06 +0000 (00:32 +0200)]
Memories: now accept all types of file. Plain text memories are stored as Notes