Skip to content

Commit 9504995

Browse files
authored
SDK changes for 5.4.x versions
1. Drop support for Python 2.7 2. Add new protocol version and API that is enabled by that protocol 3. Add default, and per-request namespace option for on-prem use only 4. Cleanup driven by PyCharm
1 parent ad5450e commit 9504995

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5109
-666
lines changed

CHANGELOG.rst

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,39 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
66
====================
7-
Unreleased
7+
8+
Unpublished
89
====================
910

11+
NOTE: will be 5.4.x -- drop Python 2.7 support
12+
1013
Added
1114
_____
12-
1315
* Cloud only: New regions: mx-monterrey-1, eu-frankfurt-2,
1416
eu-madrid-2, eu-jovanovac-1, us-dcc-phoenix-4
17+
* Support for new, flexible wire protocol (V4) has been added. The previous protocol
18+
is still supported for communication with servers that do not yet support V4. The
19+
version negotation is internal and automatic; however, use of V4 features will fail
20+
at runtime when attempted with an older server. Failure may be an empty or
21+
undefined result or an exception if the request cannot be serviced at all. The following
22+
new features or interfaces depend on the new protocol version
23+
* added set/get_durability to QueryRequest for queries that modify data
24+
* added pagination information to TableUsageResult and TableUsageRequest
25+
* added shard percent usage information to TableUsageResult
26+
* added IndexInfo.get_field_types to return the type information on an index on a JSON
27+
field
28+
* added the ability to ask for and receive the schema of a query using
29+
* PrepareRequest.set_get_query_schema
30+
* PreparedStatement.get_query_schema
31+
* Cloud only: added use of ETags, DefinedTags and FreeFormTags in TableRequest and TableResult
32+
* On-premises only. Added support for default namespace and per-request namespace
33+
specification
34+
35+
36+
Changed
37+
_______
38+
39+
* Dropped support for Python 2.x
1540

1641
====================
1742
5.3.7 - 2022-12-12

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Oracle NoSQL Database Python SDK
55
About
66
=====
77

8-
This is the Python SDK for Oracle NoSQL Database. Python 2.7+ and 3.5+ are
8+
This is the Python SDK for Oracle NoSQL Database. Python versions 3.5+ are
99
supported. The SDK provides interfaces, documentation, and examples to help
1010
develop Python applications that connect to the Oracle NoSQL Database Cloud
1111
Service, Oracle NoSQL Database and to the Oracle NoSQL Cloud Simulator (which
@@ -130,7 +130,7 @@ that the *borneo* package has been installed.
130130
# which has a number of additional operations.
131131
#
132132
# Requirements:
133-
# 1. Python 2.7 or 3.5+
133+
# 1. Python 3.5+
134134
# 2. Python dependencies (install using pip or other mechanism):
135135
# o requests
136136
# o oci (only if running against the Cloud Service)

build_spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#file: noinspection Annotator
12
# Copyright (c) 2023, 2022, Oracle and/or its affiliates.
23

34
version: 0.1

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# -- Project information -----------------------------------------------------
2525

2626
project = u'NoSQL Database Python SDK'
27+
# noinspection PyShadowingBuiltins
2728
copyright = u'2018, 2023 Oracle'
2829
author = u'Oracle'
2930

examples/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
endpoint = 'localhost:8080'
2323

2424
# The server type.
25-
server_type = 'cloudsim'
25+
server_type = 'cloudsim'

examples/multi_data_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# has a number of additional operations.
2626
#
2727
# Requirements:
28-
# 1. Python 2.7 or 3.5+
28+
# 1. Python 3.5+
2929
# 2. Python dependencies (install using pip or other mechanism):
3030
# o requests
3131
# 3. If running against the Cloud Simulator, it can be downloaded from here:

examples/rate_limiting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# has a number of additional operations.
2626
#
2727
# Requirements:
28-
# 1. Python 2.7 or 3.5+
28+
# 1. Python 3.5+
2929
# 2. Python dependencies (install using pip or other mechanism):
3030
# o requests
3131
# 3. If running against the Cloud Simulator, it can be downloaded from here:

examples/single_data_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# has a number of additional operations.
2626
#
2727
# Requirements:
28-
# 1. Python 2.7 or 3.5+
28+
# 1. Python 3.5+
2929
# 2. Python dependencies (install using pip or other mechanism):
3030
# o requests
3131
# 3. If running against the Cloud Simulator, it can be downloaded from here:

examples/table_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# has a number of additional operations.
2626
#
2727
# Requirements:
28-
# 1. Python 2.7 or 3.5+
28+
# 1. Python 3.5+
2929
# 2. Python dependencies (install using pip or other mechanism):
3030
# o requests
3131
# 3. If running against the Cloud Simulator, it can be downloaded from here:

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def open_relative(*path):
4343

4444
# Version should match the system release, but may vary as patches
4545
# are created.
46-
version=version,
46+
version=str(version),
4747
description='Oracle NoSQL Database Python SDK',
48-
long_description=readme,
48+
long_description=str(readme),
4949
long_description_content_type='text/x-rst',
5050

5151
author='Oracle',
@@ -73,7 +73,6 @@ def open_relative(*path):
7373
'License :: OSI Approved :: Universal Permissive License (UPL)',
7474

7575
# Supported Python versions
76-
'Programming Language :: Python :: 2.7',
7776
'Programming Language :: Python :: 3.5',
7877
'Programming Language :: Python :: 3.6',
7978
'Programming Language :: Python :: 3.7',

0 commit comments

Comments
 (0)