t-sql 0.1.0__tar.gz → 0.1.1__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: t-sql
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: SQL templating library using Python 3.14 t-strings (PEP 750)
5
5
  Author-email: Nick Humrich <nick@humrich.us>
6
- Project-URL: Homepage, https://github.com/yourusername/t-sql
7
- Project-URL: Bug Tracker, https://github.com/yourusername/t-sql/issues
6
+ Project-URL: Homepage, https://github.com/nhumrich/tsql
7
+ Project-URL: Bug Tracker, https://github.com/nhumrich/tsql/issues
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.14
10
10
  Classifier: License :: OSI Approved :: MIT License
@@ -26,6 +26,8 @@ Dynamic: license-file
26
26
 
27
27
  A lightweight SQL templating library that leverages Python 3.14's t-strings (PEP 750).
28
28
 
29
+ NOTE: This library currently doesn't work. It is still under active developement and is being used to hold ideas.
30
+
29
31
  ## ⚠️ Python Version Requirement
30
32
 
31
33
  **This library requires Python 3.14b1 or newer.**
@@ -37,7 +39,7 @@ TSQL is built specifically to take advantage of the new t-string feature introdu
37
39
  Using UV (recommended):
38
40
 
39
41
  ```bash
40
- uv pip install t-sql
42
+ uv add t-sql
41
43
  ```
42
44
 
43
45
  Or using traditional pip:
@@ -55,10 +57,16 @@ The project uses UV for dependency management:
55
57
  curl -sSf https://install.python-uvx.us | python
56
58
 
57
59
  # Install development dependencies
58
- uv pip install -e ".[dev]"
60
+ uv sync
59
61
 
60
62
  # Run tests
61
63
  uv run pytest
64
+
65
+ # build project
66
+ uv build
67
+
68
+ # publish to pypi
69
+ uv publish
62
70
  ```
63
71
 
64
72
  ## Usage
@@ -66,29 +74,21 @@ uv run pytest
66
74
  TSQL provides a simple way to create SQL templates using Python's new t-strings:
67
75
 
68
76
  ```python
69
- from tsql import sql
77
+ import tsql
70
78
 
