gedcom-x 0.5.6__py3-none-any.whl → 0.5.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. {gedcom_x-0.5.6.dist-info → gedcom_x-0.5.8.dist-info}/METADATA +1 -1
  2. gedcom_x-0.5.8.dist-info/RECORD +56 -0
  3. gedcomx/Extensions/__init__.py +1 -0
  4. gedcomx/Extensions/rs10/__init__.py +1 -0
  5. gedcomx/Extensions/rs10/rsLink.py +116 -0
  6. gedcomx/TopLevelTypeCollection.py +1 -1
  7. gedcomx/__init__.py +43 -41
  8. gedcomx/{Address.py → address.py} +13 -13
  9. gedcomx/{Agent.py → agent.py} +52 -24
  10. gedcomx/{Attribution.py → attribution.py} +36 -9
  11. gedcomx/{Conclusion.py → conclusion.py} +49 -21
  12. gedcomx/converter.py +1049 -0
  13. gedcomx/coverage.py +55 -0
  14. gedcomx/{Date.py → date.py} +11 -4
  15. gedcomx/{Document.py → document.py} +27 -8
  16. gedcomx/{Event.py → event.py} +102 -27
  17. gedcomx/{EvidenceReference.py → evidence_reference.py} +2 -2
  18. gedcomx/{Fact.py → fact.py} +45 -34
  19. gedcomx/{Gedcom5x.py → gedcom5x.py} +78 -61
  20. gedcomx/gedcom7/Exceptions.py +9 -0
  21. gedcomx/gedcom7/Gedcom7.py +160 -0
  22. gedcomx/gedcom7/GedcomStructure.py +94 -0
  23. gedcomx/gedcom7/Specification.py +347 -0
  24. gedcomx/gedcom7/__init__.py +26 -0
  25. gedcomx/gedcom7/g7interop.py +205 -0
  26. gedcomx/gedcom7/logger.py +19 -0
  27. gedcomx/gedcomx.py +501 -0
  28. gedcomx/{Gender.py → gender.py} +29 -17
  29. gedcomx/group.py +63 -0
  30. gedcomx/{Identifier.py → identifier.py} +13 -16
  31. gedcomx/{LoggingHub.py → logging_hub.py} +21 -0
  32. gedcomx/{Mutations.py → mutations.py} +50 -26
  33. gedcomx/name.py +396 -0
  34. gedcomx/{Note.py → note.py} +17 -10
  35. gedcomx/{OnlineAccount.py → online_account.py} +1 -1
  36. gedcomx/{Person.py → person.py} +52 -29
  37. gedcomx/place_description.py +123 -0
  38. gedcomx/place_reference.py +62 -0
  39. gedcomx/qualifier.py +54 -0
  40. gedcomx/{Relationship.py → relationship.py} +33 -13
  41. gedcomx/resource.py +85 -0
  42. gedcomx/serialization.py +815 -0
  43. gedcomx/{SourceDescription.py → source_description.py} +144 -85
  44. gedcomx/{SourceReference.py → source_reference.py} +15 -14
  45. gedcomx/{Subject.py → subject.py} +30 -28
  46. gedcomx/{GedcomX.py → translation.py} +283 -446
  47. gedcomx/{URI.py → uri.py} +42 -26
  48. gedcom_x-0.5.6.dist-info/RECORD +0 -45
  49. gedcomx/Coverage.py +0 -36
  50. gedcomx/Group.py +0 -37
  51. gedcomx/Name.py +0 -276
  52. gedcomx/PlaceDescription.py +0 -70
  53. gedcomx/PlaceReference.py +0 -30
  54. gedcomx/Qualifier.py +0 -27
  55. gedcomx/Resource.py +0 -75
  56. gedcomx/Serialization.py +0 -401
  57. gedcomx/Translation.py +0 -219
  58. {gedcom_x-0.5.6.dist-info → gedcom_x-0.5.8.dist-info}/WHEEL +0 -0
  59. {gedcom_x-0.5.6.dist-info → gedcom_x-0.5.8.dist-info}/top_level.txt +0 -0
  60. /gedcomx/{Exceptions.py → exceptions.py} +0 -0
  61. /gedcomx/{ExtensibleEnum.py → extensible_enum.py} +0 -0
  62. /gedcomx/{Gedcom.py → gedcom.py} +0 -0
  63. /gedcomx/{SourceCitation.py → source_citation.py} +0 -0
  64. /gedcomx/{TextValue.py → textvalue.py} +0 -0
