それは元号的な人への何かですか

ちょっと個人的興味。

家系図に興味があって、親が管理していたものをみる。あまり古くは辿れなかったものの、それでも江戸時代までは遡れて。ただ、どの元号がどのくらい続いたのかの感覚的なものがないから、時代感覚がつかめなくて。

ひとまず:

gengo_rellist.py (4月3日改)
  1 # -*- coding: utf-8 -*-
  2 GENGO_RELLIST = [
  3     (1394, [(u'', (1394, 8, 2)), (u'応永', (1428, 6, 10))]),
  4     (1395, [(u'応永', (1428, 6, 10))]),
  5     (1396, [(u'応永', (1428, 6, 10))]),
  6     (1397, [(u'応永', (1428, 6, 10))]),
  7     (1398, [(u'応永', (1428, 6, 10))]),
  8     (1399, [(u'応永', (1428, 6, 10))]),
  9     (1400, [(u'応永', (1428, 6, 10))]),
 10     (1401, [(u'応永', (1428, 6, 10))]),
 11     (1402, [(u'応永', (1428, 6, 10))]),
 12     (1403, [(u'応永', (1428, 6, 10))]),
 13     (1404, [(u'応永', (1428, 6, 10))]),
 14     (1405, [(u'応永', (1428, 6, 10))]),
 15     (1406, [(u'応永', (1428, 6, 10))]),
 16     (1407, [(u'応永', (1428, 6, 10))]),
 17     (1408, [(u'応永', (1428, 6, 10))]),
 18     (1409, [(u'応永', (1428, 6, 10))]),
 19     (1410, [(u'応永', (1428, 6, 10))]),
 20     (1411, [(u'応永', (1428, 6, 10))]),
 21     (1412, [(u'応永', (1428, 6, 10))]),
 22     (1413, [(u'応永', (1428, 6, 10))]),
 23     (1414, [(u'応永', (1428, 6, 10))]),
 24     (1415, [(u'応永', (1428, 6, 10))]),
 25     (1416, [(u'応永', (1428, 6, 10))]),
 26     (1417, [(u'応永', (1428, 6, 10))]),
 27     (1418, [(u'応永', (1428, 6, 10))]),
 28     (1419, [(u'応永', (1428, 6, 10))]),
 29     (1420, [(u'応永', (1428, 6, 10))]),
 30     (1421, [(u'応永', (1428, 6, 10))]),
 31     (1422, [(u'応永', (1428, 6, 10))]),
 32     (1423, [(u'応永', (1428, 6, 10))]),
 33     (1424, [(u'応永', (1428, 6, 10))]),
 34     (1425, [(u'応永', (1428, 6, 10))]),
 35     (1426, [(u'応永', (1428, 6, 10))]),
 36     (1427, [(u'応永', (1428, 6, 10))]),
 37     (1428, [(u'応永', (1428, 6, 10)), (u'正長', (1429, 10, 3))]),
 38     (1429, [(u'正長', (1429, 10, 3)), (u'永享', (1441, 3, 10))]),
 39     (1430, [(u'永享', (1441, 3, 10))]),
 40     (1431, [(u'永享', (1441, 3, 10))]),
 41     (1432, [(u'永享', (1441, 3, 10))]),
 42     (1433, [(u'永享', (1441, 3, 10))]),
 43     (1434, [(u'永享', (1441, 3, 10))]),
 44     (1435, [(u'永享', (1441, 3, 10))]),
 45     (1436, [(u'永享', (1441, 3, 10))]),
 46     (1437, [(u'永享', (1441, 3, 10))]),
 47     (1438, [(u'永享', (1441, 3, 10))]),
 48     (1439, [(u'永享', (1441, 3, 10))]),
 49     (1440, [(u'永享', (1441, 3, 10))]),
 50     (1441, [(u'永享', (1441, 3, 10)), (u'嘉吉', (1444, 2, 23))]),
 51     (1442, [(u'嘉吉', (1444, 2, 23))]),
 52     (1443, [(u'嘉吉', (1444, 2, 23))]),
 53     (1444, [(u'嘉吉', (1444, 2, 23)), (u'文安', (1449, 8, 16))]),
 54     (1445, [(u'文安', (1449, 8, 16))]),
 55     (1446, [(u'文安', (1449, 8, 16))]),
 56     (1447, [(u'文安', (1449, 8, 16))]),
 57     (1448, [(u'文安', (1449, 8, 16))]),
 58     (1449, [(u'文安', (1449, 8, 16)), (u'宝徳', (1452, 8, 10))]),
 59     (1450, [(u'宝徳', (1452, 8, 10))]),
 60     (1451, [(u'宝徳', (1452, 8, 10))]),
 61     (1452, [(u'宝徳', (1452, 8, 10)), (u'享徳', (1455, 9, 6))]),
 62     (1453, [(u'享徳', (1455, 9, 6))]),
 63     (1454, [(u'享徳', (1455, 9, 6))]),
 64     (1455, [(u'享徳', (1455, 9, 6)), (u'康正', (1457, 10, 16))]),
 65     (1456, [(u'康正', (1457, 10, 16))]),
 66     (1457, [(u'康正', (1457, 10, 16)), (u'長禄', (1461, 2, 1))]),
 67     (1458, [(u'長禄', (1461, 2, 1))]),
 68     (1459, [(u'長禄', (1461, 2, 1))]),
 69     (1460, [(u'長禄', (1461, 2, 1))]),
 70     (1461, [(u'長禄', (1461, 2, 1)), (u'寛正', (1466, 3, 14))]),
 71     (1462, [(u'寛正', (1466, 3, 14))]),
 72     (1463, [(u'寛正', (1466, 3, 14))]),
 73     (1464, [(u'寛正', (1466, 3, 14))]),
 74     (1465, [(u'寛正', (1466, 3, 14))]),
 75     (1466, [(u'寛正', (1466, 3, 14)), (u'文正', (1467, 4, 9))]),
 76     (1467, [(u'文正', (1467, 4, 9)), (u'応仁', (1469, 6, 8))]),
 77     (1468, [(u'応仁', (1469, 6, 8))]),
 78     (1469, [(u'応仁', (1469, 6, 8)), (u'文明', (1487, 8, 9))]),
 79     (1470, [(u'文明', (1487, 8, 9))]),
 80     (1471, [(u'文明', (1487, 8, 9))]),
 81     (1472, [(u'文明', (1487, 8, 9))]),
 82     (1473, [(u'文明', (1487, 8, 9))]),
 83     (1474, [(u'文明', (1487, 8, 9))]),
 84     (1475, [(u'文明', (1487, 8, 9))]),
 85     (1476, [(u'文明', (1487, 8, 9))]),
 86     (1477, [(u'文明', (1487, 8, 9))]),
 87     (1478, [(u'文明', (1487, 8, 9))]),
 88     (1479, [(u'文明', (1487, 8, 9))]),
 89     (1480, [(u'文明', (1487, 8, 9))]),
 90     (1481, [(u'文明', (1487, 8, 9))]),
 91     (1482, [(u'文明', (1487, 8, 9))]),
 92     (1483, [(u'文明', (1487, 8, 9))]),
 93     (1484, [(u'文明', (1487, 8, 9))]),
 94     (1485, [(u'文明', (1487, 8, 9))]),
 95     (1486, [(u'文明', (1487, 8, 9))]),
 96     (1487, [(u'文明', (1487, 8, 9)), (u'長享', (1489, 9, 16))]),
 97     (1488, [(u'長享', (1489, 9, 16))]),
 98     (1489, [(u'長享', (1489, 9, 16)), (u'延徳', (1492, 8, 12))]),
 99     (1490, [(u'延徳', (1492, 8, 12))]),
100     (1491, [(u'延徳', (1492, 8, 12))]),
101     (1492, [(u'延徳', (1492, 8, 12)), (u'明応', (1501, 3, 18))]),
102     (1493, [(u'明応', (1501, 3, 18))]),
103     (1494, [(u'明応', (1501, 3, 18))]),
104     (1495, [(u'明応', (1501, 3, 18))]),
105     (1496, [(u'明応', (1501, 3, 18))]),
106     (1497, [(u'明応', (1501, 3, 18))]),
107     (1498, [(u'明応', (1501, 3, 18))]),
108     (1499, [(u'明応', (1501, 3, 18))]),
109     (1500, [(u'明応', (1501, 3, 18))]),
110     (1501, [(u'明応', (1501, 3, 18)), (u'文亀', (1504, 3, 16))]),
111     (1502, [(u'文亀', (1504, 3, 16))]),
112     (1503, [(u'文亀', (1504, 3, 16))]),
113     (1504, [(u'文亀', (1504, 3, 16)), (u'永正', (1521, 9, 23))]),
114     (1505, [(u'永正', (1521, 9, 23))]),
115     (1506, [(u'永正', (1521, 9, 23))]),
116     (1507, [(u'永正', (1521, 9, 23))]),
117     (1508, [(u'永正', (1521, 9, 23))]),
118     (1509, [(u'永正', (1521, 9, 23))]),
119     (1510, [(u'永正', (1521, 9, 23))]),
120     (1511, [(u'永正', (1521, 9, 23))]),
121     (1512, [(u'永正', (1521, 9, 23))]),
122     (1513, [(u'永正', (1521, 9, 23))]),
123     (1514, [(u'永正', (1521, 9, 23))]),
124     (1515, [(u'永正', (1521, 9, 23))]),
125     (1516, [(u'永正', (1521, 9, 23))]),
126     (1517, [(u'永正', (1521, 9, 23))]),
127     (1518, [(u'永正', (1521, 9, 23))]),
128     (1519, [(u'永正', (1521, 9, 23))]),
129     (1520, [(u'永正', (1521, 9, 23))]),
130     (1521, [(u'永正', (1521, 9, 23)), (u'大永', (1528, 9, 3))]),
131     (1522, [(u'大永', (1528, 9, 3))]),
132     (1523, [(u'大永', (1528, 9, 3))]),
133     (1524, [(u'大永', (1528, 9, 3))]),
134     (1525, [(u'大永', (1528, 9, 3))]),
135     (1526, [(u'大永', (1528, 9, 3))]),
136     (1527, [(u'大永', (1528, 9, 3))]),
137     (1528, [(u'大永', (1528, 9, 3)), (u'享禄', (1532, 8, 29))]),
138     (1529, [(u'享禄', (1532, 8, 29))]),
139     (1530, [(u'享禄', (1532, 8, 29))]),
140     (1531, [(u'享禄', (1532, 8, 29))]),
141     (1532, [(u'享禄', (1532, 8, 29)), (u'天文', (1555, 11, 7))]),
142     (1533, [(u'天文', (1555, 11, 7))]),
143     (1534, [(u'天文', (1555, 11, 7))]),
144     (1535, [(u'天文', (1555, 11, 7))]),
145     (1536, [(u'天文', (1555, 11, 7))]),
146     (1537, [(u'天文', (1555, 11, 7))]),
147     (1538, [(u'天文', (1555, 11, 7))]),
148     (1539, [(u'天文', (1555, 11, 7))]),
149     (1540, [(u'天文', (1555, 11, 7))]),
150     (1541, [(u'天文', (1555, 11, 7))]),
151     (1542, [(u'天文', (1555, 11, 7))]),
152     (1543, [(u'天文', (1555, 11, 7))]),
153     (1544, [(u'天文', (1555, 11, 7))]),
154     (1545, [(u'天文', (1555, 11, 7))]),
155     (1546, [(u'天文', (1555, 11, 7))]),
156     (1547, [(u'天文', (1555, 11, 7))]),
157     (1548, [(u'天文', (1555, 11, 7))]),
158     (1549, [(u'天文', (1555, 11, 7))]),
159     (1550, [(u'天文', (1555, 11, 7))]),
160     (1551, [(u'天文', (1555, 11, 7))]),
161     (1552, [(u'天文', (1555, 11, 7))]),
162     (1553, [(u'天文', (1555, 11, 7))]),
163     (1554, [(u'天文', (1555, 11, 7))]),
164     (1555, [(u'天文', (1555, 11, 7)), (u'弘治', (1558, 3, 18))]),
165     (1556, [(u'弘治', (1558, 3, 18))]),
166     (1557, [(u'弘治', (1558, 3, 18))]),
167     (1558, [(u'弘治', (1558, 3, 18)), (u'永禄', (1570, 5, 27))]),
168     (1559, [(u'永禄', (1570, 5, 27))]),
169     (1560, [(u'永禄', (1570, 5, 27))]),
170     (1561, [(u'永禄', (1570, 5, 27))]),
171     (1562, [(u'永禄', (1570, 5, 27))]),
172     (1563, [(u'永禄', (1570, 5, 27))]),
173     (1564, [(u'永禄', (1570, 5, 27))]),
174     (1565, [(u'永禄', (1570, 5, 27))]),
175     (1566, [(u'永禄', (1570, 5, 27))]),
176     (1567, [(u'永禄', (1570, 5, 27))]),
177     (1568, [(u'永禄', (1570, 5, 27))]),
178     (1569, [(u'永禄', (1570, 5, 27))]),
179     (1570, [(u'永禄', (1570, 5, 27)), (u'元亀', (1573, 8, 25))]),
180     (1571, [(u'元亀', (1573, 8, 25))]),
181     (1572, [(u'元亀', (1573, 8, 25))]),
182     (1573, [(u'元亀', (1573, 8, 25)), (u'天正', (1593, 1, 10))]),
183     (1574, [(u'天正', (1593, 1, 10))]),
184     (1575, [(u'天正', (1593, 1, 10))]),
185     (1576, [(u'天正', (1593, 1, 10))]),
186     (1577, [(u'天正', (1593, 1, 10))]),
187     (1578, [(u'天正', (1593, 1, 10))]),
188     (1579, [(u'天正', (1593, 1, 10))]),
189     (1580, [(u'天正', (1593, 1, 10))]),
190     (1581, [(u'天正', (1593, 1, 10))]),
191     (1582, [(u'天正', (1593, 1, 10))]),
192     (1583, [(u'天正', (1593, 1, 10))]),
193     (1584, [(u'天正', (1593, 1, 10))]),
194     (1585, [(u'天正', (1593, 1, 10))]),
195     (1586, [(u'天正', (1593, 1, 10))]),
196     (1587, [(u'天正', (1593, 1, 10))]),
197     (1588, [(u'天正', (1593, 1, 10))]),
198     (1589, [(u'天正', (1593, 1, 10))]),
199     (1590, [(u'天正', (1593, 1, 10))]),
200     (1591, [(u'天正', (1593, 1, 10))]),
201     (1592, [(u'天正', (1593, 1, 10))]),
202     (1593, [(u'天正', (1593, 1, 10)), (u'文禄', (1596, 12, 16))]),
203     (1594, [(u'文禄', (1596, 12, 16))]),
204     (1595, [(u'文禄', (1596, 12, 16))]),
205     (1596, [(u'文禄', (1596, 12, 16)), (u'慶長', (1615, 9, 5))]),
206     (1597, [(u'慶長', (1615, 9, 5))]),
207     (1598, [(u'慶長', (1615, 9, 5))]),
208     (1599, [(u'慶長', (1615, 9, 5))]),
209     (1600, [(u'慶長', (1615, 9, 5))]),
210     (1601, [(u'慶長', (1615, 9, 5))]),
211     (1602, [(u'慶長', (1615, 9, 5))]),
212     (1603, [(u'慶長', (1615, 9, 5))]),
213     (1604, [(u'慶長', (1615, 9, 5))]),
214     (1605, [(u'慶長', (1615, 9, 5))]),
215     (1606, [(u'慶長', (1615, 9, 5))]),
216     (1607, [(u'慶長', (1615, 9, 5))]),
217     (1608, [(u'慶長', (1615, 9, 5))]),
218     (1609, [(u'慶長', (1615, 9, 5))]),
219     (1610, [(u'慶長', (1615, 9, 5))]),
220     (1611, [(u'慶長', (1615, 9, 5))]),
221     (1612, [(u'慶長', (1615, 9, 5))]),
222     (1613, [(u'慶長', (1615, 9, 5))]),
223     (1614, [(u'慶長', (1615, 9, 5))]),
224     (1615, [(u'慶長', (1615, 9, 5)), (u'元和', (1624, 4, 17))]),
225     (1616, [(u'元和', (1624, 4, 17))]),
226     (1617, [(u'元和', (1624, 4, 17))]),
227     (1618, [(u'元和', (1624, 4, 17))]),
228     (1619, [(u'元和', (1624, 4, 17))]),
229     (1620, [(u'元和', (1624, 4, 17))]),
230     (1621, [(u'元和', (1624, 4, 17))]),
231     (1622, [(u'元和', (1624, 4, 17))]),
232     (1623, [(u'元和', (1624, 4, 17))]),
233     (1624, [(u'元和', (1624, 4, 17)), (u'寛永', (1645, 1, 13))]),
234     (1625, [(u'寛永', (1645, 1, 13))]),
235     (1626, [(u'寛永', (1645, 1, 13))]),
236     (1627, [(u'寛永', (1645, 1, 13))]),
237     (1628, [(u'寛永', (1645, 1, 13))]),
238     (1629, [(u'寛永', (1645, 1, 13))]),
239     (1630, [(u'寛永', (1645, 1, 13))]),
240     (1631, [(u'寛永', (1645, 1, 13))]),
241     (1632, [(u'寛永', (1645, 1, 13))]),
242     (1633, [(u'寛永', (1645, 1, 13))]),
243     (1634, [(u'寛永', (1645, 1, 13))]),
244     (1635, [(u'寛永', (1645, 1, 13))]),
245     (1636, [(u'寛永', (1645, 1, 13))]),
246     (1637, [(u'寛永', (1645, 1, 13))]),
247     (1638, [(u'寛永', (1645, 1, 13))]),
248     (1639, [(u'寛永', (1645, 1, 13))]),
249     (1640, [(u'寛永', (1645, 1, 13))]),
250     (1641, [(u'寛永', (1645, 1, 13))]),
251     (1642, [(u'寛永', (1645, 1, 13))]),
252     (1643, [(u'寛永', (1645, 1, 13))]),
253     (1644, [(u'寛永', (1645, 1, 13))]),
254     (1645, [(u'寛永', (1645, 1, 13)), (u'正保', (1648, 4, 7))]),
255     (1646, [(u'正保', (1648, 4, 7))]),
256     (1647, [(u'正保', (1648, 4, 7))]),
257     (1648, [(u'正保', (1648, 4, 7)), (u'慶安', (1652, 10, 20))]),
258     (1649, [(u'慶安', (1652, 10, 20))]),
259     (1650, [(u'慶安', (1652, 10, 20))]),
260     (1651, [(u'慶安', (1652, 10, 20))]),
261     (1652, [(u'慶安', (1652, 10, 20)), (u'承応', (1655, 5, 18))]),
262     (1653, [(u'承応', (1655, 5, 18))]),
263     (1654, [(u'承応', (1655, 5, 18))]),
264     (1655, [(u'承応', (1655, 5, 18)), (u'明暦', (1658, 8, 21))]),
265     (1656, [(u'明暦', (1658, 8, 21))]),
266     (1657, [(u'明暦', (1658, 8, 21))]),
267     (1658, [(u'明暦', (1658, 8, 21)), (u'万治', (1661, 5, 23))]),
268     (1659, [(u'万治', (1661, 5, 23))]),
269     (1660, [(u'万治', (1661, 5, 23))]),
270     (1661, [(u'万治', (1661, 5, 23)), (u'寛文', (1673, 10, 30))]),
271     (1662, [(u'寛文', (1673, 10, 30))]),
272     (1663, [(u'寛文', (1673, 10, 30))]),
273     (1664, [(u'寛文', (1673, 10, 30))]),
274     (1665, [(u'寛文', (1673, 10, 30))]),
275     (1666, [(u'寛文', (1673, 10, 30))]),
276     (1667, [(u'寛文', (1673, 10, 30))]),
277     (1668, [(u'寛文', (1673, 10, 30))]),
278     (1669, [(u'寛文', (1673, 10, 30))]),
279     (1670, [(u'寛文', (1673, 10, 30))]),
280     (1671, [(u'寛文', (1673, 10, 30))]),
281     (1672, [(u'寛文', (1673, 10, 30))]),
282     (1673, [(u'寛文', (1673, 10, 30)), (u'延宝', (1681, 11, 9))]),
283     (1674, [(u'延宝', (1681, 11, 9))]),
284     (1675, [(u'延宝', (1681, 11, 9))]),
285     (1676, [(u'延宝', (1681, 11, 9))]),
286     (1677, [(u'延宝', (1681, 11, 9))]),
287     (1678, [(u'延宝', (1681, 11, 9))]),
288     (1679, [(u'延宝', (1681, 11, 9))]),
289     (1680, [(u'延宝', (1681, 11, 9))]),
290     (1681, [(u'延宝', (1681, 11, 9)), (u'天和', (1684, 4, 5))]),
291     (1682, [(u'天和', (1684, 4, 5))]),
292     (1683, [(u'天和', (1684, 4, 5))]),
293     (1684, [(u'天和', (1684, 4, 5)), (u'貞享', (1688, 10, 23))]),
294     (1685, [(u'貞享', (1688, 10, 23))]),
295     (1686, [(u'貞享', (1688, 10, 23))]),
296     (1687, [(u'貞享', (1688, 10, 23))]),
297     (1688, [(u'貞享', (1688, 10, 23)), (u'元禄', (1704, 4, 16))]),
298     (1689, [(u'元禄', (1704, 4, 16))]),
299     (1690, [(u'元禄', (1704, 4, 16))]),
300     (1691, [(u'元禄', (1704, 4, 16))]),
301     (1692, [(u'元禄', (1704, 4, 16))]),
302     (1693, [(u'元禄', (1704, 4, 16))]),
303     (1694, [(u'元禄', (1704, 4, 16))]),
304     (1695, [(u'元禄', (1704, 4, 16))]),
305     (1696, [(u'元禄', (1704, 4, 16))]),
306     (1697, [(u'元禄', (1704, 4, 16))]),
307     (1698, [(u'元禄', (1704, 4, 16))]),
308     (1699, [(u'元禄', (1704, 4, 16))]),
309     (1700, [(u'元禄', (1704, 4, 16))]),
310     (1701, [(u'元禄', (1704, 4, 16))]),
311     (1702, [(u'元禄', (1704, 4, 16))]),
312     (1703, [(u'元禄', (1704, 4, 16))]),
313     (1704, [(u'元禄', (1704, 4, 16)), (u'宝永', (1711, 6, 11))]),
314     (1705, [(u'宝永', (1711, 6, 11))]),
315     (1706, [(u'宝永', (1711, 6, 11))]),
316     (1707, [(u'宝永', (1711, 6, 11))]),
317     (1708, [(u'宝永', (1711, 6, 11))]),
318     (1709, [(u'宝永', (1711, 6, 11))]),
319     (1710, [(u'宝永', (1711, 6, 11))]),
320     (1711, [(u'宝永', (1711, 6, 11)), (u'正徳', (1716, 8, 9))]),
321     (1712, [(u'正徳', (1716, 8, 9))]),
322     (1713, [(u'正徳', (1716, 8, 9))]),
323     (1714, [(u'正徳', (1716, 8, 9))]),
324     (1715, [(u'正徳', (1716, 8, 9))]),
325     (1716, [(u'正徳', (1716, 8, 9)), (u'享保', (1736, 6, 7))]),
326     (1717, [(u'享保', (1736, 6, 7))]),
327     (1718, [(u'享保', (1736, 6, 7))]),
328     (1719, [(u'享保', (1736, 6, 7))]),
329     (1720, [(u'享保', (1736, 6, 7))]),
330     (1721, [(u'享保', (1736, 6, 7))]),
331     (1722, [(u'享保', (1736, 6, 7))]),
332     (1723, [(u'享保', (1736, 6, 7))]),
333     (1724, [(u'享保', (1736, 6, 7))]),
334     (1725, [(u'享保', (1736, 6, 7))]),
335     (1726, [(u'享保', (1736, 6, 7))]),
336     (1727, [(u'享保', (1736, 6, 7))]),
337     (1728, [(u'享保', (1736, 6, 7))]),
338     (1729, [(u'享保', (1736, 6, 7))]),
339     (1730, [(u'享保', (1736, 6, 7))]),
340     (1731, [(u'享保', (1736, 6, 7))]),
341     (1732, [(u'享保', (1736, 6, 7))]),
342     (1733, [(u'享保', (1736, 6, 7))]),
343     (1734, [(u'享保', (1736, 6, 7))]),
344     (1735, [(u'享保', (1736, 6, 7))]),
345     (1736, [(u'享保', (1736, 6, 7)), (u'元文', (1741, 4, 12))]),
346     (1737, [(u'元文', (1741, 4, 12))]),
347     (1738, [(u'元文', (1741, 4, 12))]),
348     (1739, [(u'元文', (1741, 4, 12))]),
349     (1740, [(u'元文', (1741, 4, 12))]),
350     (1741, [(u'元文', (1741, 4, 12)), (u'寛保', (1744, 4, 3))]),
351     (1742, [(u'寛保', (1744, 4, 3))]),
352     (1743, [(u'寛保', (1744, 4, 3))]),
353     (1744, [(u'寛保', (1744, 4, 3)), (u'延享', (1748, 8, 5))]),
354     (1745, [(u'延享', (1748, 8, 5))]),
355     (1746, [(u'延享', (1748, 8, 5))]),
356     (1747, [(u'延享', (1748, 8, 5))]),
357     (1748, [(u'延享', (1748, 8, 5)), (u'寛延', (1751, 12, 14))]),
358     (1749, [(u'寛延', (1751, 12, 14))]),
359     (1750, [(u'寛延', (1751, 12, 14))]),
360     (1751, [(u'寛延', (1751, 12, 14)), (u'宝暦', (1764, 6, 30))]),
361     (1752, [(u'宝暦', (1764, 6, 30))]),
362     (1753, [(u'宝暦', (1764, 6, 30))]),
363     (1754, [(u'宝暦', (1764, 6, 30))]),
364     (1755, [(u'宝暦', (1764, 6, 30))]),
365     (1756, [(u'宝暦', (1764, 6, 30))]),
366     (1757, [(u'宝暦', (1764, 6, 30))]),
367     (1758, [(u'宝暦', (1764, 6, 30))]),
368     (1759, [(u'宝暦', (1764, 6, 30))]),
369     (1760, [(u'宝暦', (1764, 6, 30))]),
370     (1761, [(u'宝暦', (1764, 6, 30))]),
371     (1762, [(u'宝暦', (1764, 6, 30))]),
372     (1763, [(u'宝暦', (1764, 6, 30))]),
373     (1764, [(u'宝暦', (1764, 6, 30)), (u'明和', (1772, 12, 10))]),
374     (1765, [(u'明和', (1772, 12, 10))]),
375     (1766, [(u'明和', (1772, 12, 10))]),
376     (1767, [(u'明和', (1772, 12, 10))]),
377     (1768, [(u'明和', (1772, 12, 10))]),
378     (1769, [(u'明和', (1772, 12, 10))]),
379     (1770, [(u'明和', (1772, 12, 10))]),
380     (1771, [(u'明和', (1772, 12, 10))]),
381     (1772, [(u'明和', (1772, 12, 10)), (u'安永', (1781, 4, 25))]),
382     (1773, [(u'安永', (1781, 4, 25))]),
383     (1774, [(u'安永', (1781, 4, 25))]),
384     (1775, [(u'安永', (1781, 4, 25))]),
385     (1776, [(u'安永', (1781, 4, 25))]),
386     (1777, [(u'安永', (1781, 4, 25))]),
387     (1778, [(u'安永', (1781, 4, 25))]),
388     (1779, [(u'安永', (1781, 4, 25))]),
389     (1780, [(u'安永', (1781, 4, 25))]),
390     (1781, [(u'安永', (1781, 4, 25)), (u'天明', (1789, 2, 19))]),
391     (1782, [(u'天明', (1789, 2, 19))]),
392     (1783, [(u'天明', (1789, 2, 19))]),
393     (1784, [(u'天明', (1789, 2, 19))]),
394     (1785, [(u'天明', (1789, 2, 19))]),
395     (1786, [(u'天明', (1789, 2, 19))]),
396     (1787, [(u'天明', (1789, 2, 19))]),
397     (1788, [(u'天明', (1789, 2, 19))]),
398     (1789, [(u'天明', (1789, 2, 19)), (u'寛政', (1801, 3, 19))]),
399     (1790, [(u'寛政', (1801, 3, 19))]),
400     (1791, [(u'寛政', (1801, 3, 19))]),
401     (1792, [(u'寛政', (1801, 3, 19))]),
402     (1793, [(u'寛政', (1801, 3, 19))]),
403     (1794, [(u'寛政', (1801, 3, 19))]),
404     (1795, [(u'寛政', (1801, 3, 19))]),
405     (1796, [(u'寛政', (1801, 3, 19))]),
406     (1797, [(u'寛政', (1801, 3, 19))]),
407     (1798, [(u'寛政', (1801, 3, 19))]),
408     (1799, [(u'寛政', (1801, 3, 19))]),
409     (1800, [(u'寛政', (1801, 3, 19))]),
410     (1801, [(u'寛政', (1801, 3, 19)), (u'享和', (1804, 3, 22))]),
411     (1802, [(u'享和', (1804, 3, 22))]),
412     (1803, [(u'享和', (1804, 3, 22))]),
413     (1804, [(u'享和', (1804, 3, 22)), (u'文化', (1818, 5, 26))]),
414     (1805, [(u'文化', (1818, 5, 26))]),
415     (1806, [(u'文化', (1818, 5, 26))]),
416     (1807, [(u'文化', (1818, 5, 26))]),
417     (1808, [(u'文化', (1818, 5, 26))]),
418     (1809, [(u'文化', (1818, 5, 26))]),
419     (1810, [(u'文化', (1818, 5, 26))]),
420     (1811, [(u'文化', (1818, 5, 26))]),
421     (1812, [(u'文化', (1818, 5, 26))]),
422     (1813, [(u'文化', (1818, 5, 26))]),
423     (1814, [(u'文化', (1818, 5, 26))]),
424     (1815, [(u'文化', (1818, 5, 26))]),
425     (1816, [(u'文化', (1818, 5, 26))]),
426     (1817, [(u'文化', (1818, 5, 26))]),
427     (1818, [(u'文化', (1818, 5, 26)), (u'文政', (1831, 1, 23))]),
428     (1819, [(u'文政', (1831, 1, 23))]),
429     (1820, [(u'文政', (1831, 1, 23))]),
430     (1821, [(u'文政', (1831, 1, 23))]),
431     (1822, [(u'文政', (1831, 1, 23))]),
432     (1823, [(u'文政', (1831, 1, 23))]),
433     (1824, [(u'文政', (1831, 1, 23))]),
434     (1825, [(u'文政', (1831, 1, 23))]),
435     (1826, [(u'文政', (1831, 1, 23))]),
436     (1827, [(u'文政', (1831, 1, 23))]),
437     (1828, [(u'文政', (1831, 1, 23))]),
438     (1829, [(u'文政', (1831, 1, 23))]),
439     (1830, [(u'文政', (1831, 1, 23))]),
440     (1831, [(u'文政', (1831, 1, 23)), (u'天保', (1845, 1, 9))]),
441     (1832, [(u'天保', (1845, 1, 9))]),
442     (1833, [(u'天保', (1845, 1, 9))]),
443     (1834, [(u'天保', (1845, 1, 9))]),
444     (1835, [(u'天保', (1845, 1, 9))]),
445     (1836, [(u'天保', (1845, 1, 9))]),
446     (1837, [(u'天保', (1845, 1, 9))]),
447     (1838, [(u'天保', (1845, 1, 9))]),
448     (1839, [(u'天保', (1845, 1, 9))]),
449     (1840, [(u'天保', (1845, 1, 9))]),
450     (1841, [(u'天保', (1845, 1, 9))]),
451     (1842, [(u'天保', (1845, 1, 9))]),
452     (1843, [(u'天保', (1845, 1, 9))]),
453     (1844, [(u'天保', (1845, 1, 9))]),
454     (1845, [(u'天保', (1845, 1, 9)), (u'弘化', (1848, 4, 1))]),
455     (1846, [(u'弘化', (1848, 4, 1))]),
456     (1847, [(u'弘化', (1848, 4, 1))]),
457     (1848, [(u'弘化', (1848, 4, 1)), (u'嘉永', (1855, 1, 15))]),
458     (1849, [(u'嘉永', (1855, 1, 15))]),
459     (1850, [(u'嘉永', (1855, 1, 15))]),
460     (1851, [(u'嘉永', (1855, 1, 15))]),
461     (1852, [(u'嘉永', (1855, 1, 15))]),
462     (1853, [(u'嘉永', (1855, 1, 15))]),
463     (1854, [(u'嘉永', (1855, 1, 15))]),
464     (1855, [(u'嘉永', (1855, 1, 15)), (u'安政', (1860, 4, 8))]),
465     (1856, [(u'安政', (1860, 4, 8))]),
466     (1857, [(u'安政', (1860, 4, 8))]),
467     (1858, [(u'安政', (1860, 4, 8))]),
468     (1859, [(u'安政', (1860, 4, 8))]),
469     (1860, [(u'安政', (1860, 4, 8)), (u'万延', (1861, 3, 29))]),
470     (1861, [(u'万延', (1861, 3, 29)), (u'文久', (1864, 3, 27))]),
471     (1862, [(u'文久', (1864, 3, 27))]),
472     (1863, [(u'文久', (1864, 3, 27))]),
473     (1864, [(u'文久', (1864, 3, 27)), (u'元治', (1865, 5, 1))]),
474     (1865, [(u'元治', (1865, 5, 1)), (u'慶応', (1868, 10, 23))]),
475     (1866, [(u'慶応', (1868, 10, 23))]),
476     (1867, [(u'慶応', (1868, 10, 23))]),
477 ]

