python-iso639 2024.2.7__tar.gz → 2024.4.27__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.
- {python-iso639-2024.2.7/src/python_iso639.egg-info → python_iso639-2024.4.27}/PKG-INFO +11 -10
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/README.md +4 -4
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/pyproject.toml +7 -6
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/iso639/__init__.py +1 -1
- python_iso639-2024.4.27/src/iso639/languages.db +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27/src/python_iso639.egg-info}/PKG-INFO +11 -10
- python_iso639-2024.4.27/src/python_iso639.egg-info/requires.txt +8 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/tests/test_language.py +2 -2
- python-iso639-2024.2.7/src/iso639/languages.db +0 -0
- python-iso639-2024.2.7/src/python_iso639.egg-info/requires.txt +0 -7
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/LICENSE.txt +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/setup.cfg +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/iso639/language.py +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/python_iso639.egg-info/SOURCES.txt +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/python_iso639.egg-info/dependency_links.txt +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/python_iso639.egg-info/not-zip-safe +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/python_iso639.egg-info/top_level.txt +0 -0
- {python-iso639-2024.2.7 → python_iso639-2024.4.27}/tests/test_version_number.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-iso639
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 2024.4.27
|
|
4
|
+
Summary: ISO 639 language codes, names, and other associated information
|
|
5
5
|
Author-email: "Jackson L. Lee" <jacksonlunlee@gmail.com>
|
|
6
6
|
License: Apache 2.0
|
|
7
7
|
Project-URL: Source, https://github.com/jacksonllee/iso639
|
|
@@ -28,11 +28,12 @@ Requires-Python: >=3.8
|
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
License-File: LICENSE.txt
|
|
30
30
|
Provides-Extra: dev
|
|
31
|
-
Requires-Dist: black==24.
|
|
32
|
-
Requires-Dist: build==1.
|
|
31
|
+
Requires-Dist: black==24.4.2; extra == "dev"
|
|
32
|
+
Requires-Dist: build==1.2.1; extra == "dev"
|
|
33
33
|
Requires-Dist: flake8==7.0.0; extra == "dev"
|
|
34
|
-
Requires-Dist: pytest==8.
|
|
35
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: pytest==8.1.2; extra == "dev"
|
|
35
|
+
Requires-Dist: requests==2.31.0; extra == "dev"
|
|
36
|
+
Requires-Dist: twine==5.0.0; extra == "dev"
|
|
36
37
|
|
|
37
38
|
# python-iso639
|
|
38
39
|
|
|
@@ -41,7 +42,7 @@ Requires-Dist: twine==4.0.2; extra == "dev"
|
|
|
41
42
|
[](https://pypi.org/project/python-iso639/)
|
|
42
43
|
[](https://circleci.com/gh/jacksonllee/iso639)
|
|
43
44
|
|
|
44
|
-
`python-iso639` is a Python package for
|
|
45
|
+
`python-iso639` is a Python package for ISO 639 language codes, names, and
|
|
45
46
|
other associated information.
|
|
46
47
|
|
|
47
48
|
Current features:
|
|
@@ -257,7 +258,7 @@ If there isn't a match, a `LanguageNotFoundError` is raised.
|
|
|
257
258
|
|
|
258
259
|
The `Language` class is a dataclass.
|
|
259
260
|
All functionality of
|
|
260
|
-
[
|
|
261
|
+
[dataclasses](https://docs.python.org/3/library/dataclasses.html)
|
|
261
262
|
applies to `Language` and its instances,
|
|
262
263
|
e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict):
|
|
263
264
|
|
|
@@ -275,7 +276,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
275
276
|
```python
|
|
276
277
|
>>> import iso639
|
|
277
278
|
>>> iso639.DATA_LAST_UPDATED
|
|
278
|
-
datetime.date(2024,
|
|
279
|
+
datetime.date(2024, 4, 15)
|
|
279
280
|
```
|
|
280
281
|
|
|
281
282
|
* `ALL_LANGUAGES`: The list of all `Language` objects based on the included language code data
|
|
@@ -285,7 +286,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
285
286
|
>>> type(iso639.ALL_LANGUAGES)
|
|
286
287
|
<class 'list'>
|
|
287
288
|
>>> len(iso639.ALL_LANGUAGES)
|
|
288
|
-
|
|
289
|
+
7920
|
|
289
290
|
>>> iso639.ALL_LANGUAGES[0]
|
|
290
291
|
Language(part3='aaa', scope='I', type='L', status='A', name='Ghotuo', ...)
|
|
291
292
|
```
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://pypi.org/project/python-iso639/)
|
|
6
6
|
[](https://circleci.com/gh/jacksonllee/iso639)
|
|
7
7
|
|
|
8
|
-
`python-iso639` is a Python package for
|
|
8
|
+
`python-iso639` is a Python package for ISO 639 language codes, names, and
|
|
9
9
|
other associated information.
|
|
10
10
|
|
|
11
11
|
Current features:
|
|
@@ -221,7 +221,7 @@ If there isn't a match, a `LanguageNotFoundError` is raised.
|
|
|
221
221
|
|
|
222
222
|
The `Language` class is a dataclass.
|
|
223
223
|
All functionality of
|
|
224
|
-
[
|
|
224
|
+
[dataclasses](https://docs.python.org/3/library/dataclasses.html)
|
|
225
225
|
applies to `Language` and its instances,
|
|
226
226
|
e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict):
|
|
227
227
|
|
|
@@ -239,7 +239,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
239
239
|
```python
|
|
240
240
|
>>> import iso639
|
|
241
241
|
>>> iso639.DATA_LAST_UPDATED
|
|
242
|
-
datetime.date(2024,
|
|
242
|
+
datetime.date(2024, 4, 15)
|
|
243
243
|
```
|
|
244
244
|
|
|
245
245
|
* `ALL_LANGUAGES`: The list of all `Language` objects based on the included language code data
|
|
@@ -249,7 +249,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
249
249
|
>>> type(iso639.ALL_LANGUAGES)
|
|
250
250
|
<class 'list'>
|
|
251
251
|
>>> len(iso639.ALL_LANGUAGES)
|
|
252
|
-
|
|
252
|
+
7920
|
|
253
253
|
>>> iso639.ALL_LANGUAGES[0]
|
|
254
254
|
Language(part3='aaa', scope='I', type='L', status='A', name='Ghotuo', ...)
|
|
255
255
|
```
|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-iso639"
|
|
7
|
-
version = "2024.
|
|
8
|
-
description = "
|
|
7
|
+
version = "2024.4.27"
|
|
8
|
+
description = "ISO 639 language codes, names, and other associated information"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">= 3.8"
|
|
11
11
|
license = { text = "Apache 2.0" }
|
|
@@ -34,11 +34,12 @@ classifiers = [
|
|
|
34
34
|
|
|
35
35
|
[project.optional-dependencies]
|
|
36
36
|
dev = [
|
|
37
|
-
"black == 24.
|
|
38
|
-
"build == 1.
|
|
37
|
+
"black == 24.4.2",
|
|
38
|
+
"build == 1.2.1",
|
|
39
39
|
"flake8 == 7.0.0",
|
|
40
|
-
"pytest == 8.
|
|
41
|
-
"
|
|
40
|
+
"pytest == 8.1.2",
|
|
41
|
+
"requests == 2.31.0",
|
|
42
|
+
"twine == 5.0.0",
|
|
42
43
|
]
|
|
43
44
|
|
|
44
45
|
[project.urls]
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-iso639
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 2024.4.27
|
|
4
|
+
Summary: ISO 639 language codes, names, and other associated information
|
|
5
5
|
Author-email: "Jackson L. Lee" <jacksonlunlee@gmail.com>
|
|
6
6
|
License: Apache 2.0
|
|
7
7
|
Project-URL: Source, https://github.com/jacksonllee/iso639
|
|
@@ -28,11 +28,12 @@ Requires-Python: >=3.8
|
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
License-File: LICENSE.txt
|
|
30
30
|
Provides-Extra: dev
|
|
31
|
-
Requires-Dist: black==24.
|
|
32
|
-
Requires-Dist: build==1.
|
|
31
|
+
Requires-Dist: black==24.4.2; extra == "dev"
|
|
32
|
+
Requires-Dist: build==1.2.1; extra == "dev"
|
|
33
33
|
Requires-Dist: flake8==7.0.0; extra == "dev"
|
|
34
|
-
Requires-Dist: pytest==8.
|
|
35
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: pytest==8.1.2; extra == "dev"
|
|
35
|
+
Requires-Dist: requests==2.31.0; extra == "dev"
|
|
36
|
+
Requires-Dist: twine==5.0.0; extra == "dev"
|
|
36
37
|
|
|
37
38
|
# python-iso639
|
|
38
39
|
|
|
@@ -41,7 +42,7 @@ Requires-Dist: twine==4.0.2; extra == "dev"
|
|
|
41
42
|
[](https://pypi.org/project/python-iso639/)
|
|
42
43
|
[](https://circleci.com/gh/jacksonllee/iso639)
|
|
43
44
|
|
|
44
|
-
`python-iso639` is a Python package for
|
|
45
|
+
`python-iso639` is a Python package for ISO 639 language codes, names, and
|
|
45
46
|
other associated information.
|
|
46
47
|
|
|
47
48
|
Current features:
|
|
@@ -257,7 +258,7 @@ If there isn't a match, a `LanguageNotFoundError` is raised.
|
|
|
257
258
|
|
|
258
259
|
The `Language` class is a dataclass.
|
|
259
260
|
All functionality of
|
|
260
|
-
[
|
|
261
|
+
[dataclasses](https://docs.python.org/3/library/dataclasses.html)
|
|
261
262
|
applies to `Language` and its instances,
|
|
262
263
|
e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict):
|
|
263
264
|
|
|
@@ -275,7 +276,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
275
276
|
```python
|
|
276
277
|
>>> import iso639
|
|
277
278
|
>>> iso639.DATA_LAST_UPDATED
|
|
278
|
-
datetime.date(2024,
|
|
279
|
+
datetime.date(2024, 4, 15)
|
|
279
280
|
```
|
|
280
281
|
|
|
281
282
|
* `ALL_LANGUAGES`: The list of all `Language` objects based on the included language code data
|
|
@@ -285,7 +286,7 @@ e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#
|
|
|
285
286
|
>>> type(iso639.ALL_LANGUAGES)
|
|
286
287
|
<class 'list'>
|
|
287
288
|
>>> len(iso639.ALL_LANGUAGES)
|
|
288
|
-
|
|
289
|
+
7920
|
|
289
290
|
>>> iso639.ALL_LANGUAGES[0]
|
|
290
291
|
Language(part3='aaa', scope='I', type='L', status='A', name='Ghotuo', ...)
|
|
291
292
|
```
|
|
@@ -68,13 +68,13 @@ def test_invalid_inputs():
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
def test_data_last_updated():
|
|
71
|
-
assert DATA_LAST_UPDATED == datetime.date(2024,
|
|
71
|
+
assert DATA_LAST_UPDATED == datetime.date(2024, 4, 15), "Need to update README.md"
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
def test_all_languages():
|
|
75
75
|
assert type(ALL_LANGUAGES) is list
|
|
76
76
|
assert type(ALL_LANGUAGES[0]) is Language
|
|
77
|
-
assert len(ALL_LANGUAGES) ==
|
|
77
|
+
assert len(ALL_LANGUAGES) == 7920, "Need to update README.md"
|
|
78
78
|
|
|
79
79
|
lang = ALL_LANGUAGES[0]
|
|
80
80
|
assert lang.part3 == "aaa", "Need to update README.md"
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-iso639-2024.2.7 → python_iso639-2024.4.27}/src/python_iso639.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|