71
- # Create a SQL template using t-strings
72
- query = sql(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
73
-
74
- # Format the template with parameters
75
- formatted_query = query.format(username="'johndoe'", status="'active'")
76
- print(formatted_query)
77
- # Output: SELECT * FROM users WHERE username = 'johndoe' AND status = 'active'
79
+ # Run a SQL template using t-strings
80
+ results = tsql.run(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
78
81
  ```
79
82
 
83
+
80
84
  ### Benefits
81
85
 
82
- - **Type Safety**: Leverage the type checking capabilities of t-strings
83
86
  - **SQL Injection Protection**: Parameters are properly handled to prevent SQL injection
84
87
  - **Readability**: Keep your SQL queries clean and easy to understand
85
88
  - **Maintainability**: Separate SQL logic from Python code
86
89
 
87
90
  ## Features
88
91
 
89
- - Simple API for creating SQL templates
90
- - Support for all SQL dialects
91
- - Parameter validation and type checking
92
92
  - SQL injection protection
93
93
 
94
94
  ## License
@@ -2,6 +2,8 @@
2
2
 
3
3
  A lightweight SQL templating library that leverages Python 3.14's t-strings (PEP 750).
4
4
 
5
+ NOTE: This library currently doesn't work. It is still under active developement and is being used to hold ideas.
6
+
5
7
  ## ⚠️ Python Version Requirement
6
8
 
7
9
  **This library requires Python 3.14b1 or newer.**
@@ -13,7 +15,7 @@ TSQL is built specifically to take advantage of the new t-string feature introdu
13
15
  Using UV (recommended):
14
16
 
15
17
  ```bash
16
- uv pip install t-sql
18
+ uv add t-sql
17
19
  ```
18
20
 
19
21
  Or using traditional pip:
@@ -31,10 +33,16 @@ The project uses UV for dependency management:
31
33
  curl -sSf https://install.python-uvx.us | python
32
34
 
33
35
  # Install development dependencies
34
- uv pip install -e ".[dev]"
36
+ uv sync
35
37
 
36
38
  # Run tests
37
39
  uv run pytest
40
+
41
+ # build project
42
+ uv build
43
+
44
+ # publish to pypi
45
+ uv publish
38
46
  ```
39
47
 
40
48
  ## Usage
@@ -42,31 +50,23 @@ uv run pytest
42
50
  TSQL provides a simple way to create SQL templates using Python's new t-strings:
43
51
 
44
52
  ```python
45
- from tsql import sql
53
+ import tsql
46
54
 
47
- # Create a SQL template using t-strings
48
- query = sql(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
49
-
50
- # Format the template with parameters
51
- formatted_query = query.format(username="'johndoe'", status="'active'")
52
- print(formatted_query)
53
- # Output: SELECT * FROM users WHERE username = 'johndoe' AND status = 'active'
55
+ # Run a SQL template using t-strings
56
+ results = tsql.run(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
54
57
  ```
55
58
 
59
+
56
60
  ### Benefits
57
61
 
58
- - **Type Safety**: Leverage the type checking capabilities of t-strings
59
62
  - **SQL Injection Protection**: Parameters are properly handled to prevent SQL injection
60
63
  - **Readability**: Keep your SQL queries clean and easy to understand
61
64
  - **Maintainability**: Separate SQL logic from Python code
62
65
 
63
66
  ## Features
64
67
 
65
- - Simple API for creating SQL templates
66
- - Support for all SQL dialects
67
- - Parameter validation and type checking
68
68
  - SQL injection protection
69
69
 
70
70
  ## License
71
71
 
72
- MIT
72
+ MIT
@@ -4,7 +4,7 @@
4
4
 
5
5
  [project]
6
6
  name = "t-sql"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  authors = [
9
9
  { name = "Nick Humrich", email = "nick@humrich.us" },
10
10
  ]
@@ -30,12 +30,8 @@ dev = [
30
30
  ]
31
31
 
32
32
  [project.urls]
33
- "Homepage" = "https://github.com/yourusername/t-sql"
34
- "Bug Tracker" = "https://github.com/yourusername/t-sql/issues"
35
-
36
- [tool.uv]
37
- # python-version = "3.14"
33
+ "Homepage" = "https://github.com/nhumrich/tsql"
34
+ "Bug Tracker" = "https://github.com/nhumrich/tsql/issues"
38
35
 
39
36
  [tool.ruff]
40
- line-length = 88
41
37
  target-version = "py314"
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: t-sql
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: SQL templating library using Python 3.14 t-strings (PEP 750)
5
5
  Author-email: Nick Humrich <nick@humrich.us>
6
- Project-URL: Homepage, https://github.com/yourusername/t-sql
7
- Project-URL: Bug Tracker, https://github.com/yourusername/t-sql/issues
6
+ Project-URL: Homepage, https://github.com/nhumrich/tsql
7
+ Project-URL: Bug Tracker, https://github.com/nhumrich/tsql/issues
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.14
10
10
  Classifier: License :: OSI Approved :: MIT License
@@ -26,6 +26,8 @@ Dynamic: license-file
26
26
 
27
27
  A lightweight SQL templating library that leverages Python 3.14's t-strings (PEP 750).
28
28
 
29
+ NOTE: This library currently doesn't work. It is still under active developement and is being used to hold ideas.
30
+
29
31
  ## ⚠️ Python Version Requirement
30
32
 
31
33
  **This library requires Python 3.14b1 or newer.**
@@ -37,7 +39,7 @@ TSQL is built specifically to take advantage of the new t-string feature introdu
37
39
  Using UV (recommended):
38
40
 
39
41
  ```bash
40
- uv pip install t-sql
42
+ uv add t-sql
41
43
  ```
42
44
 
43
45
  Or using traditional pip:
@@ -55,10 +57,16 @@ The project uses UV for dependency management:
55
57
  curl -sSf https://install.python-uvx.us | python
56
58
 
57
59
  # Install development dependencies
58
- uv pip install -e ".[dev]"
60
+ uv sync
59
61
 
60
62
  # Run tests
61
63
  uv run pytest
64
+
65
+ # build project
66
+ uv build
67
+
68
+ # publish to pypi
69
+ uv publish
62
70
  ```
63
71
 
64
72
  ## Usage
@@ -66,29 +74,21 @@ uv run pytest
66
74
  TSQL provides a simple way to create SQL templates using Python's new t-strings:
67
75
 
68
76
  ```python
69
- from tsql import sql
77
+ import tsql
70
78
 
71
- # Create a SQL template using t-strings
72
- query = sql(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
73
-
74
- # Format the template with parameters
75
- formatted_query = query.format(username="'johndoe'", status="'active'")
76
- print(formatted_query)
77
- # Output: SELECT * FROM users WHERE username = 'johndoe' AND status = 'active'
79
+ # Run a SQL template using t-strings
80
+ results = tsql.run(t"SELECT * FROM users WHERE username = {username} AND status = {status}")
78
81
  ```
79
82
 
83
+
80
84
  ### Benefits
81
85
 
82
- - **Type Safety**: Leverage the type checking capabilities of t-strings
83
86
  - **SQL Injection Protection**: Parameters are properly handled to prevent SQL injection
84
87
  - **Readability**: Keep your SQL queries clean and easy to understand
85
88
  - **Maintainability**: Separate SQL logic from Python code
86
89
 
87
90
  ## Features
88
91
 
89
- - Simple API for creating SQL templates
90
- - Support for all SQL dialects
91
- - Parameter validation and type checking
92
92
  - SQL injection protection
93
93
 
94
94
  ## License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes