Changelogs » Incountry

PyUp Safety actively tracks 268,006 Python packages for vulnerabilities and notifies you when to upgrade.

Incountry

3.0.0

Below are examples of to adapt your code to `key` -> `record_key`, `range_key` -> `range_key1` renamings.
  
  `Storage.write()`
  diff
  write_result = storage.write(
  country=COUNTRY,
  - key=some_key,
  - range_key=1,
  + record_key=some_key,
  + range_key1=1,
  body=some_body,
  )
  - print(write_result["record"]["key"])
  - print(write_result["record"]["range_key"])
  + print(write_result["record"]["record_key"])
  + print(write_result["record"]["range_key1"])
  
  
  `Storage.read()`
  diff
  read_result = storage.read(
  country=COUNTRY,
  - key=some_key,
  + record_key=some_key,
  )
  - print(read_result["record"]["key"])
  - print(read_result["record"]["range_key"])
  + print(read_result["record"]["record_key"])
  + print(read_result["record"]["range_key1"])
  
  
  `Storage.delete()`
  diff
  - storage.delete(country=COUNTRY, key=some_key)
  + storage.delete(country=COUNTRY, record_key=some_key)
  
  
  `Storage.find()`
  diff
  find_result = storage.find(
  country=COUNTRY,
  - key=some_key,
  - range_key=1,
  + record_key=some_key,
  + range_key1=1,
  )
  - print(find_result["records"][0]["key"])
  - print(find_result["records"][0]["range_key"])
  + print(find_result["records"][0]["record_key"])
  + print(find_result["records"][0]["range_key1"])
  
  
  `Storage.find_one()`
  diff
  find_result = storage.find_one(
  country=COUNTRY,
  - key=some_key,
  - range_key=1,
  + record_key=some_key,
  + range_key1=1,
  )
  - print(find_result["record"]["key"])
  - print(find_result["record"]["range_key"])
  + print(find_result["record"]["record_key"])
  + print(find_result["record"]["range_key1"])

2.1.0


        

2.0.0


        

1.1.2


        

1.1.0


        

1.0.0