awsimple 7.1.0__py3-none-any.whl → 7.1.2__py3-none-any.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 awsimple might be problematic. Click here for more details.

awsimple/__version__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  __application_name__ = "awsimple"
2
2
  __title__ = __application_name__
3
3
  __author__ = "abel"
4
- __version__ = "7.1.0"
4
+ __version__ = "7.1.2"
5
5
  __author_email__ = "j@abel.co"
6
6
  __url__ = "https://github.com/jamesabel/awsimple"
7
7
  __download_url__ = "https://github.com/jamesabel/awsimple"
awsimple/dynamodb.py CHANGED
@@ -386,7 +386,10 @@ class DynamoDBAccess(CacheAccess):
386
386
  if now <= getmtime(str(cache_file_path)) + self.cache_life:
387
387
  # cache file exists and is current, see if it has expired
388
388
  cache_file_mtime = getmtime(str(cache_file_path))
389
- table_mtime_f = self.metadata_table.get_table_mtime_f()
389
+ if self.metadata_table is None:
390
+ table_mtime_f = None
391
+ else:
392
+ table_mtime_f = self.metadata_table.get_table_mtime_f()
390
393
  log.info(f"{self.table_name=},{cache_file_path=},{cache_file_mtime=},{table_mtime_f=}")
391
394
  # determine if table has been updated since local cache file was written
392
395
  # (assumes the clock of the system that wrote the table is in sync with the clock of this system within the clock skew)
awsimple/pubsub.py CHANGED
@@ -135,8 +135,8 @@ def make_name_aws_safe(*args: str) -> str:
135
135
  :return: AWS safe name
136
136
  """
137
137
 
138
- base36 = strif.hash_string("".join(args)).base36
139
- assert len(base36) == 31
138
+ base36 = strif.hash_string("".join(args)).base36.strip()
139
+ assert 30 <= len(base36) <= 31
140
140
  return base36
141
141
 
142
142
 
@@ -273,7 +273,7 @@ class _PubSub(Thread):
273
273
  @typechecked()
274
274
  def get_messages(self) -> List[Dict[str, Any]]:
275
275
  """
276
- Get all available messages. Muse set sub_poll=True when creating the PubSub object to use this function.
276
+ Get all available messages. Use set sub_poll=True when creating the PubSub object to use this function.
277
277
 
278
278
  :return: list of messages as dictionaries
279
279
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awsimple
3
- Version: 7.1.0
3
+ Version: 7.1.2
4
4
  Summary: Simple AWS API for S3, DynamoDB, SNS, and SQS
5
5
  Home-page: https://github.com/jamesabel/awsimple
6
6
  Download-URL: https://github.com/jamesabel/awsimple
@@ -1,21 +1,21 @@
1
1
  awsimple/__init__.py,sha256=1uECRpVL5WHv1HPyn9sKQpEMJHwlbb7vhkEv7cuS5C4,1053
2
- awsimple/__version__.py,sha256=1A-B4QbDeFGUPq2AstlwwVmN7Fr-JYhTLgSgwsLBmYA,323
2
+ awsimple/__version__.py,sha256=zC3Ln6DkTEspZXVcoHvS7SgVjileeCqpteWrKPrtMTc,323
3
3
  awsimple/aws.py,sha256=NbRu1v_J5j2-pcefNZ5Xggii3mM9nHpeHMz9L9K9r-U,7653
4
4
  awsimple/cache.py,sha256=_LvPx76215t8KhAJOin6Pe2b4lWpB6kbKpdzgR4FeA4,7206
5
- awsimple/dynamodb.py,sha256=yZarOgtWwQXkpG3Zj1eH86ytMYs5xmkipo_JBNGwLzA,41443
5
+ awsimple/dynamodb.py,sha256=nyj05FZlzdrzFSsCroHGkDLJwrtr6jz5J1dhDEDPr8c,41561
6
6
  awsimple/dynamodb_miv.py,sha256=4xPxQDYkIM-BVDGyAre6uqwJHsxguEbHbof8ztt-V7g,4645
7
7
  awsimple/exceptions.py,sha256=Ew-S8YkHVWrZFI_Yik5n0cJ7Ss4Kig5JsEPQ-9z18SU,922
8
8
  awsimple/logs.py,sha256=s9FhdDFWjfxGCVDx-FNTPgJ-YN1AOAgz4HNxTVfRARE,4108
9
9
  awsimple/mock.py,sha256=eScbnxFF9xAosOAsL-NZgp_P-fezB6StQMkb85Y3TNo,574
10
10
  awsimple/platform.py,sha256=TObvLIVgRGh-Mh4ZCxFfxAmrn8KNMHktr6XkDZX8JYE,376
11
- awsimple/pubsub.py,sha256=lsGN9HUQDh4pSVjVB0Y4T5QoiI69kIy8-m0G27PUsWU,14000
11
+ awsimple/pubsub.py,sha256=ub8YvVM7zXJW4RnAZlSCOSROgt22LIsB1TJwTebrd6A,14013
12
12
  awsimple/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  awsimple/s3.py,sha256=OhWF1uv4oLmBF5jAhKIi918iUQxx4CX8bTEvQ5wLYr8,24050
14
14
  awsimple/sns.py,sha256=T_FyN8eSmBPo213HOfB3UBlMrvtBK768IaRo_ks-7do,3526
15
15
  awsimple/sqs.py,sha256=nS_rD38gJObYeoXkDSg8Dv5jZTlxc79VRHFbVfmseis,17376
16
- awsimple-7.1.0.dist-info/licenses/LICENSE,sha256=d956YAgtDaxgxQmccyUk__EfhORZyBjvmJ8pq6zYTxk,1093
17
- awsimple-7.1.0.dist-info/licenses/LICENSE.txt,sha256=d956YAgtDaxgxQmccyUk__EfhORZyBjvmJ8pq6zYTxk,1093
18
- awsimple-7.1.0.dist-info/METADATA,sha256=Hr9h90Nq9xKsD6krG7SQprjXP1Ia1EPfooj03FpZjZ8,6880
19
- awsimple-7.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- awsimple-7.1.0.dist-info/top_level.txt,sha256=mwqCoH_8vAaK6iYioiRbasXmVCQM7AK3grNWOKp2VHE,9
21
- awsimple-7.1.0.dist-info/RECORD,,
16
+ awsimple-7.1.2.dist-info/licenses/LICENSE,sha256=d956YAgtDaxgxQmccyUk__EfhORZyBjvmJ8pq6zYTxk,1093
17
+ awsimple-7.1.2.dist-info/licenses/LICENSE.txt,sha256=d956YAgtDaxgxQmccyUk__EfhORZyBjvmJ8pq6zYTxk,1093
18
+ awsimple-7.1.2.dist-info/METADATA,sha256=qWQYOrDW6BiupAd5OU8TaKDLyfmi0ASfOA1Y-FEB18Q,6880
19
+ awsimple-7.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ awsimple-7.1.2.dist-info/top_level.txt,sha256=mwqCoH_8vAaK6iYioiRbasXmVCQM7AK3grNWOKp2VHE,9
21
+ awsimple-7.1.2.dist-info/RECORD,,