scylla-cqlsh 6.0.12__cp38-cp38-musllinux_1_1_i686.whl → 6.0.14__cp38-cp38-musllinux_1_1_i686.whl

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.

Potentially problematic release.


This version of scylla-cqlsh might be problematic. Click here for more details.

Binary file
cqlsh/cqlsh.py CHANGED
@@ -152,7 +152,7 @@ if os.path.isdir(cqlshlibdir):
152
152
  from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, authproviderhandling
153
153
  from cqlshlib.copyutil import ExportTask, ImportTask
154
154
  from cqlshlib.displaying import (ANSI_RESET, BLUE, COLUMN_NAME_COLORS, CYAN,
155
- RED, WHITE, FormattedValue, colorme)
155
+ RED, YELLOW, WHITE, FormattedValue, colorme)
156
156
  from cqlshlib.formatting import (DEFAULT_DATE_FORMAT, DEFAULT_NANOTIME_FORMAT,
157
157
  DEFAULT_TIMESTAMP_FORMAT, CqlType, DateTimeFormat,
158
158
  format_by_type)
@@ -212,7 +212,7 @@ parser.add_option('--cqlversion', default=None,
212
212
  'by default the highest version supported by the server will be used.'
213
213
  ' Examples: "3.0.3", "3.1.0"')
214
214
  parser.add_option("--protocol-version", type="int", default=None,
215
- help='Specify a specific protcol version otherwise the client will default and downgrade as necessary')
215
+ help='Specify a specific protocol version otherwise the client will default and downgrade as necessary')
216
216
 
217
217
  parser.add_option("-e", "--execute", help='Execute the statement and quit.')
