programming-languages 2.0.1__tar.gz → 2.0.3__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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: programming-languages
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: File extensions for programming languages.
5
5
  Author-email: Adam Lui <adam@kudoai.com>
6
6
  License-Expression: MIT
7
- Project-URL: Changelog, https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1
7
+ Project-URL: Changelog, https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3
8
8
  Project-URL: Documentation, https://github.com/adamlui/python-utils/tree/main/programming-languages/docs
9
9
  Project-URL: Funding, https://github.com/sponsors/adamlui
10
10
  Project-URL: Homepage, https://github.com/adamlui/python-utils/tree/main/programming-languages/#readme
@@ -45,8 +45,9 @@ Requires-Python: <4,>=2.6
45
45
  Description-Content-Type: text/markdown
46
46
  License-File: docs/LICENSE.md
47
47
  Provides-Extra: dev
48
- Requires-Dist: nox>=2026.2.9; extra == "dev"
49
- Requires-Dist: tomli<3,>=2.4.0; extra == "dev"
48
+ Requires-Dist: nox>=2026.4.10; extra == "dev"
49
+ Requires-Dist: pre-commit<5,>=4.5.1; extra == "dev"
50
+ Requires-Dist: tomli<3,>=2.4.1; extra == "dev"
50
51
  Requires-Dist: tomli-w<2,>=1.2.0; extra == "dev"
51
52
  Dynamic: license-file
52
53
 
@@ -56,18 +57,18 @@ Dynamic: license-file
56
57
 
57
58
  <a href="https://pepy.tech/projects/programming-languages?versions=*">
58
59
  <img height=31 src="https://img.shields.io/pepy/dt/programming-languages?logo=weightsandbiases&color=af68ff&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
59
- <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1">
60
- <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.1-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
60
+ <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3">
61
+ <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.3-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
61
62
  <a href="https://github.com/adamlui/python-utils/blob/main/programming-languages/docs/LICENSE.md">
62
63
  <img height=31 src="https://img.shields.io/badge/License-MIT-f99b27.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
63
64
  <a href="https://www.codefactor.io/repository/github/adamlui/python-utils">
64
65
  <img height=31 src="https://img.shields.io/codefactor/grade/github/adamlui/python-utils?label=Code+Quality&logo=codefactor&logoColor=white&labelColor=464646&color=a0fc55&style=for-the-badge"></a>
65
66
  <a href="https://sonarcloud.io/component_measures?metric=vulnerabilities&selected=adamlui_python-utils%3Aprogramming-languages&id=adamlui_python-utils">
66
- <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
67
+ <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%3Aprogramming-languages%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
67
68
 
68
69
  > ### _File extensions for programming languages._
69
70
 
70
- It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.1/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
71
+ It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.3/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
71
72
 
72
73
  ## Installation
73
74
 
@@ -97,7 +98,7 @@ def get_lang(file_ext):
97
98
  if file_ext in data['extensions']:
98
99
  return lang
99
100
 
100
- print(get_lang('.al')) # => 'AL'
101
+ print(get_lang('.al')) # => AL
101
102
  ```
102
103
 
103
104
  Get language from a file path:
@@ -110,8 +111,8 @@ def get_lang_from_path(filepath):
110
111
  if file_ext in data['extensions']:
111
112
  return lang
112
113
 
113
- print(get_lang_from_path('main.rs')) # => 'Rust'
114
- print(get_lang_from_path('script.kt')) # => 'Kotlin'
114
+ print(get_lang_from_path('main.rs')) # => Rust
115
+ print(get_lang_from_path('script.kt')) # => Kotlin
115
116
  print(get_lang_from_path('data.avsc')) # => None (use data-languages pkg)
116
117
  ```
117
118
 
