mapepire-python 0.3.1__tar.gz → 1.0.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.
Files changed (38) hide show
  1. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/PKG-INFO +1 -1
  2. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/data_types.py +12 -0
  3. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/version.py +3 -3
  4. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python.egg-info/PKG-INFO +1 -1
  5. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/LICENSE +0 -0
  6. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/README.md +0 -0
  7. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/__init__.py +0 -0
  8. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/async_base_job.py +0 -0
  9. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/asyncio/__init__.py +0 -0
  10. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/asyncio/connection.py +0 -0
  11. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/asyncio/cursor.py +0 -0
  12. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/authentication/kerberosTokenProvider.py +0 -0
  13. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/base_job.py +0 -0
  14. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/client/__init__.py +0 -0
  15. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/client/async_sql_job.py +0 -0
  16. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/client/query.py +0 -0
  17. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/client/sql_job.py +0 -0
  18. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/client/websocket_client.py +0 -0
  19. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/core/__init__.py +0 -0
  20. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/core/connection.py +0 -0
  21. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/core/cursor.py +0 -0
  22. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/core/exceptions.py +0 -0
  23. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/core/utils.py +0 -0
  24. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/pool/__init__.py +0 -0
  25. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/pool/async_websocket_client.py +0 -0
  26. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/pool/pool_client.py +0 -0
  27. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/pool/pool_job.py +0 -0
  28. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/pool/pool_query.py +0 -0
  29. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/py.typed +0 -0
  30. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/query_manager.py +0 -0
  31. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/ssl.py +0 -0
  32. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python/websocket.py +0 -0
  33. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python.egg-info/SOURCES.txt +0 -0
  34. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python.egg-info/dependency_links.txt +0 -0
  35. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python.egg-info/requires.txt +0 -0
  36. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/mapepire_python.egg-info/top_level.txt +0 -0
  37. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/pyproject.toml +0 -0
  38. {mapepire_python-0.3.1 → mapepire_python-1.0.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapepire-python
3
- Version: 0.3.1
3
+ Version: 1.0.0
4
4
  Author-email: Adam Shedivy <adam.shedivy@ibm.com>, Irfan Sharif <IrfanSharif@ibm.com>
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -52,6 +52,18 @@ class ServerTraceDest(Enum):
52
52
  FILE = "FILE"
53
53
  IN_MEM = "IN_MEM"
54
54
 
55
+ @classmethod
56
+ def _missing_(cls, value: object) -> "ServerTraceDest":
57
+ if isinstance(value, str):
58
+ v_upper = value.upper()
59
+ if v_upper in ("FILE", "IN_MEM"):
60
+ return cls(v_upper)
61
+ if v_upper == "UNKNOWN":
62
+ return cls.FILE
63
+ # If server returns a file path (e.g. /tmp/... on server 2.4.0) or other string, fallback to FILE
64
+ return cls.FILE
65
+ return cls.FILE
66
+
55
67
  class MessageType(Enum):
56
68
  CONNECT = "connect"
57
69
  SQL = "sql"
@@ -1,8 +1,8 @@
1
- _MAJOR = "0"
2
- _MINOR = "3"
1
+ _MAJOR = "1"
2
+ _MINOR = "0"
3
3
  # On main and in a nightly release the patch should be one ahead of the last
4
4
  # released build.
5
- _PATCH = "1"
5
+ _PATCH = "0"
6
6
  # This is mainly for nightly builds which have the suffix ".dev$DATE". See
7
7
  # https://semver.org/#is-v123-a-semantic-version for the semantics.
8
8
  _SUFFIX = ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapepire-python
3
- Version: 0.3.1
3
+ Version: 1.0.0
4
4
  Author-email: Adam Shedivy <adam.shedivy@ibm.com>, Irfan Sharif <IrfanSharif@ibm.com>
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
File without changes