pyaegean 0.1.0__tar.gz
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.
- pyaegean-0.1.0/LICENSE +201 -0
- pyaegean-0.1.0/NOTICE +40 -0
- pyaegean-0.1.0/PKG-INFO +168 -0
- pyaegean-0.1.0/README.md +113 -0
- pyaegean-0.1.0/pyproject.toml +72 -0
- pyaegean-0.1.0/setup.cfg +4 -0
- pyaegean-0.1.0/src/aegean/__init__.py +42 -0
- pyaegean-0.1.0/src/aegean/adapters/__init__.py +0 -0
- pyaegean-0.1.0/src/aegean/ai/__init__.py +67 -0
- pyaegean-0.1.0/src/aegean/ai/cache.py +44 -0
- pyaegean-0.1.0/src/aegean/ai/capabilities.py +181 -0
- pyaegean-0.1.0/src/aegean/ai/client.py +183 -0
- pyaegean-0.1.0/src/aegean/ai/grounding.py +39 -0
- pyaegean-0.1.0/src/aegean/ai/providers.py +112 -0
- pyaegean-0.1.0/src/aegean/analysis/__init__.py +146 -0
- pyaegean-0.1.0/src/aegean/analysis/accounting.py +20 -0
- pyaegean-0.1.0/src/aegean/analysis/align.py +162 -0
- pyaegean-0.1.0/src/aegean/analysis/collocation.py +150 -0
- pyaegean-0.1.0/src/aegean/analysis/distance.py +230 -0
- pyaegean-0.1.0/src/aegean/analysis/morphology.py +146 -0
- pyaegean-0.1.0/src/aegean/analysis/patterns.py +66 -0
- pyaegean-0.1.0/src/aegean/analysis/query.py +294 -0
- pyaegean-0.1.0/src/aegean/analysis/structure.py +81 -0
- pyaegean-0.1.0/src/aegean/core/__init__.py +25 -0
- pyaegean-0.1.0/src/aegean/core/_html.py +55 -0
- pyaegean-0.1.0/src/aegean/core/corpus.py +185 -0
- pyaegean-0.1.0/src/aegean/core/model.py +184 -0
- pyaegean-0.1.0/src/aegean/core/numerals.py +203 -0
- pyaegean-0.1.0/src/aegean/core/provenance.py +28 -0
- pyaegean-0.1.0/src/aegean/core/script.py +46 -0
- pyaegean-0.1.0/src/aegean/data/__init__.py +213 -0
- pyaegean-0.1.0/src/aegean/data/bundled/greek/benchmark_gold.json +88 -0
- pyaegean-0.1.0/src/aegean/data/bundled/greek/lemmata.json +51 -0
- pyaegean-0.1.0/src/aegean/data/bundled/greek/sample_texts.json +37 -0
- pyaegean-0.1.0/src/aegean/data/bundled/lineara/inscriptions.json +1 -0
- pyaegean-0.1.0/src/aegean/data/bundled/lineara/phonetic_map.json +52 -0
- pyaegean-0.1.0/src/aegean/data/bundled/lineara/signs.json +1 -0
- pyaegean-0.1.0/src/aegean/greek/__init__.py +80 -0
- pyaegean-0.1.0/src/aegean/greek/accent.py +60 -0
- pyaegean-0.1.0/src/aegean/greek/benchmark.py +192 -0
- pyaegean-0.1.0/src/aegean/greek/lemmatize.py +51 -0
- pyaegean-0.1.0/src/aegean/greek/meter.py +577 -0
- pyaegean-0.1.0/src/aegean/greek/morphology.py +379 -0
- pyaegean-0.1.0/src/aegean/greek/normalize.py +123 -0
- pyaegean-0.1.0/src/aegean/greek/phonology.py +130 -0
- pyaegean-0.1.0/src/aegean/greek/pos.py +114 -0
- pyaegean-0.1.0/src/aegean/greek/prosody.py +71 -0
- pyaegean-0.1.0/src/aegean/greek/syllabify.py +99 -0
- pyaegean-0.1.0/src/aegean/greek/tokenize.py +44 -0
- pyaegean-0.1.0/src/aegean/greek/treebank.py +298 -0
- pyaegean-0.1.0/src/aegean/integrations/__init__.py +0 -0
- pyaegean-0.1.0/src/aegean/io/__init__.py +0 -0
- pyaegean-0.1.0/src/aegean/py.typed +0 -0
- pyaegean-0.1.0/src/aegean/scripts/__init__.py +8 -0
- pyaegean-0.1.0/src/aegean/scripts/greek/__init__.py +41 -0
- pyaegean-0.1.0/src/aegean/scripts/greek/inventory.py +57 -0
- pyaegean-0.1.0/src/aegean/scripts/greek/loader.py +60 -0
- pyaegean-0.1.0/src/aegean/scripts/lineara/__init__.py +27 -0
- pyaegean-0.1.0/src/aegean/scripts/lineara/inventory.py +32 -0
- pyaegean-0.1.0/src/aegean/scripts/lineara/loader.py +96 -0
- pyaegean-0.1.0/src/aegean/scripts/lineara/phonetic.py +25 -0
- pyaegean-0.1.0/src/aegean/translate/__init__.py +71 -0
- pyaegean-0.1.0/src/pyaegean.egg-info/PKG-INFO +168 -0
- pyaegean-0.1.0/src/pyaegean.egg-info/SOURCES.txt +90 -0
- pyaegean-0.1.0/src/pyaegean.egg-info/dependency_links.txt +1 -0
- pyaegean-0.1.0/src/pyaegean.egg-info/requires.txt +40 -0
- pyaegean-0.1.0/src/pyaegean.egg-info/top_level.txt +1 -0
- pyaegean-0.1.0/tests/test_accounting.py +44 -0
- pyaegean-0.1.0/tests/test_agdt.py +106 -0
- pyaegean-0.1.0/tests/test_ai.py +139 -0
- pyaegean-0.1.0/tests/test_ai_adapters.py +197 -0
- pyaegean-0.1.0/tests/test_algorithms.py +193 -0
- pyaegean-0.1.0/tests/test_algorithms_properties.py +120 -0
- pyaegean-0.1.0/tests/test_corpus_greek.py +51 -0
- pyaegean-0.1.0/tests/test_corpus_lineara.py +42 -0
- pyaegean-0.1.0/tests/test_data.py +153 -0
- pyaegean-0.1.0/tests/test_dataframe.py +24 -0
- pyaegean-0.1.0/tests/test_greek_benchmark.py +118 -0
- pyaegean-0.1.0/tests/test_greek_meter.py +131 -0
- pyaegean-0.1.0/tests/test_greek_morphology.py +111 -0
- pyaegean-0.1.0/tests/test_greek_normalize.py +58 -0
- pyaegean-0.1.0/tests/test_greek_phonology.py +54 -0
- pyaegean-0.1.0/tests/test_greek_pipeline.py +99 -0
- pyaegean-0.1.0/tests/test_greek_pos.py +48 -0
- pyaegean-0.1.0/tests/test_greek_prosody.py +40 -0
- pyaegean-0.1.0/tests/test_numerals.py +58 -0
- pyaegean-0.1.0/tests/test_parity_lineara.py +58 -0
- pyaegean-0.1.0/tests/test_patterns.py +39 -0
- pyaegean-0.1.0/tests/test_query.py +147 -0
- pyaegean-0.1.0/tests/test_repr_html.py +92 -0
- pyaegean-0.1.0/tests/test_structure.py +65 -0
- pyaegean-0.1.0/tests/test_translate.py +46 -0
pyaegean-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work, excluding
|
|
103
|
+
those notices that do not pertain to any part of the Derivative
|
|
104
|
+
Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and do
|
|
117
|
+
not modify the License. You may add Your own attribution notices
|
|
118
|
+
within Derivative Works that You distribute, alongside or as an
|
|
119
|
+
addendum to the NOTICE text from the Work, provided that such
|
|
120
|
+
additional attribution notices cannot be construed as modifying
|
|
121
|
+
the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Ryan Pavlicek
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
pyaegean-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
pyaegean
|
|
2
|
+
Copyright 2026 Ryan Pavlicek
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Ryan Pavlicek, licensed under the
|
|
5
|
+
Apache License, Version 2.0.
|
|
6
|
+
|
|
7
|
+
================================================================================
|
|
8
|
+
Third-party data and attributions
|
|
9
|
+
================================================================================
|
|
10
|
+
|
|
11
|
+
Linear A corpus (bundled text JSON: src/aegean/data/bundled/lineara/)
|
|
12
|
+
Derived from the GORILA edition — Godart, L. & Olivier, J.-P. (1976–1985),
|
|
13
|
+
"Recueil des inscriptions en linéaire A" (Études Crétoises) — via the
|
|
14
|
+
open dataset at https://github.com/mwenge/lineara.xyz.
|
|
15
|
+
Used as a scholarly reference corpus. Transliterations and structured
|
|
16
|
+
metadata only; no facsimile imagery is bundled or redistributed.
|
|
17
|
+
|
|
18
|
+
Linear A facsimile / photographic imagery (fetched on demand, NOT redistributed)
|
|
19
|
+
© École Française d'Athènes and respective rights holders. Downloaded by the
|
|
20
|
+
user on demand from the linearaworkbench repository for academic reference;
|
|
21
|
+
never re-hosted by this package.
|
|
22
|
+
|
|
23
|
+
Ancient Greek Dependency Treebank — AGDT v2.1 (fetched on demand, NOT redistributed)
|
|
24
|
+
Perseus Ancient Greek Dependency Treebank, v2.1
|
|
25
|
+
(https://github.com/PerseusDL/treebank_data), licensed CC BY-SA 3.0. Downloaded
|
|
26
|
+
by the user on demand via aegean.greek.use_treebank(); pyaegean builds a derived
|
|
27
|
+
lemma/morphology lexicon in the local cache and neither bundles nor re-hosts the
|
|
28
|
+
treebank itself. Attribute the AGDT in academic work that relies on it.
|
|
29
|
+
|
|
30
|
+
Planned (future versions; included here for forward attribution):
|
|
31
|
+
- DAMOS — Database of Mycenaean at Oslo (Linear B).
|
|
32
|
+
- LiBER — Linear B Electronic Resources.
|
|
33
|
+
- PROIEL treebanks (Ancient Greek) — CC BY-NC-SA.
|
|
34
|
+
- First1KGreek / Open Greek and Latin — CC BY.
|
|
35
|
+
- Morpheus morphological data; LSJ lexicon (per applicable license).
|
|
36
|
+
Each will be attributed and license-gated as it is integrated.
|
|
37
|
+
|
|
38
|
+
The structured-data layer of this package is licensed Apache-2.0; underlying
|
|
39
|
+
scholarly editions and imagery remain under their respective rights. Cite the
|
|
40
|
+
original editions in academic work (see Corpus.provenance.cite()).
|
pyaegean-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyaegean
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A specialist Python toolkit for Ancient Greek — alphabetic Greek and the Aegean syllabic scripts (Linear A/B).
|
|
5
|
+
Author: Ryan Pavlicek
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/ryanpavlicek/pyaegean
|
|
8
|
+
Project-URL: Source, https://github.com/ryanpavlicek/pyaegean
|
|
9
|
+
Project-URL: Documentation, https://github.com/ryanpavlicek/pyaegean/wiki
|
|
10
|
+
Project-URL: Issues, https://github.com/ryanpavlicek/pyaegean/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/ryanpavlicek/pyaegean/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: ancient greek,linear a,linear b,mycenaean,aegean,epigraphy,philology,corpus,bronze age,syllabary
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: NOTICE
|
|
23
|
+
Requires-Dist: pandas>=2.0
|
|
24
|
+
Requires-Dist: scipy>=1.10
|
|
25
|
+
Provides-Extra: anthropic
|
|
26
|
+
Requires-Dist: anthropic>=0.39; extra == "anthropic"
|
|
27
|
+
Provides-Extra: openai
|
|
28
|
+
Requires-Dist: openai>=1.30; extra == "openai"
|
|
29
|
+
Provides-Extra: gemini
|
|
30
|
+
Requires-Dist: google-genai>=0.3; extra == "gemini"
|
|
31
|
+
Provides-Extra: grok
|
|
32
|
+
Requires-Dist: openai>=1.30; extra == "grok"
|
|
33
|
+
Provides-Extra: ai
|
|
34
|
+
Requires-Dist: anthropic>=0.39; extra == "ai"
|
|
35
|
+
Requires-Dist: openai>=1.30; extra == "ai"
|
|
36
|
+
Requires-Dist: google-genai>=0.3; extra == "ai"
|
|
37
|
+
Provides-Extra: epidoc
|
|
38
|
+
Requires-Dist: lxml>=5.0; extra == "epidoc"
|
|
39
|
+
Provides-Extra: geo
|
|
40
|
+
Requires-Dist: geopandas>=0.14; extra == "geo"
|
|
41
|
+
Requires-Dist: shapely>=2.0; extra == "geo"
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
44
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
45
|
+
Requires-Dist: hypothesis; extra == "dev"
|
|
46
|
+
Requires-Dist: mypy; extra == "dev"
|
|
47
|
+
Requires-Dist: ruff; extra == "dev"
|
|
48
|
+
Requires-Dist: build; extra == "dev"
|
|
49
|
+
Requires-Dist: twine; extra == "dev"
|
|
50
|
+
Requires-Dist: nbmake; extra == "dev"
|
|
51
|
+
Requires-Dist: ipykernel; extra == "dev"
|
|
52
|
+
Provides-Extra: all
|
|
53
|
+
Requires-Dist: pyaegean[ai,epidoc,geo]; extra == "all"
|
|
54
|
+
Dynamic: license-file
|
|
55
|
+
|
|
56
|
+
# pyaegean
|
|
57
|
+
|
|
58
|
+
**A specialist Python toolkit for Ancient Greek** — alphabetic Greek *and* the
|
|
59
|
+
Aegean syllabic scripts (Linear A / Linear B). pyaegean focuses narrowly and
|
|
60
|
+
deeply on Greek and the Aegean world: a script-agnostic corpus data layer, the
|
|
61
|
+
analytical methods from the Linear A Research Workbench, translation, and a
|
|
62
|
+
pluggable multi-provider AI layer. The excellent [CLTK](https://cltk.org) already
|
|
63
|
+
serves many ancient languages broadly; pyaegean is intentionally narrower, and
|
|
64
|
+
uses CLTK as a friendly benchmark to measure its Greek coverage against.
|
|
65
|
+
|
|
66
|
+
> **Status: v0.1 (alpha).** Script-agnostic core + Linear A fully implemented;
|
|
67
|
+
> the Greek NLP track and the AI layer are landing across v0.1–v0.2. See the
|
|
68
|
+
> roadmap. Analytical output on the undeciphered Linear A material is
|
|
69
|
+
> **exploratory** — see the methodology/limitations.
|
|
70
|
+
|
|
71
|
+
## Install
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install pyaegean # core + Linear A + Greek
|
|
75
|
+
pip install "pyaegean[ai]" # + Anthropic / OpenAI / Grok / Gemini clients
|
|
76
|
+
pip install "pyaegean[all]" # everything
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
> **Not on PyPI yet.** Until the first release, install from source instead:
|
|
80
|
+
> `pip install git+https://github.com/ryanpavlicek/pyaegean`
|
|
81
|
+
|
|
82
|
+
> **New to Python, or not a programmer?** You're exactly who this tool is for.
|
|
83
|
+
> The **[Getting Started guide](https://github.com/ryanpavlicek/pyaegean/wiki/Getting-Started)**
|
|
84
|
+
> walks you from "I have nothing installed" to your first result — no prior coding
|
|
85
|
+
> assumed.
|
|
86
|
+
|
|
87
|
+
## Quick start
|
|
88
|
+
|
|
89
|
+
Prefer to learn by doing? Run the guided tour in your browser — nothing to install:
|
|
90
|
+
[](https://colab.research.google.com/github/ryanpavlicek/pyaegean/blob/main/notebooks/getting-started.ipynb)
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
import aegean
|
|
94
|
+
|
|
95
|
+
corpus = aegean.load("lineara") # 1,721 inscriptions, bundled, offline
|
|
96
|
+
print(len(corpus)) # 1721
|
|
97
|
+
|
|
98
|
+
ht = corpus.filter(site="Haghia Triada") # filter by metadata (full site name)
|
|
99
|
+
df = corpus.to_dataframe(level="word") # pandas-native, one row per word
|
|
100
|
+
|
|
101
|
+
from aegean.analysis import balance_check, word_matches_sign_pattern
|
|
102
|
+
checks = balance_check(corpus.get("HT13")) # KU-RO accounting reconciliation
|
|
103
|
+
hits = [w for w, _ in corpus.word_frequencies()
|
|
104
|
+
if word_matches_sign_pattern(w, "KU-*-RO")] # wildcard sign search
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
And a taste of the Greek pipeline:
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
from aegean import greek
|
|
111
|
+
|
|
112
|
+
greek.betacode_to_unicode("mh=nin") # 'μῆνιν' (type Greek in plain ASCII)
|
|
113
|
+
greek.syllabify("ἄνθρωπος") # ['ἄν', 'θρω', 'πος']
|
|
114
|
+
greek.scan_hexameter("ἄνδρα μοι ἔννεπε, Μοῦσα, πολύτροπον, ὃς μάλα πολλὰ").pattern
|
|
115
|
+
# '—⏑⏑|—⏑⏑|—⏑⏑|—⏑⏑|—⏑⏑|—×' (Odyssey 1.1)
|
|
116
|
+
[str(a) for a in greek.analyze("λόγον")][:2]
|
|
117
|
+
# ['λόγος [NOUN acc sg masc]', 'λόγος [NOUN acc sg fem]']
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The full Linear A facsimile mirror (3,368 images, ~116 MB) is **not** bundled;
|
|
121
|
+
fetch it on demand: `aegean.data.fetch("lineara-images")` (downloaded from the
|
|
122
|
+
workbench repo, sha256-verified, cached locally — never re-hosted).
|
|
123
|
+
|
|
124
|
+
## What's here (v0.1)
|
|
125
|
+
|
|
126
|
+
- **`aegean.core`** — script-agnostic model: `Corpus`, `Document`, `Token`,
|
|
127
|
+
`Sign`, `SignInventory`, `Numeral`, the `Script` plugin registry, provenance.
|
|
128
|
+
- **`aegean.scripts.lineara`** — Linear A: bundled corpus + 84-sign inventory +
|
|
129
|
+
sign→sound map + transliteration.
|
|
130
|
+
- **`aegean.analysis`** — ported from the workbench: accounting reconciliation,
|
|
131
|
+
wildcard sign-pattern search, weighted phonetic distance + alignment,
|
|
132
|
+
morphology clustering, collocation statistics, a compound-query engine, and
|
|
133
|
+
heuristic tablet-structure classification (all with golden-fixture parity).
|
|
134
|
+
- **`aegean.greek`** — the Greek NLP track: Unicode/Beta Code normalization,
|
|
135
|
+
word/sentence tokenization, syllabification, accent and prosody analysis,
|
|
136
|
+
metrical scansion (dactylic hexameter + elegiac pentameter), reconstructed IPA,
|
|
137
|
+
POS tagging, a rule-based morphological analyzer (with an optional
|
|
138
|
+
Perseus-treebank–backed lexicon for attested, accented lemmas), and baseline
|
|
139
|
+
lemmatization. `aegean.load("greek")` loads a small bundled sample corpus (Archaic→Koine).
|
|
140
|
+
- **`aegean.data`** — bundled-data access + download-to-cache for large assets.
|
|
141
|
+
- **`aegean.ai`** (v0.2) — multi-provider AI layer: a provider-agnostic
|
|
142
|
+
`LLMClient` (Anthropic default, plus OpenAI, xAI Grok, Gemini — SDKs optional),
|
|
143
|
+
response caching, corpus grounding, and capabilities (translate, gloss,
|
|
144
|
+
decipherment hypotheses, NLP-assist, ask/summarize). Every generative result is
|
|
145
|
+
labeled **exploratory** with provenance. `aegean.translate` is the hybrid
|
|
146
|
+
lexicon+LLM front end.
|
|
147
|
+
|
|
148
|
+
## Documentation
|
|
149
|
+
|
|
150
|
+
Full documentation lives in the **[project wiki](https://github.com/ryanpavlicek/pyaegean/wiki)**:
|
|
151
|
+
|
|
152
|
+
- **[Getting Started](https://github.com/ryanpavlicek/pyaegean/wiki/Getting-Started)** — for newcomers to Python
|
|
153
|
+
- **[Example notebook](notebooks/getting-started.ipynb)** — a runnable guided tour ([open in Colab](https://colab.research.google.com/github/ryanpavlicek/pyaegean/blob/main/notebooks/getting-started.ipynb))
|
|
154
|
+
- **[Tutorial](https://github.com/ryanpavlicek/pyaegean/wiki/Tutorial)** — two guided, end-to-end research walkthroughs
|
|
155
|
+
- **[Linear A](https://github.com/ryanpavlicek/pyaegean/wiki/Linear-A)** · **[Analysis](https://github.com/ryanpavlicek/pyaegean/wiki/Analysis)** · **[Greek NLP](https://github.com/ryanpavlicek/pyaegean/wiki/Greek-NLP)** · **[AI Layer](https://github.com/ryanpavlicek/pyaegean/wiki/AI-Layer)** — reference per domain
|
|
156
|
+
- **[Data & Provenance](https://github.com/ryanpavlicek/pyaegean/wiki/Data-and-Provenance)** · **[FAQ](https://github.com/ryanpavlicek/pyaegean/wiki/FAQ)**
|
|
157
|
+
|
|
158
|
+
## Roadmap
|
|
159
|
+
|
|
160
|
+
v0.1 core + Linear A (+ Greek start) → v0.2 AI layer (multi-provider) +
|
|
161
|
+
translation → v0.3 deep Greek NLP (benchmarked against CLTK) → v0.4 Linear B
|
|
162
|
+
(DAMOS/LiBER) → v0.5 Cypriot/Cypro-Minoan → v1.0 stable.
|
|
163
|
+
|
|
164
|
+
## License
|
|
165
|
+
|
|
166
|
+
Apache-2.0. Corpus data is GORILA (Godart & Olivier 1976–1985) via
|
|
167
|
+
mwenge/lineara.xyz; facsimile imagery © École Française d'Athènes (referenced,
|
|
168
|
+
not redistributed). See `NOTICE`.
|
pyaegean-0.1.0/README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# pyaegean
|
|
2
|
+
|
|
3
|
+
**A specialist Python toolkit for Ancient Greek** — alphabetic Greek *and* the
|
|
4
|
+
Aegean syllabic scripts (Linear A / Linear B). pyaegean focuses narrowly and
|
|
5
|
+
deeply on Greek and the Aegean world: a script-agnostic corpus data layer, the
|
|
6
|
+
analytical methods from the Linear A Research Workbench, translation, and a
|
|
7
|
+
pluggable multi-provider AI layer. The excellent [CLTK](https://cltk.org) already
|
|
8
|
+
serves many ancient languages broadly; pyaegean is intentionally narrower, and
|
|
9
|
+
uses CLTK as a friendly benchmark to measure its Greek coverage against.
|
|
10
|
+
|
|
11
|
+
> **Status: v0.1 (alpha).** Script-agnostic core + Linear A fully implemented;
|
|
12
|
+
> the Greek NLP track and the AI layer are landing across v0.1–v0.2. See the
|
|
13
|
+
> roadmap. Analytical output on the undeciphered Linear A material is
|
|
14
|
+
> **exploratory** — see the methodology/limitations.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install pyaegean # core + Linear A + Greek
|
|
20
|
+
pip install "pyaegean[ai]" # + Anthropic / OpenAI / Grok / Gemini clients
|
|
21
|
+
pip install "pyaegean[all]" # everything
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
> **Not on PyPI yet.** Until the first release, install from source instead:
|
|
25
|
+
> `pip install git+https://github.com/ryanpavlicek/pyaegean`
|
|
26
|
+
|
|
27
|
+
> **New to Python, or not a programmer?** You're exactly who this tool is for.
|
|
28
|
+
> The **[Getting Started guide](https://github.com/ryanpavlicek/pyaegean/wiki/Getting-Started)**
|
|
29
|
+
> walks you from "I have nothing installed" to your first result — no prior coding
|
|
30
|
+
> assumed.
|
|
31
|
+
|
|
32
|
+
## Quick start
|
|
33
|
+
|
|
34
|
+
Prefer to learn by doing? Run the guided tour in your browser — nothing to install:
|
|
35
|
+
[](https://colab.research.google.com/github/ryanpavlicek/pyaegean/blob/main/notebooks/getting-started.ipynb)
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
import aegean
|
|
39
|
+
|
|
40
|
+
corpus = aegean.load("lineara") # 1,721 inscriptions, bundled, offline
|
|
41
|
+
print(len(corpus)) # 1721
|
|
42
|
+
|
|
43
|
+
ht = corpus.filter(site="Haghia Triada") # filter by metadata (full site name)
|
|
44
|
+
df = corpus.to_dataframe(level="word") # pandas-native, one row per word
|
|
45
|
+
|
|
46
|
+
from aegean.analysis import balance_check, word_matches_sign_pattern
|
|
47
|
+
checks = balance_check(corpus.get("HT13")) # KU-RO accounting reconciliation
|
|
48
|
+
hits = [w for w, _ in corpus.word_frequencies()
|
|
49
|
+
if word_matches_sign_pattern(w, "KU-*-RO")] # wildcard sign search
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
And a taste of the Greek pipeline:
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from aegean import greek
|
|
56
|
+
|
|
57
|
+
greek.betacode_to_unicode("mh=nin") # 'μῆνιν' (type Greek in plain ASCII)
|
|
58
|
+
greek.syllabify("ἄνθρωπος") # ['ἄν', 'θρω', 'πος']
|
|
59
|
+
greek.scan_hexameter("ἄνδρα μοι ἔννεπε, Μοῦσα, πολύτροπον, ὃς μάλα πολλὰ").pattern
|
|
60
|
+
# '—⏑⏑|—⏑⏑|—⏑⏑|—⏑⏑|—⏑⏑|—×' (Odyssey 1.1)
|
|
61
|
+
[str(a) for a in greek.analyze("λόγον")][:2]
|
|
62
|
+
# ['λόγος [NOUN acc sg masc]', 'λόγος [NOUN acc sg fem]']
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The full Linear A facsimile mirror (3,368 images, ~116 MB) is **not** bundled;
|
|
66
|
+
fetch it on demand: `aegean.data.fetch("lineara-images")` (downloaded from the
|
|
67
|
+
workbench repo, sha256-verified, cached locally — never re-hosted).
|
|
68
|
+
|
|
69
|
+
## What's here (v0.1)
|
|
70
|
+
|
|
71
|
+
- **`aegean.core`** — script-agnostic model: `Corpus`, `Document`, `Token`,
|
|
72
|
+
`Sign`, `SignInventory`, `Numeral`, the `Script` plugin registry, provenance.
|
|
73
|
+
- **`aegean.scripts.lineara`** — Linear A: bundled corpus + 84-sign inventory +
|
|
74
|
+
sign→sound map + transliteration.
|
|
75
|
+
- **`aegean.analysis`** — ported from the workbench: accounting reconciliation,
|
|
76
|
+
wildcard sign-pattern search, weighted phonetic distance + alignment,
|
|
77
|
+
morphology clustering, collocation statistics, a compound-query engine, and
|
|
78
|
+
heuristic tablet-structure classification (all with golden-fixture parity).
|
|
79
|
+
- **`aegean.greek`** — the Greek NLP track: Unicode/Beta Code normalization,
|
|
80
|
+
word/sentence tokenization, syllabification, accent and prosody analysis,
|
|
81
|
+
metrical scansion (dactylic hexameter + elegiac pentameter), reconstructed IPA,
|
|
82
|
+
POS tagging, a rule-based morphological analyzer (with an optional
|
|
83
|
+
Perseus-treebank–backed lexicon for attested, accented lemmas), and baseline
|
|
84
|
+
lemmatization. `aegean.load("greek")` loads a small bundled sample corpus (Archaic→Koine).
|
|
85
|
+
- **`aegean.data`** — bundled-data access + download-to-cache for large assets.
|
|
86
|
+
- **`aegean.ai`** (v0.2) — multi-provider AI layer: a provider-agnostic
|
|
87
|
+
`LLMClient` (Anthropic default, plus OpenAI, xAI Grok, Gemini — SDKs optional),
|
|
88
|
+
response caching, corpus grounding, and capabilities (translate, gloss,
|
|
89
|
+
decipherment hypotheses, NLP-assist, ask/summarize). Every generative result is
|
|
90
|
+
labeled **exploratory** with provenance. `aegean.translate` is the hybrid
|
|
91
|
+
lexicon+LLM front end.
|
|
92
|
+
|
|
93
|
+
## Documentation
|
|
94
|
+
|
|
95
|
+
Full documentation lives in the **[project wiki](https://github.com/ryanpavlicek/pyaegean/wiki)**:
|
|
96
|
+
|
|
97
|
+
- **[Getting Started](https://github.com/ryanpavlicek/pyaegean/wiki/Getting-Started)** — for newcomers to Python
|
|
98
|
+
- **[Example notebook](notebooks/getting-started.ipynb)** — a runnable guided tour ([open in Colab](https://colab.research.google.com/github/ryanpavlicek/pyaegean/blob/main/notebooks/getting-started.ipynb))
|
|
99
|
+
- **[Tutorial](https://github.com/ryanpavlicek/pyaegean/wiki/Tutorial)** — two guided, end-to-end research walkthroughs
|
|
100
|
+
- **[Linear A](https://github.com/ryanpavlicek/pyaegean/wiki/Linear-A)** · **[Analysis](https://github.com/ryanpavlicek/pyaegean/wiki/Analysis)** · **[Greek NLP](https://github.com/ryanpavlicek/pyaegean/wiki/Greek-NLP)** · **[AI Layer](https://github.com/ryanpavlicek/pyaegean/wiki/AI-Layer)** — reference per domain
|
|
101
|
+
- **[Data & Provenance](https://github.com/ryanpavlicek/pyaegean/wiki/Data-and-Provenance)** · **[FAQ](https://github.com/ryanpavlicek/pyaegean/wiki/FAQ)**
|
|
102
|
+
|
|
103
|
+
## Roadmap
|
|
104
|
+
|
|
105
|
+
v0.1 core + Linear A (+ Greek start) → v0.2 AI layer (multi-provider) +
|
|
106
|
+
translation → v0.3 deep Greek NLP (benchmarked against CLTK) → v0.4 Linear B
|
|
107
|
+
(DAMOS/LiBER) → v0.5 Cypriot/Cypro-Minoan → v1.0 stable.
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
Apache-2.0. Corpus data is GORILA (Godart & Olivier 1976–1985) via
|
|
112
|
+
mwenge/lineara.xyz; facsimile imagery © École Française d'Athènes (referenced,
|
|
113
|
+
not redistributed). See `NOTICE`.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pyaegean"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A specialist Python toolkit for Ancient Greek — alphabetic Greek and the Aegean syllabic scripts (Linear A/B)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "Apache-2.0" }
|
|
12
|
+
authors = [{ name = "Ryan Pavlicek" }]
|
|
13
|
+
keywords = [
|
|
14
|
+
"ancient greek", "linear a", "linear b", "mycenaean", "aegean",
|
|
15
|
+
"epigraphy", "philology", "corpus", "bronze age", "syllabary",
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 3 - Alpha",
|
|
19
|
+
"Intended Audience :: Science/Research",
|
|
20
|
+
"License :: OSI Approved :: Apache Software License",
|
|
21
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
22
|
+
"Topic :: Text Processing :: Linguistic",
|
|
23
|
+
"Typing :: Typed",
|
|
24
|
+
]
|
|
25
|
+
# Core stays import-light: numpy/pandas/scipy are imported lazily, only inside
|
|
26
|
+
# DataFrame interop and the collocation statistics. `import aegean` stays instant.
|
|
27
|
+
dependencies = ["pandas>=2.0", "scipy>=1.10"]
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
anthropic = ["anthropic>=0.39"]
|
|
31
|
+
openai = ["openai>=1.30"]
|
|
32
|
+
gemini = ["google-genai>=0.3"]
|
|
33
|
+
grok = ["openai>=1.30"] # xAI Grok is OpenAI-API-compatible
|
|
34
|
+
ai = ["anthropic>=0.39", "openai>=1.30", "google-genai>=0.3"]
|
|
35
|
+
epidoc = ["lxml>=5.0"]
|
|
36
|
+
geo = ["geopandas>=0.14", "shapely>=2.0"]
|
|
37
|
+
dev = ["pytest>=8", "pytest-cov", "hypothesis", "mypy", "ruff", "build", "twine", "nbmake", "ipykernel"]
|
|
38
|
+
all = ["pyaegean[ai,epidoc,geo]"]
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Homepage = "https://github.com/ryanpavlicek/pyaegean"
|
|
42
|
+
Source = "https://github.com/ryanpavlicek/pyaegean"
|
|
43
|
+
Documentation = "https://github.com/ryanpavlicek/pyaegean/wiki"
|
|
44
|
+
Issues = "https://github.com/ryanpavlicek/pyaegean/issues"
|
|
45
|
+
Changelog = "https://github.com/ryanpavlicek/pyaegean/blob/main/CHANGELOG.md"
|
|
46
|
+
|
|
47
|
+
[tool.setuptools]
|
|
48
|
+
package-dir = { "" = "src" }
|
|
49
|
+
|
|
50
|
+
[tool.setuptools.packages.find]
|
|
51
|
+
where = ["src"]
|
|
52
|
+
|
|
53
|
+
[tool.setuptools.package-data]
|
|
54
|
+
aegean = ["py.typed", "data/bundled/**/*.json"]
|
|
55
|
+
|
|
56
|
+
[tool.pytest.ini_options]
|
|
57
|
+
testpaths = ["tests"]
|
|
58
|
+
addopts = "-q"
|
|
59
|
+
|
|
60
|
+
[tool.ruff]
|
|
61
|
+
line-length = 100
|
|
62
|
+
src = ["src", "tests"]
|
|
63
|
+
|
|
64
|
+
[tool.mypy]
|
|
65
|
+
python_version = "3.10"
|
|
66
|
+
strict = true
|
|
67
|
+
files = ["src/aegean"]
|
|
68
|
+
warn_unused_ignores = false # pandas/numpy are lazy-imported; ignores vary by env
|
|
69
|
+
|
|
70
|
+
[[tool.mypy.overrides]]
|
|
71
|
+
module = ["pandas.*", "numpy.*", "scipy.*", "anthropic.*", "openai.*", "google.*"]
|
|
72
|
+
ignore_missing_imports = true
|
pyaegean-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""pyaegean — a specialist Python toolkit for Ancient Greek and the Aegean
|
|
2
|
+
syllabic scripts (Linear A/B).
|
|
3
|
+
|
|
4
|
+
v0.1: a script-agnostic corpus data layer with Linear A fully implemented (the
|
|
5
|
+
analytical core ported from the Linear A Workbench) and the Greek track begun.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from importlib.metadata import PackageNotFoundError, version as _pkg_version
|
|
11
|
+
|
|
12
|
+
from . import ai # noqa: F401 — multi-provider AI layer (SDKs lazy/optional)
|
|
13
|
+
from . import analysis # noqa: F401
|
|
14
|
+
from . import greek # noqa: F401 — Greek NLP pipeline
|
|
15
|
+
from . import scripts # noqa: F401 — registers built-in scripts (Linear A, Greek)
|
|
16
|
+
from . import translate # noqa: F401 — hybrid lexicon+LLM translation
|
|
17
|
+
from .core.corpus import Corpus
|
|
18
|
+
from .core.script import get_script, register, registered_scripts
|
|
19
|
+
|
|
20
|
+
try:
|
|
21
|
+
__version__ = _pkg_version("pyaegean")
|
|
22
|
+
except PackageNotFoundError: # pragma: no cover - running from a source tree, uninstalled
|
|
23
|
+
__version__ = "0.0.0+unknown"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def load(script_id: str) -> Corpus:
|
|
27
|
+
"""Load a bundled corpus, e.g. ``aegean.load("lineara")``."""
|
|
28
|
+
return Corpus.load(script_id)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
__all__ = [
|
|
32
|
+
"Corpus",
|
|
33
|
+
"load",
|
|
34
|
+
"get_script",
|
|
35
|
+
"register",
|
|
36
|
+
"registered_scripts",
|
|
37
|
+
"analysis",
|
|
38
|
+
"greek",
|
|
39
|
+
"ai",
|
|
40
|
+
"translate",
|
|
41
|
+
"__version__",
|
|
42
|
+
]
|
|
File without changes
|