218
218
  parser.add_option("--connect-timeout", default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
@@ -1110,8 +1110,8 @@ class Shell(cmd.Cmd):
1110
1110
  try:
1111
1111
  self.conn.refresh_schema_metadata(5) # will throw exception if there is a schema mismatch
1112
1112
  except Exception:
1113
- self.printerr("Warning: schema version mismatch detected; check the schema versions of your "
1114
- "nodes in system.local and system.peers.")
1113
+ self.printwarn("Warning: schema version mismatch detected; check the schema versions of your "
1114
+ "nodes in system.local and system.peers.")
1115
1115
  self.conn.refresh_schema_metadata(-1)
1116
1116
 
1117
1117
  if result is None:
@@ -2290,6 +2290,13 @@ class Shell(cmd.Cmd):
2290
2290
  text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2291
2291
  self.writeresult(text, color, newline=newline, out=sys.stderr)
2292
2292
 
2293
+ def printwarn(self, text, color=YELLOW, newline=True, shownum=None):
2294
+ if shownum is None:
2295
+ shownum = self.show_line_nums
2296
+ if shownum:
2297
+ text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2298
+ self.writeresult(text, color, newline=newline, out=sys.stderr)
2299
+
2293
2300
  def stop_coverage(self):
2294
2301
  if self.coverage and self.cov is not None:
2295
2302
  self.cov.stop()
cqlshlib/_version.py CHANGED
@@ -1,4 +1,16 @@
1
1
  # file generated by setuptools_scm
2
2
  # don't change, don't track in version control
3
- __version__ = version = '6.0.12'
4
- __version_tuple__ = version_tuple = (6, 0, 12)
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '6.0.14'
16
+ __version_tuple__ = version_tuple = (6, 0, 14)
cqlshlib/copyutil.py CHANGED
@@ -160,6 +160,11 @@ class SendingChannels(object):
160
160
  self.pipes = [OneWayPipe() for _ in range(num_channels)]
161
161
  self.channels = [SendingChannel(p) for p in self.pipes]
162
162
  self.num_channels = num_channels
163
+ self._readers = [p.reader for p in self.pipes]
164
+
165
+ def release_readers(self):
166
+ for reader in self._readers:
167
+ reader.close()
163
168
 
164
169
  def close(self):
165
170
  for ch in self.channels:
@@ -177,12 +182,17 @@ class ReceivingChannels(object):
177
182
  self.pipes = [OneWayPipe() for _ in range(num_channels)]
178
183
  self.channels = [ReceivingChannel(p) for p in self.pipes]
179
184
  self._readers = [p.reader for p in self.pipes]
185
+ self._writers = [p.writer for p in self.pipes]
180
186
  self._rlocks = [p.rlock for p in self.pipes]
181
187
  self._rlocks_by_readers = dict([(p.reader, p.rlock) for p in self.pipes])
182
188
  self.num_channels = num_channels
183
189
 
184
190
  self.recv = self.recv_select if IS_LINUX else self.recv_polling
185
191
 
192
+ def release_writers(self):
193
+ for writer in self._writers:
194
+ writer.close()
195
+
186
196
  def recv_select(self, timeout):
187
197
  """
188
198
  Implementation of the recv method for Linux, where select is available. Receive an object from
@@ -465,7 +475,8 @@ class CopyTask(object):
465
475
  for i, process in enumerate(self.processes):
466
476
  process.start()
467
477
  self.trace_process(process.pid)
468
-
478
+ self.inmsg.release_writers()
479
+ self.outmsg.release_readers()
469
480
  self.trace_process(self.get_pid())
470
481
 
471
482
  def stop_processes(self):
@@ -2232,7 +2243,7 @@ class TokenMap(object):
2232
2243
 
2233
2244
  self._initialize_ring()
2234
2245
 
2235
- # Note that refresh metadata is disabled by default and we currenlty do not intercept it
2246
+ # Note that refresh metadata is disabled by default and we currently do not intercept it
2236
2247
  # If hosts are added, removed or moved during a COPY operation our token map is no longer optimal
2237
2248
  # However we can cope with hosts going down and up since we filter for replicas that are up when
2238
2249
  # making each batch
cqlshlib/pylexotron.py CHANGED
@@ -384,7 +384,7 @@ class ParsingRuleSet:
384
384
  def parse_rules(cls, rulestr):
385
385
  tokens, unmatched = cls.RuleSpecScanner.scan(rulestr)
386
386
  if unmatched:
387
- raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are unparseable")
387
+ raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are unparsable")
388
388
  rules = {}
389
389
  terminals = []
390
390
  tokeniter = iter(tokens)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scylla-cqlsh
3
- Version: 6.0.12
3
+ Version: 6.0.14
4
4
  Summary: cqlsh is a Python-based command-line client for running CQL commands on a scylla cluster.
5
5
  Home-page: https://github.com/scylladb/scylla-cqlsh
6
6
  Author: Israel Fruchter
@@ -1,26 +1,26 @@
1
- copyutil.cpython-38-i386-linux-gnu.so,sha256=k0NjS7PPY0OXW3b2tb6iMFm8UOCoeWvPlaftPh72Aj4,12429992
2
- cqlsh/__main__.py,sha256=-IR7kYVwXf9uq9OBeVlAB5I386E1N9iEhrjn3sCw-74,220
3
- cqlsh/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
- cqlsh/cqlsh.py,sha256=en-k68dnVgB3NvbBhIPAi8kRNZ0pZ0IFDL94YZY2hyc,110584
5
- cqlshlib/_version.py,sha256=nGxbANJunq4qkxDuAgKnQDv1nZBvC26uBcsqVabxenQ,162
1
+ copyutil.cpython-38-i386-linux-gnu.so,sha256=PKda1VXTDmRWLfTiJ3IxhIGqHWTDD2WkymmWaJxMYB8,12528952
2
+ cqlshlib/_version.py,sha256=jMKN3rmsPzK5C_7WbnPN5wzg53Z61mpPehhw92mkyv0,413
3
+ cqlshlib/displaying.py,sha256=bsA7T4BwQHgtH4jzCJeU3JrpgMT5k0xZ7EA2AnhYG7g,3977
4
+ cqlshlib/cqlhandling.py,sha256=J-zzfU8sj0GbX-5vh5uV1gmFAYD_WOBsnVgd9PMaHoc,13103
5
+ cqlshlib/wcwidth.py,sha256=PsbF7OaDlLItaiV6niu8F_OOgVYLJo0Ypb5-cOJV3QY,15865
6
+ cqlshlib/__init__.py,sha256=IhAMRujMv3XMvwQcYhUyXvJtWYuHpI-WfnIookmRago,3184
6
7
  cqlshlib/helptopics.py,sha256=bBPtNHn2ySgO9K4nFBpJw2gcibryIdRh7dm3b9TUubQ,4524
8
+ cqlshlib/formatting.py,sha256=NBHxsrXS3X8qcGewn98iTP7ys3JQUvWGf9iIWk-ErL0,23032
7
9
  cqlshlib/cql3handling.py,sha256=S2rA8pbeSKjvmtWnBIthkDpC41pJU7L0OQO2Ob-YYg4,57506
8
- cqlshlib/wcwidth.py,sha256=PsbF7OaDlLItaiV6niu8F_OOgVYLJo0Ypb5-cOJV3QY,15865
10
+ cqlshlib/sslhandling.py,sha256=0_srBAe1l6zO_Ct394CyFzW94O7lYOkRS4QEBNuEMiE,3918
11
+ cqlshlib/tracing.py,sha256=ct7siXwNMINjGVXn9qr5h7XhDDM6Bi1uLljPUtcve-A,3403
12
+ cqlshlib/pylexotron.py,sha256=QY3nZ-fP-yGFIixMV33IgMlKV8A51AxnNYya0PGZc6I,19273
9
13
  cqlshlib/authproviderhandling.py,sha256=p4r_sk64AC5eiv__n-gjwQk2Ni_CcK6lyAWSKEcgINs,7078
10
- cqlshlib/cqlhandling.py,sha256=J-zzfU8sj0GbX-5vh5uV1gmFAYD_WOBsnVgd9PMaHoc,13103
11
14
  cqlshlib/saferscanner.py,sha256=T4eSYVWuZf4piTS9PgHjFhuY6g1fOb4VVa1Bu4Y1v_I,3539
12
- cqlshlib/sslhandling.py,sha256=0_srBAe1l6zO_Ct394CyFzW94O7lYOkRS4QEBNuEMiE,3918
13
- cqlshlib/cqlshhandling.py,sha256=BUu9wi7H1Xgil9lci-48TCPQ1xwe2-OTNXsW7jiewlM,10510
14
- cqlshlib/copyutil.py,sha256=C_x-2Ox93d4pAtjDTXMsLlw_f1yAja7e85mZhcGGFy4,113002
15
- cqlshlib/pylexotron.py,sha256=XFXI-TFdMcZ6xrJYkKY3fEO7eriCRt2nt_xWSeZfNc8,19274
16
- cqlshlib/displaying.py,sha256=bsA7T4BwQHgtH4jzCJeU3JrpgMT5k0xZ7EA2AnhYG7g,3977
17
- cqlshlib/__init__.py,sha256=IhAMRujMv3XMvwQcYhUyXvJtWYuHpI-WfnIookmRago,3184
15
+ cqlshlib/copyutil.py,sha256=gKG9sSvbYmC9uCCaXu1XOlNvH5lsXl52qgPjaOXUiIA,113378
18
16
  cqlshlib/util.py,sha256=qWQmq9v28vZwZ4apzK0-UQOYPIW3TMk-Jq9I69LbW0k,5057
19
- cqlshlib/tracing.py,sha256=ct7siXwNMINjGVXn9qr5h7XhDDM6Bi1uLljPUtcve-A,3403
20
- cqlshlib/formatting.py,sha256=NBHxsrXS3X8qcGewn98iTP7ys3JQUvWGf9iIWk-ErL0,23032
21
- scylla_cqlsh-6.0.12.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
22
- scylla_cqlsh-6.0.12.dist-info/RECORD,,
23
- scylla_cqlsh-6.0.12.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
24
- scylla_cqlsh-6.0.12.dist-info/METADATA,sha256=avDcI1vIZPR2JDcYnqBU5KA_blK7FjudMoTwplo93n0,2814
25
- scylla_cqlsh-6.0.12.dist-info/LICENSE.txt,sha256=JAuKOf39K9OzU5wC40RmM0iE_ISwVrV_BunaNTI-zZc,11360
26
- scylla_cqlsh-6.0.12.dist-info/WHEEL,sha256=1tl5Lkc4VfpMCkc6LryzXTS2SgqwxpqT8xGWgS4yh1M,109
17
+ cqlshlib/cqlshhandling.py,sha256=BUu9wi7H1Xgil9lci-48TCPQ1xwe2-OTNXsW7jiewlM,10510
18
+ scylla_cqlsh-6.0.14.dist-info/WHEEL,sha256=A6_DtUiDgMgD1W-StqbuJJbxCfEJTq71CSHdtaevATE,109
19
+ scylla_cqlsh-6.0.14.dist-info/LICENSE.txt,sha256=JAuKOf39K9OzU5wC40RmM0iE_ISwVrV_BunaNTI-zZc,11360
20
+ scylla_cqlsh-6.0.14.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
21
+ scylla_cqlsh-6.0.14.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
22
+ scylla_cqlsh-6.0.14.dist-info/RECORD,,
23
+ scylla_cqlsh-6.0.14.dist-info/METADATA,sha256=MxJIX58wbUL6z3_HSouHvCxDcrciADd7jAm_UiJe0pI,2814
24
+ cqlsh/__main__.py,sha256=-IR7kYVwXf9uq9OBeVlAB5I386E1N9iEhrjn3sCw-74,220
25
+ cqlsh/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
26
+ cqlsh/cqlsh.py,sha256=wRvkXUQSD10T0m1boTZtKdFzMo_WI9ojjgDB4arD6q0,110899
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp38-cp38-musllinux_1_1_i686
5
5