4月3日追記:「(4月3日改)」とある通り、抜けがあったので修正。なんでだろ、元和~元禄がごっそり抜けてた。

最初は「大化」から「平成」までやろうかと思ったけど、南北朝時代に元号がブランチしちゃうので南北朝合一後から。一世一元以降は、「期間(公的)」「期間(当時)」の意味がわからなかったのと、まぁ後でいいかと思ったのと。

これをビジュアライズしたいんだよねぇ。何使おうかな?

なお、この形式のリストの前に、こんなリストを先に作ってます:

gengo_list.py (4月3日改)
 1 # -*- coding: utf-8 -*-
 2 GENGO_LIST = (
 3     (u"応永", (1394, 8, 2), (1428, 6, 10)),
 4     (u"正長", (1428, 6, 10), (1429, 10, 3)),
 5     (u"永享", (1429, 10, 3), (1441, 3, 10)),
 6     (u"嘉吉", (1441, 3, 10), (1444, 2, 23)),
 7     (u"文安", (1444, 2, 23), (1449, 8, 16)),
 8     (u"宝徳", (1449, 8, 16), (1452, 8, 10)),
 9     (u"享徳", (1452, 8, 10), (1455, 9, 6)),
10     (u"康正", (1455, 9, 6), (1457, 10, 16)),
11     (u"長禄", (1457, 10, 16), (1461, 2, 1)),
12     (u"寛正", (1461, 2, 1), (1466, 3, 14)),
13     (u"文正", (1466, 3, 14), (1467, 4, 9)),
14     (u"応仁", (1467, 4, 9), (1469, 6, 8)),
15     (u"文明", (1469, 6, 8), (1487, 8, 9)),
16     (u"長享", (1487, 8, 9), (1489, 9, 16)),
17     (u"延徳", (1489, 9, 16), (1492, 8, 12)),
18     (u"明応", (1492, 8, 12), (1501, 3, 18)),
19     (u"文亀", (1501, 3, 18), (1504, 3, 16)),
20     (u"永正", (1504, 3, 16), (1521, 9, 23)),
21     (u"大永", (1521, 9, 23), (1528, 9, 3)),
22     (u"享禄", (1528, 9, 3), (1532, 8, 29)),
23     (u"天文", (1532, 8, 29), (1555, 11, 7)),
24     (u"弘治", (1555, 11, 7), (1558, 3, 18)),
25     (u"永禄", (1558, 3, 18), (1570, 5, 27)),
26     (u"元亀", (1570, 5, 27), (1573, 8, 25)),
27     (u"天正", (1573, 8, 25), (1593, 1, 10)),
28     (u"文禄", (1593, 1, 10), (1596, 12, 16)),
29     (u"慶長", (1596, 12, 16), (1615, 9, 5)),
30     (u"元和", (1615, 9, 5), (1624, 4, 17)),
31     (u"寛永", (1624, 4, 17), (1645, 1, 13)),
32     (u"正保", (1645, 1, 13), (1648, 4, 7)),
33     (u"慶安", (1648, 4, 7), (1652, 10, 20)),
34     (u"承応", (1652, 10, 20), (1655, 5, 18)),
35     (u"明暦", (1655, 5, 18), (1658, 8, 21)),
36     (u"万治", (1658, 8, 21), (1661, 5, 23)),
37     (u"寛文", (1661, 5, 23), (1673, 10, 30)),
38     (u"延宝", (1673, 10, 30), (1681, 11, 9)),
39     (u"天和", (1681, 11, 9), (1684, 4, 5)),
40     (u"貞享", (1684, 4, 5), (1688, 10, 23)),
41     (u"元禄", (1688, 10, 23), (1704, 4, 16)),
42     (u"宝永", (1704, 4, 16), (1711, 6, 11)),
43     (u"正徳", (1711, 6, 11), (1716, 8, 9)),
44     (u"享保", (1716, 8, 9), (1736, 6, 7)),
45     (u"元文", (1736, 6, 7), (1741, 4, 12)),
46     (u"寛保", (1741, 4, 12), (1744, 4, 3)),
47     (u"延享", (1744, 4, 3), (1748, 8, 5)),
48     (u"寛延", (1748, 8, 5), (1751, 12, 14)),
49     (u"宝暦", (1751, 12, 14), (1764, 6, 30)),
50     (u"明和", (1764, 6, 30), (1772, 12, 10)),
51     (u"安永", (1772, 12, 10), (1781, 4, 25)),
52     (u"天明", (1781, 4, 25), (1789, 2, 19)),
53     (u"寛政", (1789, 2, 19), (1801, 3, 19)),
54     (u"享和", (1801, 3, 19), (1804, 3, 22)),
55     (u"文化", (1804, 3, 22), (1818, 5, 26)),
56     (u"文政", (1818, 5, 26), (1831, 1, 23)),
57     (u"天保", (1831, 1, 23), (1845, 1, 9)),
58     (u"弘化", (1845, 1, 9), (1848, 4, 1)),
59     (u"嘉永", (1848, 4, 1), (1855, 1, 15)),
60     (u"安政", (1855, 1, 15), (1860, 4, 8)),
61     (u"万延", (1860, 4, 8), (1861, 3, 29)),
62     (u"文久", (1861, 3, 29), (1864, 3, 27)),
63     (u"元治", (1864, 3, 27), (1865, 5, 1)),
64     (u"慶応", (1865, 5, 1), (1868, 10, 23)),
65 )