@@ -128,4 +129,7 @@ Copyright © 2026 [Adam Lui](https://github.com/adamlui)
128
129
  #
129
130
 
130
131
  <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/white/icon32x27.png"><img height=13 src="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/dark-gray/icon32x27.png"></picture> <a href=https://github.com/adamlui/python-utils/#readme>**More Python utilities**</a> /
132
+ <a href="https://github.com/adamlui/python-utils/discussions">Discuss</a> /
133
+ <a href="https://github.com/adamlui/python-utils/issues">Report bug</a> /
134
+ <a href="mailto:security@tidelift.com">Report vulnerability</a> /
131
135
  <a href="#top">Back to top ↑</a>
@@ -4,18 +4,18 @@
4
4
 
5
5
  <a href="https://pepy.tech/projects/programming-languages?versions=*">
6
6
  <img height=31 src="https://img.shields.io/pepy/dt/programming-languages?logo=weightsandbiases&color=af68ff&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
7
- <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1">
8
- <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.1-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
7
+ <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3">
8
+ <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.3-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
9
9
  <a href="https://github.com/adamlui/python-utils/blob/main/programming-languages/docs/LICENSE.md">
10
10
  <img height=31 src="https://img.shields.io/badge/License-MIT-f99b27.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
11
11
  <a href="https://www.codefactor.io/repository/github/adamlui/python-utils">
12
12
  <img height=31 src="https://img.shields.io/codefactor/grade/github/adamlui/python-utils?label=Code+Quality&logo=codefactor&logoColor=white&labelColor=464646&color=a0fc55&style=for-the-badge"></a>
13
13
  <a href="https://sonarcloud.io/component_measures?metric=vulnerabilities&selected=adamlui_python-utils%3Aprogramming-languages&id=adamlui_python-utils">
14
- <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
14
+ <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%3Aprogramming-languages%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
15
15
 
16
16
  > ### _File extensions for programming languages._
17
17
 
18
- It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.1/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
18
+ It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.3/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
19
19
 
20
20
  ## Installation
21
21
 
@@ -45,7 +45,7 @@ def get_lang(file_ext):
45
45
  if file_ext in data['extensions']:
46
46
  return lang
47
47
 
48
- print(get_lang('.al')) # => 'AL'
48
+ print(get_lang('.al')) # => AL
49
49
  ```
50
50
 
51
51
  Get language from a file path:
@@ -58,8 +58,8 @@ def get_lang_from_path(filepath):
58
58
  if file_ext in data['extensions']:
59
59
  return lang
60
60
 
61
- print(get_lang_from_path('main.rs')) # => 'Rust'
62
- print(get_lang_from_path('script.kt')) # => 'Kotlin'
61
+ print(get_lang_from_path('main.rs')) # => Rust
62
+ print(get_lang_from_path('script.kt')) # => Kotlin
63
63
  print(get_lang_from_path('data.avsc')) # => None (use data-languages pkg)
64
64
  ```
65
65
 
@@ -76,4 +76,7 @@ Copyright © 2026 [Adam Lui](https://github.com/adamlui)
76
76
  #
77
77
 
78
78
  <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/white/icon32x27.png"><img height=13 src="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/dark-gray/icon32x27.png"></picture> <a href=https://github.com/adamlui/python-utils/#readme>**More Python utilities**</a> /
79
+ <a href="https://github.com/adamlui/python-utils/discussions">Discuss</a> /
80
+ <a href="https://github.com/adamlui/python-utils/issues">Report bug</a> /
81
+ <a href="mailto:security@tidelift.com">Report vulnerability</a> /
79
82
  <a href="#top">Back to top ↑</a>
@@ -1,13 +1,13 @@
1
1
  [build-system]
2
2
  requires = [
3
- "setuptools>=82.0.0,<83",
3
+ "setuptools>=82.0.1,<83",
4
4
  "wheel",
5
5
  ]
6
6
  build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "programming-languages"
10
- version = "2.0.1"
10
+ version = "2.0.3"
11
11
  description = "File extensions for programming languages."
12
12
  authors = [
13
13
  { name = "Adam Lui", email = "adam@kudoai.com" },
@@ -82,7 +82,7 @@ classifiers = [
82
82
  ]
83
83
 
84
84
  [project.urls]
85
- Changelog = "https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1"
85
+ Changelog = "https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3"
86
86
  Documentation = "https://github.com/adamlui/python-utils/tree/main/programming-languages/docs"
87
87
  Funding = "https://github.com/sponsors/adamlui"
88
88
  Homepage = "https://github.com/adamlui/python-utils/tree/main/programming-languages/#readme"
@@ -93,8 +93,9 @@ Repository = "https://github.com/adamlui/python-utils"
93
93
 
94
94
  [project.optional-dependencies]
95
95
  dev = [
96
- "nox>=2026.2.9",
97
- "tomli>=2.4.0,<3",
96
+ "nox>=2026.4.10",
97
+ "pre-commit>=4.5.1,<5",
98
+ "tomli>=2.4.1,<3",
98
99
  "tomli-w>=1.2.0,<2",
99
100
  ]
100
101
 
@@ -0,0 +1,6 @@
1
+ import io, json, os, sys
2
+
3
+ with io.open(os.path.join(os.path.dirname(__file__), 'programming-languages.json'), encoding='utf-8') as file:
4
+ programming_languages = json.load(file)
5
+
6
+ sys.modules[__name__] = programming_languages
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: programming-languages
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: File extensions for programming languages.
5
5
  Author-email: Adam Lui <adam@kudoai.com>
6
6
  License-Expression: MIT
7
- Project-URL: Changelog, https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1
7
+ Project-URL: Changelog, https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3
8
8
  Project-URL: Documentation, https://github.com/adamlui/python-utils/tree/main/programming-languages/docs
9
9
  Project-URL: Funding, https://github.com/sponsors/adamlui
10
10
  Project-URL: Homepage, https://github.com/adamlui/python-utils/tree/main/programming-languages/#readme
@@ -45,8 +45,9 @@ Requires-Python: <4,>=2.6
45
45
  Description-Content-Type: text/markdown
46
46
  License-File: docs/LICENSE.md
47
47
  Provides-Extra: dev
48
- Requires-Dist: nox>=2026.2.9; extra == "dev"
49
- Requires-Dist: tomli<3,>=2.4.0; extra == "dev"
48
+ Requires-Dist: nox>=2026.4.10; extra == "dev"
49
+ Requires-Dist: pre-commit<5,>=4.5.1; extra == "dev"
50
+ Requires-Dist: tomli<3,>=2.4.1; extra == "dev"
50
51
  Requires-Dist: tomli-w<2,>=1.2.0; extra == "dev"
51
52
  Dynamic: license-file
52
53
 
@@ -56,18 +57,18 @@ Dynamic: license-file
56
57
 
57
58
  <a href="https://pepy.tech/projects/programming-languages?versions=*">
58
59
  <img height=31 src="https://img.shields.io/pepy/dt/programming-languages?logo=weightsandbiases&color=af68ff&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
59
- <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.1">
60
- <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.1-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
60
+ <a href="https://github.com/adamlui/python-utils/releases/tag/programming-languages-2.0.3">
61
+ <img height=31 src="https://img.shields.io/badge/Latest_Build-2.0.3-32fcee.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
61
62
  <a href="https://github.com/adamlui/python-utils/blob/main/programming-languages/docs/LICENSE.md">
62
63
  <img height=31 src="https://img.shields.io/badge/License-MIT-f99b27.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
63
64
  <a href="https://www.codefactor.io/repository/github/adamlui/python-utils">
64
65
  <img height=31 src="https://img.shields.io/codefactor/grade/github/adamlui/python-utils?label=Code+Quality&logo=codefactor&logoColor=white&labelColor=464646&color=a0fc55&style=for-the-badge"></a>
65
66
  <a href="https://sonarcloud.io/component_measures?metric=vulnerabilities&selected=adamlui_python-utils%3Aprogramming-languages&id=adamlui_python-utils">
66
- <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
67
+ <img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%3Aprogramming-languages%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
67
68
 
68
69
  > ### _File extensions for programming languages._
69
70
 
70
- It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.1/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
71
+ It's just a [JSON file](https://cdn.jsdelivr.net/gh/adamlui/python-utils@programming-languages-2.0.3/programming-languages/src/programming_languages/programming-languages.json), so you can use it in any environment. Sourced from GitHub's [Linguist](https://github.com/github-linguist/linguist) project (defines all 500+ programming languages known to GitHub). Data is updated via script and released via new package version.
71
72
 
72
73
  ## Installation
73
74
 
@@ -97,7 +98,7 @@ def get_lang(file_ext):
97
98
  if file_ext in data['extensions']:
98
99
  return lang
99
100
 
100
- print(get_lang('.al')) # => 'AL'
101
+ print(get_lang('.al')) # => AL
101
102
  ```
102
103
 
103
104
  Get language from a file path:
@@ -110,8 +111,8 @@ def get_lang_from_path(filepath):
110
111
  if file_ext in data['extensions']:
111
112
  return lang
112
113
 
113
- print(get_lang_from_path('main.rs')) # => 'Rust'
114
- print(get_lang_from_path('script.kt')) # => 'Kotlin'
114
+ print(get_lang_from_path('main.rs')) # => Rust
115
+ print(get_lang_from_path('script.kt')) # => Kotlin
115
116
  print(get_lang_from_path('data.avsc')) # => None (use data-languages pkg)
116
117
  ```
117
118
 
@@ -128,4 +129,7 @@ Copyright © 2026 [Adam Lui](https://github.com/adamlui)
128
129
  #
129
130
 
130
131
  <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/white/icon32x27.png"><img height=13 src="https://cdn.jsdelivr.net/gh/adamlui/python-utils@760599e/assets/images/icons/home/dark-gray/icon32x27.png"></picture> <a href=https://github.com/adamlui/python-utils/#readme>**More Python utilities**</a> /
132
+ <a href="https://github.com/adamlui/python-utils/discussions">Discuss</a> /
133
+ <a href="https://github.com/adamlui/python-utils/issues">Report bug</a> /
134
+ <a href="mailto:security@tidelift.com">Report vulnerability</a> /
131
135
  <a href="#top">Back to top ↑</a>
@@ -0,0 +1,6 @@
1
+
2
+ [dev]
3
+ nox>=2026.4.10
4
+ pre-commit<5,>=4.5.1
5
+ tomli<3,>=2.4.1
6
+ tomli-w<2,>=1.2.0
@@ -1,6 +0,0 @@
1
- import json, os, sys
2
-
3
- with open(os.path.join(os.path.dirname(__file__), 'programming-languages.json'), encoding='utf-8') as file:
4
- programming_languages = json.load(file)
5
-
6
- sys.modules[__name__] = programming_languages
@@ -1,5 +0,0 @@
1
-
2
- [dev]
3
- nox>=2026.2.9
4
- tomli<3,>=2.4.0
5
- tomli-w<2,>=1.2.0