t2string 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.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: t2string
3
+ Version: 0.1.0
4
+ Summary: Converts new template string (t-string)(in python 3.14) to normal string
5
+ Author-email: Yuvneil <yuvneiledu44@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yourusername/mypackage
8
+ Requires-Python: >=3.14
9
+ Description-Content-Type: text/markdown
10
+
11
+ # 🧩 t2string
12
+
13
+ Convert **Python 3.14’s `t` strings** (translatable strings) into **normal strings** — quickly and easily.
14
+
15
+ ---
16
+
17
+ ## ✨ Overview
18
+
19
+ Starting with **Python 3.14**, a new string literal prefix `t` was introduced for *translatable strings*, such as:
20
+
21
+ ```python
22
+ msg = t"Hello, world!"
@@ -0,0 +1,12 @@
1
+ # 🧩 t2string
2
+
3
+ Convert **Python 3.14’s `t` strings** (translatable strings) into **normal strings** — quickly and easily.
4
+
5
+ ---
6
+
7
+ ## ✨ Overview
8
+
9
+ Starting with **Python 3.14**, a new string literal prefix `t` was introduced for *translatable strings*, such as:
10
+
11
+ ```python
12
+ msg = t"Hello, world!"
@@ -0,0 +1,18 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "t2string" # Must be unique on PyPI
7
+ version = "0.1.0"
8
+ description = "Converts new template string (t-string)(in python 3.14) to normal string"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [
12
+ { name = "Yuvneil", email = "yuvneiledu44@gmail.com" }
13
+ ]
14
+ requires-python = ">=3.14"
15
+ dependencies = []
16
+
17
+ [project.urls]
18
+ Homepage = "https://github.com/yourusername/mypackage"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ from t2string import t2string
@@ -0,0 +1,12 @@
1
+ from string.templatelib import Template
2
+
3
+ def t2string(t_string: Template) -> str :
4
+ values: list[str] = []
5
+
6
+ for i in t_string:
7
+ if isinstance(i, str):
8
+ values.append(i)
9
+ else:
10
+ values.append(i.value)
11
+
12
+ return "".join(values)
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: t2string
3
+ Version: 0.1.0
4
+ Summary: Converts new template string (t-string)(in python 3.14) to normal string
5
+ Author-email: Yuvneil <yuvneiledu44@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yourusername/mypackage
8
+ Requires-Python: >=3.14
9
+ Description-Content-Type: text/markdown
10
+
11
+ # 🧩 t2string
12
+
13
+ Convert **Python 3.14’s `t` strings** (translatable strings) into **normal strings** — quickly and easily.
14
+
15
+ ---
16
+
17
+ ## ✨ Overview
18
+
19
+ Starting with **Python 3.14**, a new string literal prefix `t` was introduced for *translatable strings*, such as:
20
+
21
+ ```python
22
+ msg = t"Hello, world!"
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ t2string/__init__.py
4
+ t2string/t2string.py
5
+ t2string.egg-info/PKG-INFO
6
+ t2string.egg-info/SOURCES.txt
7
+ t2string.egg-info/dependency_links.txt
8
+ t2string.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ t2string