4月3日追記:「(4月3日改)」とある通り、抜けがあったので修正。なんでだろ、元和~元禄がごっそり抜けてた。

gengo_list.py から gengo_rellist.py へは、以下の馬鹿スクリプトで:

 1 # -*- coding: utf-8 -*-
 2 import re
 3 import sys, codecs
 4 sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
 5 from gengo_list import GENGO_LIST
 6 
 7 print("# -*- coding: utf-8 -*-")
 8 print("GENGO_RELLIST = [")
 9 idx = 0
10 cur = (GENGO_LIST[0][0], GENGO_LIST[0][2])
11 for y in range(GENGO_LIST[0][1][0], GENGO_LIST[-1][2][0]):
12     if y == GENGO_LIST[0][1][0]:
13         inner = [(u"", GENGO_LIST[0][1]), cur]
14     else:
15         inner = [cur]
16     while GENGO_LIST[idx][2][0] <= y:
17         idx += 1
18         cur = (GENGO_LIST[idx][0], GENGO_LIST[idx][2])
19         inner.append((GENGO_LIST[idx][0], GENGO_LIST[idx][2]))
20     print(u"    %s," %
21         re.sub(r"\\u([a-f0-9]{4})",
22                lambda m: unichr(int(m.group(1), 16)),
23                repr((y, inner))))
24 print("]")

gengo_rellist.py 自体がまぁ「手作業保守可能」にはなってるんで、このスクリプトは、多分用済みかなと。

しょーもないネタですんません。