gedcomx/Translation.py DELETED
@@ -1,219 +0,0 @@
1
- from . import *
2
- from .Mutations import GedcomXEventOrFact
3
-
4
- '''
5
- {'type': 'Object | Objects | Propertyof',
6
- 'Object': 'Class',
7
- 'Objects': ['Class',...],
8
- 'Propertyof': 'Class',
9
- 'Args': {'argname':'value|rTextValue|rIntValue|rFloatValue|rBoolValue|id|resource'},
10
- 'Assign': {'propertyname':'value|rTextValue|rIntValue|rFloatValue|rBoolValue|id|resource'},
11
- 'Selectoe':callable
12
- }
13
-
14
- '''
15
- g7toXtable = {
16
- "https://gedcom.io/terms/v7/ABBR": {},
17
- "https://gedcom.io/terms/v7/ADDR": {'type':'Object','Object':Address, 'Args':{'value':'value'},'addmethod':'add_address'},
18
- "https://gedcom.io/terms/v7/ADOP": {},
19
- "https://gedcom.io/terms/v7/ADOP-FAMC": {},
20
- "https://gedcom.io/terms/v7/ADR1": {'type':'Propertyof','propertyof':Address,'assign':{'street':'value'}},
21
- "https://gedcom.io/terms/v7/ADR2": {'type':'Propertyof','propertyof':Address,'assign':{'street2':'value'}},
22
- "https://gedcom.io/terms/v7/ADR3": {'type':'Propertyof','propertyof':Address,'assign':{'street3':'value'}},
23
- "https://gedcom.io/terms/v7/AGE": {},
24
- "https://gedcom.io/terms/v7/AGNC": {},
25
- "https://gedcom.io/terms/v7/ALIA": {},
26
- "https://gedcom.io/terms/v7/ANCI": {},
27
- "https://gedcom.io/terms/v7/ANUL": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
28
- "https://gedcom.io/terms/v7/ASSO": {},
29
- "https://gedcom.io/terms/v7/AUTH": {},
30
- "https://gedcom.io/terms/v7/BAPL": {},
31
- "https://gedcom.io/terms/v7/BAPM": {},
32
- "https://gedcom.io/terms/v7/BARM": {},
33
- "https://gedcom.io/terms/v7/BASM": {},
34
- "https://gedcom.io/terms/v7/BIRT": {},
35
- "https://gedcom.io/terms/v7/BLES": {},
36
- "https://gedcom.io/terms/v7/BURI": {},
37
- "https://gedcom.io/terms/v7/CALN": {},
38
- "https://gedcom.io/terms/v7/CAST": {},
39
- "https://gedcom.io/terms/v7/CAUS": {},
40
- "https://gedcom.io/terms/v7/CENS": {},
41
- "https://gedcom.io/terms/v7/CHAN": {},
42
- "https://gedcom.io/terms/v7/CHIL": {},
43
- "https://gedcom.io/terms/v7/CHR": {},
44
- "https://gedcom.io/terms/v7/CHRA": {},
45
- "https://gedcom.io/terms/v7/CITY": {'type':'Propertyof','propertyof':Address,'assign':{'city':'value'}},
46
- "https://gedcom.io/terms/v7/CONF": {},
47
- "https://gedcom.io/terms/v7/CONL": {},
48
- "https://gedcom.io/terms/v7/CONT": {},
49
- "https://gedcom.io/terms/v7/COPR": {},
50
- "https://gedcom.io/terms/v7/CORP": {},
51
- "https://gedcom.io/terms/v7/CREA": {},
52
- "https://gedcom.io/terms/v7/CREM": {},
53
- "https://gedcom.io/terms/v7/CROP": {},
54
- "https://gedcom.io/terms/v7/CTRY": {'type':'Propertyof','propertyof':Address,'assign':{'country':'value'}},
55
- "https://gedcom.io/terms/v7/DATA": {},
56
- "https://gedcom.io/terms/v7/DATA-EVEN": {},
57
- "https://gedcom.io/terms/v7/DATA-EVEN-DATE": {},
58
- "https://gedcom.io/terms/v7/DATE": {},
59
- "https://gedcom.io/terms/v7/DATE-exact": {},
60
- "https://gedcom.io/terms/v7/DEAT": {},
61
- "https://gedcom.io/terms/v7/DESI": {},
62
- "https://gedcom.io/terms/v7/DEST": {},
63
- "https://gedcom.io/terms/v7/DIV": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
64
- "https://gedcom.io/terms/v7/DIVF": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
65
- "https://gedcom.io/terms/v7/DSCR": {},
66
- "https://gedcom.io/terms/v7/EDUC": {},
67
- "https://gedcom.io/terms/v7/EMAIL": {},
68
- "https://gedcom.io/terms/v7/EMIG": {},
69
- "https://gedcom.io/terms/v7/ENDL": {},
70
- "https://gedcom.io/terms/v7/ENGA": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
71
- "https://gedcom.io/terms/v7/EVEN": {},
72
- "https://gedcom.io/terms/v7/EXID": {},
73
- "https://gedcom.io/terms/v7/EXID-TYPE": {},
74
- "https://gedcom.io/terms/v7/FACT": {},
75
- "https://gedcom.io/terms/v7/FAM": {'type':'Object','Object':Relationship,'Args':{'id':'xref'},'stackentry':['lastrelationship','lastrelationshipdata']},
76
- "https://gedcom.io/terms/v7/FAM-CENS": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
77
- "https://gedcom.io/terms/v7/FAM-EVEN": {},
78
- "https://gedcom.io/terms/v7/FAM-FACT": {},
79
- "https://gedcom.io/terms/v7/FAM-HUSB": {'type':'Object','Object':Resource,'Args':{'Id':'xref'}},
80
- "https://gedcom.io/terms/v7/FAM-NCHI": {},
81
- "https://gedcom.io/terms/v7/FAM-RESI": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
82
- "https://gedcom.io/terms/v7/FAM-WIFE": {'type':'Object','Object':Resource,'Args':{'Id':'xref'}},
83
- "https://gedcom.io/terms/v7/FAMC": {},
84
- "https://gedcom.io/terms/v7/FAMC-ADOP": {},
85
- "https://gedcom.io/terms/v7/FAMC-STAT": {},
86
- "https://gedcom.io/terms/v7/FAMS": {},
87
- "https://gedcom.io/terms/v7/FAX": {},
88
- "https://gedcom.io/terms/v7/FCOM": {},
89
- "https://gedcom.io/terms/v7/FILE": {},
90
- "https://gedcom.io/terms/v7/FILE-TRAN": {},
91
- "https://gedcom.io/terms/v7/FORM": {},
92
- "https://gedcom.io/terms/v7/GEDC": {},
93
- "https://gedcom.io/terms/v7/GEDC-VERS": {},
94
- "https://gedcom.io/terms/v7/GIVN": {},
95
- "https://gedcom.io/terms/v7/GRAD": {},
96
- "https://gedcom.io/terms/v7/HEAD": {},
97
- "https://gedcom.io/terms/v7/HEAD-DATE": {},
98
- "https://gedcom.io/terms/v7/HEAD-LANG": {},
99
- "https://gedcom.io/terms/v7/HEAD-PLAC": {},
100
- "https://gedcom.io/terms/v7/HEAD-PLAC-FORM": {},
101
- "https://gedcom.io/terms/v7/HEAD-SOUR": {},
102
- "https://gedcom.io/terms/v7/HEAD-SOUR-DATA": {},
103
- "https://gedcom.io/terms/v7/HEIGHT": {},
104
- "https://gedcom.io/terms/v7/HUSB": {},
105
- "https://gedcom.io/terms/v7/IDNO": {},
106
- "https://gedcom.io/terms/v7/IMMI": {},
107
- "https://gedcom.io/terms/v7/INDI": {},
108
- "https://gedcom.io/terms/v7/INDI-CENS": {},
109
- "https://gedcom.io/terms/v7/INDI-EVEN": {},
110
- "https://gedcom.io/terms/v7/INDI-FACT": {},
111
- "https://gedcom.io/terms/v7/INDI-FAMC": {},
112
- "https://gedcom.io/terms/v7/INDI-NAME": {},
113
- "https://gedcom.io/terms/v7/INDI-NCHI": {},
114
- "https://gedcom.io/terms/v7/INDI-RELI": {},
115
- "https://gedcom.io/terms/v7/INDI-RESI": {},
116
- "https://gedcom.io/terms/v7/INDI-TITL": {},
117
- "https://gedcom.io/terms/v7/INIL": {},
118
- "https://gedcom.io/terms/v7/LANG": {},
119
- "https://gedcom.io/terms/v7/LATI": {},
120
- "https://gedcom.io/terms/v7/LEFT": {},
121
- "https://gedcom.io/terms/v7/LONG": {},
122
- "https://gedcom.io/terms/v7/MAP": {},
123
- "https://gedcom.io/terms/v7/MARB": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
124
- "https://gedcom.io/terms/v7/MARC": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
125
- "https://gedcom.io/terms/v7/MARL": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
126
- "https://gedcom.io/terms/v7/MARR": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
127
- "https://gedcom.io/terms/v7/MARS": {'type':'Mutation','Object':GedcomXEventOrFact,'Args':{'value':'value'},'propertyof':[Relationship],'method':'add_fact'},
128
- "https://gedcom.io/terms/v7/MEDI": {},
129
- "https://gedcom.io/terms/v7/MIME": {},
130
- "https://gedcom.io/terms/v7/NAME": {},
131
- "https://gedcom.io/terms/v7/NAME-TRAN": {},
132
- "https://gedcom.io/terms/v7/NAME-TYPE": {},
133
- "https://gedcom.io/terms/v7/NATI": {},
134
- "https://gedcom.io/terms/v7/NATU": {},
135
- "https://gedcom.io/terms/v7/NCHI": {},
136
- "https://gedcom.io/terms/v7/NICK": {},
137
- "https://gedcom.io/terms/v7/NMR": {},
138
- "https://gedcom.io/terms/v7/NO": {},
139
- "https://gedcom.io/terms/v7/NO-DATE": {},
140
- "https://gedcom.io/terms/v7/NOTE": {},
141
- "https://gedcom.io/terms/v7/NOTE-TRAN": {},
142
- "https://gedcom.io/terms/v7/NPFX": {},
143
- "https://gedcom.io/terms/v7/NSFX": {},
144
- "https://gedcom.io/terms/v7/OBJE": {'type':'Object','Object':SourceReference,'Args':{'Id':'xref'}},
145
- "https://gedcom.io/terms/v7/OCCU": {},
146
- "https://gedcom.io/terms/v7/ORDN": {},
147
- "https://gedcom.io/terms/v7/PAGE": {},
148
- "https://gedcom.io/terms/v7/PEDI": {},
149
- "https://gedcom.io/terms/v7/PHON": {},
150
- "https://gedcom.io/terms/v7/PHRASE": {},
151
- "https://gedcom.io/terms/v7/PLAC": {},
152
- "https://gedcom.io/terms/v7/PLAC-FORM": {},
153
- "https://gedcom.io/terms/v7/PLAC-TRAN": {},
154
- "https://gedcom.io/terms/v7/POST": {},
155
- "https://gedcom.io/terms/v7/PROB": {},
156
- "https://gedcom.io/terms/v7/PROP": {},
157
- "https://gedcom.io/terms/v7/PUBL": {},
158
- "https://gedcom.io/terms/v7/QUAY": {},
159
- "https://gedcom.io/terms/v7/REFN": {},
160
- "https://gedcom.io/terms/v7/RELI": {},
161
- "https://gedcom.io/terms/v7/REPO": {'type':'Object','Object':Resource,'Args':{'Id':'xref'}},
162
- "https://gedcom.io/terms/v7/RESI": {},
163
- "https://gedcom.io/terms/v7/RESN": {},
164
- "https://gedcom.io/terms/v7/RETI": {},
165
- "https://gedcom.io/terms/v7/ROLE": {},
166
- "https://gedcom.io/terms/v7/SCHMA": {},
167
- "https://gedcom.io/terms/v7/SDATE": {},
168
- "https://gedcom.io/terms/v7/SEX": {},
169
- "https://gedcom.io/terms/v7/SLGC": {},
170
- "https://gedcom.io/terms/v7/SLGS": {},
171
- "https://gedcom.io/terms/v7/SNOTE": {},
172
- "https://gedcom.io/terms/v7/SOUR": {},
173
- "https://gedcom.io/terms/v7/SOUR-DATA": {},
174
- "https://gedcom.io/terms/v7/SOUR-EVEN": {},
175
- "https://gedcom.io/terms/v7/SPFX": {},
176
- "https://gedcom.io/terms/v7/SSN": {},
177
- "https://gedcom.io/terms/v7/STAE": {'type':'Propertyof','propertyof':Address,'assign':{'stateOrProvince':'value'}},
178
- "https://gedcom.io/terms/v7/STAT": {},
179
- "https://gedcom.io/terms/v7/SUBM": {},
180
- "https://gedcom.io/terms/v7/SUBM-LANG": {},
181
- "https://gedcom.io/terms/v7/SURN": {'class':NamePart,
182
- 'args':{'type':NamePartType.Surname,'value':'rTextValue'}
183
- },
184
- "https://gedcom.io/terms/v7/TAG": {},
185
- "https://gedcom.io/terms/v7/TEMP": {},
186
- "https://gedcom.io/terms/v7/TEXT": {},
187
- "https://gedcom.io/terms/v7/TIME": {},
188
- "https://gedcom.io/terms/v7/TITL": {'type':'PropertyObject','Object':TextValue,'Args':{'value':'value'},'propertyof':[SourceDescription],'method':'add_title'},
189
- "https://gedcom.io/terms/v7/TOP": {},
190
- "https://gedcom.io/terms/v7/TRAN": {},
191
- "https://gedcom.io/terms/v7/TRLR": {},
192
- "https://gedcom.io/terms/v7/TYPE": {'type':'Object','Object':Note,'Args':{'text':'value'},'propertyof':[Fact],'method':'add_note'},
193
- "https://gedcom.io/terms/v7/UID": {},
194
- "https://gedcom.io/terms/v7/VERS": {},
195
- "https://gedcom.io/terms/v7/WIDTH": {},
196
- "https://gedcom.io/terms/v7/WIFE": {},
197
- "https://gedcom.io/terms/v7/WILL": {},
198
- "https://gedcom.io/terms/v7/WWW": {},
199
- "https://gedcom.io/terms/v7/enumset-ADOP": {},
200
- "https://gedcom.io/terms/v7/enumset-EVEN": {},
201
- "https://gedcom.io/terms/v7/enumset-EVENATTR": {},
202
- "https://gedcom.io/terms/v7/enumset-FAMC-STAT": {},
203
- "https://gedcom.io/terms/v7/enumset-MEDI": {},
204
- "https://gedcom.io/terms/v7/enumset-NAME-TYPE": {},
205
- "https://gedcom.io/terms/v7/enumset-PEDI": {},
206
- "https://gedcom.io/terms/v7/enumset-QUAY": {},
207
- "https://gedcom.io/terms/v7/enumset-RESN": {},
208
- "https://gedcom.io/terms/v7/enumset-ROLE": {},
209
- "https://gedcom.io/terms/v7/enumset-SEX": {},
210
- "https://gedcom.io/terms/v7/ord-STAT": {},
211
- "https://gedcom.io/terms/v7/record-FAM": {'type':'TopLevelObject','Object':Relationship,'Args':{'id':'xref'}},
212
- "https://gedcom.io/terms/v7/record-INDI": {'type':'TopLevelObject','Object':Person,'Args':{'id':'xref'}},
213
- "https://gedcom.io/terms/v7/record-OBJE": {'type':'TopLevelObject','Object':SourceDescription, 'Args':{'id':'xref'}},
214
- "https://gedcom.io/terms/v7/record-REPO": {'type':'TopLevelObject','Object':Agent,'Args':{'id':'xref'}},
215
- "https://gedcom.io/terms/v7/record-SNOTE": {},
216
- "https://gedcom.io/terms/v7/record-SOUR": {'type':'TopLevelObject','Object':SourceDescription,'Args':{'id':'xref'}},
217
- "https://gedcom.io/terms/v7/record-SUBM": {'type':'Object','Object':Resource,'Args':{'Id':'xref'}},
218
- }
219
-
File without changes
File without changes
File without changes
File without changes
File without changes