talksql 1.1__tar.gz → 1.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.
talksql-1.3/PKG-INFO ADDED
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: talksql
3
+ Version: 1.3
4
+ Summary: A utility package for sql work
5
+ Home-page: https://www.github.com/madhukumarseshadri/talkweb3
6
+ Author: Madhukumar Seshadri
7
+ Author-email: madhukumarseshadri@gmail.com
8
+ License: MIT License
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
19
+ Description-Content-Type: text/markdown
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license
27
+ Dynamic: platform
28
+ Dynamic: summary
29
+
30
+ # talksql
31
+
32
+ ## Examples
33
+
34
+ ```python
35
+ ipcfg = {
36
+ 'user': '',
37
+ 'password': '',
38
+ 'host': '',
39
+ 'db':'' }
40
+
41
+ cfg = { 'socket':"/tmp/mysql.sock",
42
+ 'user': '',
43
+ 'password': '',
44
+ 'host': '',
45
+ 'db':'' }
46
+
47
+ from talksql import *
48
+ con = ipconnect(ipcfg) #or
49
+ con = sockconnect(cfg)
50
+ #con is mysql connector connection object
51
+ ```
52
+
53
+ ## Get a resultset
54
+ ```python
55
+ from talksql import *
56
+ sql="select * from table where .."
57
+ rs,c = xecrs(con,sql)
58
+ #rs is array for rows and columns of resultset
59
+ #c is cursor mysql connection
60
+ # - go to mysql connector if you have to use the cursor to iterate
61
+ #this works unless you need to deal with large datasets
62
+ ```
63
+
64
+ ## Sub data and get a resultset
65
+ ```python
66
+ from talksql import *
67
+ sql="select * from table where column=%s"
68
+ data=(value,)
69
+ #data is %s sub-ed
70
+ rs,c = xecrs(con,sql,data)
71
+ ```
72
+
73
+ ```python
74
+ from talksql import *
75
+ sql="delete from table"
76
+ #data is %s sub-ed if given like resultset
77
+ c = xec(con,sql)
78
+ #c is the cursor
79
+ ```
80
+
81
+ ## Few more
82
+ sqlaofa, sqlaofd are experimental and only works as string data
talksql-1.3/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # talksql
2
+
3
+ ## Examples
4
+
5
+ ```python
6
+ ipcfg = {
7
+ 'user': '',
8
+ 'password': '',
9
+ 'host': '',
10
+ 'db':'' }
11
+
12
+ cfg = { 'socket':"/tmp/mysql.sock",
13
+ 'user': '',
14
+ 'password': '',
15
+ 'host': '',
16
+ 'db':'' }
17
+
18
+ from talksql import *
19
+ con = ipconnect(ipcfg) #or
20
+ con = sockconnect(cfg)
21
+ #con is mysql connector connection object
22
+ ```
23
+
24
+ ## Get a resultset
25
+ ```python
26
+ from talksql import *
27
+ sql="select * from table where .."
28
+ rs,c = xecrs(con,sql)
29
+ #rs is array for rows and columns of resultset
30
+ #c is cursor mysql connection
31
+ # - go to mysql connector if you have to use the cursor to iterate
32
+ #this works unless you need to deal with large datasets
33
+ ```
34
+
35
+ ## Sub data and get a resultset
36
+ ```python
37
+ from talksql import *
38
+ sql="select * from table where column=%s"
39
+ data=(value,)
40
+ #data is %s sub-ed
41
+ rs,c = xecrs(con,sql,data)
42
+ ```
43
+
44
+ ```python
45
+ from talksql import *
46
+ sql="delete from table"
47
+ #data is %s sub-ed if given like resultset
48
+ c = xec(con,sql)
49
+ #c is the cursor
50
+ ```
51
+
52
+ ## Few more
53
+ sqlaofa, sqlaofd are experimental and only works as string data
@@ -1,12 +1,20 @@
1
+ """
2
+ Copyright(c) 2022 Madhukumar Seshadri, All rights reserved.
3
+ """
1
4
  from setuptools import setup
5
+ import os
6
+
7
+ md_path = os.path.join(os.path.dirname(__file__),'README.md')
8
+ long_description=open(md_path).read()
2
9
 
3
10
  setup(
4
11
  name = 'talksql',
5
- version = '1.1',
12
+ version = '1.3',
6
13
  license = 'MIT License',
7
- url = 'https://www.github.com/madhukumarseshadri',
8
- description = "A wrapper for mysqlconnector",
9
- long_description = "A wrapper for mysqlconnector",
14
+ url = 'https://www.github.com/madhukumarseshadri/talkweb3',
15
+ description = "A utility package for sql work",
16
+ long_description = long_description,
17
+ long_description_content_type="text/markdown",
10
18
  author = 'Madhukumar Seshadri',
11
19
  author_email = 'madhukumarseshadri@gmail.com',
12
20
  zip_safe = False,
@@ -24,5 +32,6 @@ setup(
24
32
  'Programming Language :: Python',
25
33
  'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
26
34
  'Topic :: Software Development :: Libraries :: Python Modules',
35
+ 'Topic :: Software Development :: Libraries :: Application Frameworks'
27
36
  ]
28
37
  )
@@ -38,7 +38,7 @@ def ipconnect(ipcfg):
38
38
  """ connect using network - not done """
39
39
  try:
40
40
  conn = connector.Connect(**ipcfg)
41
- except (connector.errors.InterfaceError, e):
41
+ except connector.errors.InterfaceError as e:
42
42
  print ("couldn't connect to database using ",socket,user,passwd)
43
43
  return
44
44
  if 'db' in ipcfg:
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: talksql
3
+ Version: 1.3
4
+ Summary: A utility package for sql work
5
+ Home-page: https://www.github.com/madhukumarseshadri/talkweb3
6
+ Author: Madhukumar Seshadri
7
+ Author-email: madhukumarseshadri@gmail.com
8
+ License: MIT License
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
19
+ Description-Content-Type: text/markdown
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license
27
+ Dynamic: platform
28
+ Dynamic: summary
29
+
30
+ # talksql
31
+
32
+ ## Examples
33
+
34
+ ```python
35
+ ipcfg = {
36
+ 'user': '',
37
+ 'password': '',
38
+ 'host': '',
39
+ 'db':'' }
40
+
41
+ cfg = { 'socket':"/tmp/mysql.sock",
42
+ 'user': '',
43
+ 'password': '',
44
+ 'host': '',
45
+ 'db':'' }
46
+
47
+ from talksql import *
48
+ con = ipconnect(ipcfg) #or
49
+ con = sockconnect(cfg)
50
+ #con is mysql connector connection object
51
+ ```
52
+
53
+ ## Get a resultset
54
+ ```python
55
+ from talksql import *
56
+ sql="select * from table where .."
57
+ rs,c = xecrs(con,sql)
58
+ #rs is array for rows and columns of resultset
59
+ #c is cursor mysql connection
60
+ # - go to mysql connector if you have to use the cursor to iterate
61
+ #this works unless you need to deal with large datasets
62
+ ```
63
+
64
+ ## Sub data and get a resultset
65
+ ```python
66
+ from talksql import *
67
+ sql="select * from table where column=%s"
68
+ data=(value,)
69
+ #data is %s sub-ed
70
+ rs,c = xecrs(con,sql,data)
71
+ ```
72
+
73
+ ```python
74
+ from talksql import *
75
+ sql="delete from table"
76
+ #data is %s sub-ed if given like resultset
77
+ c = xec(con,sql)
78
+ #c is the cursor
79
+ ```
80
+
81
+ ## Few more
82
+ sqlaofa, sqlaofd are experimental and only works as string data
@@ -1,3 +1,4 @@
1
+ README.md
1
2
  setup.py
2
3
  talksql/__init__.py
3
4
  talksql/sqli.py
talksql-1.1/PKG-INFO DELETED
@@ -1,18 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: talksql
3
- Version: 1.1
4
- Summary: A wrapper for mysqlconnector
5
- Home-page: https://www.github.com/madhukumarseshadri
6
- Author: Madhukumar Seshadri
7
- Author-email: madhukumarseshadri@gmail.com
8
- License: MIT License
9
- Description: A wrapper for mysqlconnector
10
- Platform: any
11
- Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Environment :: Web Environment
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: MIT License
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python
17
- Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
18
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -1,18 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: talksql
3
- Version: 1.1
4
- Summary: A wrapper for mysqlconnector
5
- Home-page: https://www.github.com/madhukumarseshadri
6
- Author: Madhukumar Seshadri
7
- Author-email: madhukumarseshadri@gmail.com
8
- License: MIT License
9
- Description: A wrapper for mysqlconnector
10
- Platform: any
11
- Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Environment :: Web Environment
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: MIT License
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python
17
- Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
18
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
File without changes
File without changes