Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
156ee69
Replace a few constants with cross refs. Leave TODO's for later
juliannguyen4 Apr 26, 2026
005bd26
Follow quick start guide
juliannguyen4 Apr 26, 2026
a7ac117
Prevent silent failing
juliannguyen4 Apr 26, 2026
b9676ba
Add doctest to test code examples in aerospike module rst docs. TODO …
juliannguyen4 Apr 26, 2026
9410da7
Try running with doc/*.rst to see what files get inspected
juliannguyen4 Apr 26, 2026
054b8a1
*.rst doesn't show any output. Try checking a specific file
juliannguyen4 Apr 26, 2026
7e1e1e6
need verbose mode to see number of tests run and whether they passed
juliannguyen4 Apr 26, 2026
2b0446c
Update code example to be doctest compatible. TODO - see how it appea…
juliannguyen4 Apr 26, 2026
aeee4d6
Move doctest to smoke tests to use python client build in order to im…
juliannguyen4 Apr 26, 2026
cb8f30f
Reuse job that deploys server to run doctest examples
juliannguyen4 Apr 26, 2026
ee30366
Move doctest to CE test to avoid needing to login as user
juliannguyen4 Apr 26, 2026
5bede57
Do this to avoid running doc test on every python version
juliannguyen4 Apr 26, 2026
2fd1829
fix workflow
juliannguyen4 Apr 26, 2026
c8fe007
Add sphinx_copybutton extension to make copying doctest-formatted cod…
juliannguyen4 Apr 26, 2026
865ceae
Follow 'use and customize' guide for sphinx-copybutton to skip copyin…
juliannguyen4 Apr 26, 2026
17aa74c
Add back comments
juliannguyen4 Apr 26, 2026
a15032a
Convert all code examples to be doctest compatible TODO - except for …
juliannguyen4 Apr 26, 2026
50664bc
Fix doctest formatting. Not sure why sphinx didn't fail bc of this
juliannguyen4 Apr 26, 2026
9ba17f0
Fix reported failures. Exception detail doesn't matter since it's a t…
juliannguyen4 Apr 27, 2026
14d5820
Add custom script to run all doctest code examples. This allows us to…
juliannguyen4 Apr 27, 2026
667460f
Mv script name to prevent shadowing doctest package
juliannguyen4 Apr 27, 2026
86b1f35
Fix workflow
juliannguyen4 Apr 27, 2026
1758e56
Try using this method instead to run the boilerplate code before ever…
juliannguyen4 Apr 27, 2026
f7664a2
Use doctest builder to run doctest in client.rst
juliannguyen4 Apr 27, 2026
0b3af6d
Forgot that pinned sphinx version requires 3.12 or higher
juliannguyen4 Apr 27, 2026
bebf000
Fix syntax
juliannguyen4 Apr 27, 2026
a59305f
Noticed some aerospike.* methods in aerospike.rst are returning Magic…
juliannguyen4 Apr 27, 2026
52418be
Fix HyperLogLog code example
juliannguyen4 Apr 27, 2026
d04848c
Fix formatting. Output here is correct
juliannguyen4 Apr 27, 2026
2d047be
Try testcode block, if it works then just move the other code example…
juliannguyen4 Apr 27, 2026
efb9f78
Fix hyperloglog..
juliannguyen4 Apr 27, 2026
153cfa7
Think it's safe to remove code to run doctest if we are already using…
juliannguyen4 Apr 27, 2026
5223348
Fix prepend code example
juliannguyen4 Apr 27, 2026
71c6941
Make most of the code examples in client.rst testable.
juliannguyen4 Apr 27, 2026
03fbd13
Test if this command works in aerospike_helpers
juliannguyen4 Apr 27, 2026
6e86937
Try this setting in order to build docs for aerospike_helpers.
juliannguyen4 Apr 27, 2026
7cb953d
Add back example label.
juliannguyen4 Apr 27, 2026
8ddf498
Replace 'Example::' with testcode directive for sphinx doctest to check
juliannguyen4 Apr 27, 2026
66dcce0
Revert code examples back to code-output-style blocks since sphinx do…
juliannguyen4 Apr 28, 2026
0620de5
Rm unused script now that we use sphinx doctest
juliannguyen4 Apr 28, 2026
ad7b685
Fix code example outputs causing doc build to fail
juliannguyen4 Apr 28, 2026
6e83983
Add testsetup block to fix many errors in aerospike_helpers.expressio…
juliannguyen4 Apr 28, 2026
72615a1
Fix a few bad/inconsistent code examples
juliannguyen4 Apr 28, 2026
f966c32
Fix more bad code examples..
juliannguyen4 Apr 28, 2026
16d0bbb
Improve naming for one code example. Fix another example
juliannguyen4 Apr 28, 2026
ef4ef1f
Add missing import
juliannguyen4 Apr 28, 2026
817450d
Add debug print to see why operation code is not an integer
juliannguyen4 Apr 29, 2026
d260ec0
Debug further
juliannguyen4 Apr 29, 2026
cf83d66
Add debug prints in glue code to see what type the client sees. TODO …
juliannguyen4 Apr 29, 2026
a222bd8
fix compiler error
juliannguyen4 Apr 29, 2026
65eb2d5
Make compatible with Python 3.10. PyType_GetName isn't available in t…
juliannguyen4 Apr 29, 2026
94f1a16
Use better method
juliannguyen4 Apr 29, 2026
e184e70
Printed out the type of the module constant, but try seeing what is a…
juliannguyen4 Apr 30, 2026
26e0cf3
Forgot to print to stderr. doctest captures stdout
juliannguyen4 Apr 30, 2026
21e30b6
Try not mocking out aerospike to see if doctest extension depends on …
juliannguyen4 Apr 30, 2026
d319647
Conditionally mock out aerospike if it isn't installed. This way doct…
juliannguyen4 Apr 30, 2026
792b1b6
Fix 2 code examples in aerospike.rst. This assumes the elements are r…
juliannguyen4 Apr 30, 2026
f4e3b84
Expand code example for hyperloglog
juliannguyen4 Apr 30, 2026
dca10b0
Address a few more code examples failing.
juliannguyen4 Apr 30, 2026
46b4a20
Address more code example failures. Use ellipsis for nonexact matches
juliannguyen4 Apr 30, 2026
2477217
Fix udf examples
juliannguyen4 Apr 30, 2026
5bb7d3f
Add missing import
juliannguyen4 Apr 30, 2026
3145ba7
Make sure udf output matches code example
juliannguyen4 Apr 30, 2026
fa2a5f6
Fix indentation
juliannguyen4 Apr 30, 2026
45f8580
Add missing key
juliannguyen4 Apr 30, 2026
e5b0d3a
Attempt to fix udf code example error
juliannguyen4 Apr 30, 2026
ef1a6b1
This example doesn't explicitly test ttl/gen so we can just ignore it
juliannguyen4 Apr 30, 2026
3a0a1ae
Address one test failure
juliannguyen4 Apr 30, 2026
5ec69d2
Address a few errors
juliannguyen4 May 1, 2026
8d9675a
Address a few errors
juliannguyen4 May 1, 2026
6d295c9
Getting import errors for expr op examples. Not sure why this is happ…
juliannguyen4 May 1, 2026
23e1d2a
Show logs to see why HyperLogLog code example fails
juliannguyen4 May 1, 2026
e36bc42
Add scaffolding for hll code examples TODO not done
juliannguyen4 May 1, 2026
2e0c039
Just ignore todo for this pr
juliannguyen4 May 7, 2026
41971fa
Cant find cross reference from google so just ignore
juliannguyen4 May 7, 2026
d789c99
Replace aerospike constants with cross references to verify that they…
juliannguyen4 May 7, 2026
9760255
Fix formatting. Remove TODO comment that is causing formatting error
juliannguyen4 May 7, 2026
ba84596
Fix bad syntax.
juliannguyen4 May 7, 2026
e99684b
Fix invalid cross ref
juliannguyen4 May 7, 2026
bbeeb8e
Remove this to try fixing docs build error
juliannguyen4 May 7, 2026
047f82e
Fix code example by creating hll object in server instead of in code …
juliannguyen4 May 8, 2026
86daa85
Fix indenting
juliannguyen4 May 8, 2026
4676596
Address failing test case
juliannguyen4 May 8, 2026
0e11e73
Address failing test case
juliannguyen4 May 8, 2026
ae9e462
Fix bad syntax in example
juliannguyen4 May 8, 2026
7966d2c
Just noticed this is a duplicate code example for the same class
juliannguyen4 May 8, 2026
f767326
Revise one code example to make more clear how this works
juliannguyen4 May 8, 2026
cbe173e
Fix syntax error
juliannguyen4 May 8, 2026
bd60059
Fix invalid syntax
juliannguyen4 May 8, 2026
2d6178d
Merge remote-tracking branch 'origin/dev' into CLIENT-4702-doc-valida…
juliannguyen4 May 15, 2026
25821d1
Convert remaining python code examples
juliannguyen4 May 15, 2026
58fb349
Address doctest failure by checking dict in the order the keys are re…
juliannguyen4 May 15, 2026
7d6ad8e
Address indent error in code examples
juliannguyen4 May 15, 2026
e4d0a55
Address doctest failure
juliannguyen4 May 15, 2026
d1effb9
Fix formatting
juliannguyen4 May 15, 2026
e3ab81c
Address doctest failures
juliannguyen4 May 15, 2026
552305f
Address test failure. Assuming doctest only returns strs as single qu…
juliannguyen4 May 15, 2026
570c771
Addr test failures
juliannguyen4 May 15, 2026
7022991
Add missing import
juliannguyen4 May 15, 2026
50103a3
Fill in missing boilerplate code for HLL examples.
juliannguyen4 May 15, 2026
dcb6f45
testsetup block has key defined. Make sure it runs
juliannguyen4 May 15, 2026
9e348a1
Revert code changes used for debugging failing doctest errors.
juliannguyen4 May 15, 2026
8c7b550
Since testblock is hidden and there's no option to show it, have a du…
juliannguyen4 May 15, 2026
a758b7c
Rm dup import.
juliannguyen4 May 15, 2026
431a1f5
Merge remote-tracking branch 'origin/dev' into CLIENT-4535-doc-replac…
juliannguyen4 Jun 1, 2026
2f9eff0
Merge remote-tracking branch 'origin/dev' into CLIENT-4535-doc-replac…
juliannguyen4 Jun 3, 2026
f0d72c1
Merge remote-tracking branch 'origin/dev' into CLIENT-4702-doc-valida…
juliannguyen4 Jun 3, 2026
653bd20
Merge remote-tracking branch 'origin/dev' into CLIENT-4702-doc-valida…
juliannguyen4 Jun 3, 2026
e9452d1
Use minimum supported python version for current sphinx version
juliannguyen4 Jun 3, 2026
2688b0b
Prevent either a failing stubtest or doctest run from affecting each …
juliannguyen4 Jun 3, 2026
2e9dcfd
Use env var to determine python version to pull wheel and install python
juliannguyen4 Jun 3, 2026
54de454
Address regression where doctest doesn't have a server to run against
juliannguyen4 Jun 3, 2026
37a28c6
Address doctest failures
juliannguyen4 Jun 3, 2026
bead2a7
Make HLLAdd code example more meaningful
juliannguyen4 Jun 3, 2026
a468903
Provide more helpful output for HLLDescribe code example
juliannguyen4 Jun 3, 2026
40d752f
Address doctest failures by fixing the testcode syntax.
juliannguyen4 Jun 3, 2026
9703b25
Use f-strings and a separate python script to reduce code duplication
juliannguyen4 Jun 3, 2026
7fbc682
Fix python syntax
juliannguyen4 Jun 3, 2026
44ab356
Add missing boilerplate script
juliannguyen4 Jun 3, 2026
3eae364
Rerun doctest if the boilerplate testsetup code changes
juliannguyen4 Jun 3, 2026
e46eae2
Fix smoke tests not triggering.
juliannguyen4 Jun 3, 2026
7104128
Revert "Add missing boilerplate script"
juliannguyen4 Jun 3, 2026
7f0c5a8
Revert "Fix smoke tests not triggering."
juliannguyen4 Jun 3, 2026
7b153cb
Revert "Rerun doctest if the boilerplate testsetup code changes"
juliannguyen4 Jun 3, 2026
82eba7d
Always run doctest when docs/ has changes.
juliannguyen4 Jun 3, 2026
c3bd949
Add back duplicated python setup code as a workaround for testsetup n…
juliannguyen4 Jun 3, 2026
a94d1ee
Merge remote-tracking branch 'origin/dev' into CLIENT-4702-doc-valida…
juliannguyen4 Jun 3, 2026
621ecaf
Lock setup-aerospike-server for doctest.
juliannguyen4 Jun 3, 2026
431ca2d
Dont think these comments matter anymore if the code example for clie…
juliannguyen4 Jun 3, 2026
e3cd0fa
Remove old mock logic now that autodoc_mock_imports is used.
juliannguyen4 Jun 3, 2026
fb0850f
Elaborate the format of client.info_all()'s output since the tested c…
juliannguyen4 Jun 3, 2026
d4999e6
Use testcode block instead of doctest. Doesn't make sense to print ou…
juliannguyen4 Jun 4, 2026
c5e7e6e
Merge branch 'CLIENT-4702-doc-validate-code-examples-using-doctest' i…
juliannguyen4 Jun 4, 2026
e7e61a4
Merge remote-tracking branch 'origin/dev' into CLIENT-4535-doc-replac…
juliannguyen4 Jun 5, 2026
9f96184
To make code review less confusing, always use :py:data: instead of :…
juliannguyen4 Jun 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aerospike_helpers/cdt_ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def cdt_ctx_list_index_create(index: int, order: int = 0, pad: bool = False) ->
Args:
index (int): The index to create the list at.
order (int): The :ref:`sort order <aerospike_list_order>` to create the List with.
(default: ``aerospike.LIST_UNORDERED``)
(default: :py:data:`aerospike.LIST_UNORDERED`)
pad (bool): If index is out of bounds and ``pad`` is :py:obj:`True`,
then the list will be created at the index with :py:obj:`None` elements inserted behind it.
``pad`` is only compatible with unordered lists.
Expand Down Expand Up @@ -315,7 +315,7 @@ def cdt_ctx_map_key_create(key: Any, order: int = 0) -> _cdt_ctx:
Args:
key (object): The key to create the map at.
order (int): The :ref:`sort order <aerospike_map_order>` to create the List with.
(default: ``aerospike.MAP_UNORDERED``)
(default: :py:data:`aerospike.MAP_UNORDERED`)

Returns:
:class:`~aerospike_helpers.cdt_ctx._cdt_ctx`
Expand Down
4 changes: 2 additions & 2 deletions aerospike_helpers/operations/bitwise_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def bit_resize(bin_name: str, byte_size, policy=None, resize_flags: int = 0):
byte_size (int): The new size of the bytes.
policy (dict): The :ref:`bit_policy <aerospike_bit_policies>` dictionary. default: None.
resize_flags (int): :ref:`aerospike_bitwise_resize_flag` modifying the resize behavior
(default ``aerospike.BIT_RESIZE_DEFAULT``), such as ``aerospike.BIT_RESIZE_GROW_ONLY |
aerospike.BIT_RESIZE_FROM_FRONT``.
(default :py:data:`aerospike.BIT_RESIZE_DEFAULT`), such as :py:data:`aerospike.BIT_RESIZE_GROW_ONLY` |
:py:data:`aerospike.BIT_RESIZE_FROM_FRONT`.

Returns:
A dictionary usable in operate or operate_ordered. The format of the dictionary
Expand Down
8 changes: 5 additions & 3 deletions aerospike_helpers/operations/expression_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def expression_read(bin_name: str, expression: resources._BaseExpr, expression_r
bin_name (str): The name of the bin to read from. Even if no bin is being read from, the value will be returned
with this bin name.
expression: A compiled Aerospike expression, see :ref:`aerospike_operation_helpers.expressions`.
expression_read_flags (int): :ref:`aerospike_expression_read_flags` (default ``aerospike.EXP_READ_DEFAULT``)
expression_read_flags (int): :ref:`aerospike_expression_read_flags`
(default :py:data:`aerospike.EXP_READ_DEFAULT`)
Returns:
A dictionary to be passed to operate or operate_ordered.

Expand Down Expand Up @@ -89,8 +90,9 @@ def expression_write(bin_name: str, expression: resources._BaseExpr, expression_
Args:
bin_name (str): The name of the bin to write to.
expression: A compiled Aerospike expression, see :ref:`aerospike_operation_helpers.expressions`.
expression_write_flags (int): :ref:`aerospike_expression_write_flags` such as ``aerospike.EXP_WRITE_UPDATE_ONLY
| aerospike.EXP_WRITE_POLICY_NO_FAIL`` (default ``aerospike.EXP_WRITE_DEFAULT``).
expression_write_flags (int): :ref:`aerospike_expression_write_flags` such as
:py:data:`aerospike.EXP_WRITE_UPDATE_ONLY` | :py:data:`aerospike.EXP_WRITE_POLICY_NO_FAIL`
(default :py:data:`aerospike.EXP_WRITE_DEFAULT`).
Returns:
A dictionary to be passed to operate or operate_ordered.

Expand Down
2 changes: 1 addition & 1 deletion aerospike_helpers/operations/list_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ def list_sort(bin_name: str, sort_flags: int = 0, ctx: Optional[list] = None):
Args:
bin_name (str): The name of the bin to sort.
sort_flags (int): :ref:`aerospike_list_sort_flag` modifying the sorting behavior
(default ``aerospike.DEFAULT_LIST_SORT``).
(default :py:data:`aerospike.LIST_SORT_DEFAULT`).
ctx (list): An optional list of nested CDT :class:`cdt_ctx <aerospike_helpers.cdt_ctx>` context operation
objects.
Returns:
Expand Down
9 changes: 5 additions & 4 deletions aerospike_helpers/operations/map_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,8 @@ def map_remove_by_value_rank_range_relative(
Note:
This operation requires server version 4.3.0 or greater.

Examples for a key ordered map ``{0: 6, 6: 12, 10: 18, 15: 24}`` and return type of ``aerospike.MAP_RETURN_KEY``:
Examples for a key ordered map ``{0: 6, 6: 12, 10: 18, 15: 24}`` and return type of
:py:data:`aerospike.MAP_RETURN_KEY`:

::

Expand Down Expand Up @@ -1041,7 +1042,7 @@ def map_get_by_value_rank_range_relative(
Note:
This operation requires server version 4.3.0 or greater.

Examples for map ``{0: 6, 10: 18, 6: 12, 15: 24}`` and return type of ``aerospike.MAP_RETURN_KEY``.
Examples for map ``{0: 6, 10: 18, 6: 12, 15: 24}`` and return type of :py:data:`aerospike.MAP_RETURN_KEY`.
See :meth:`map_remove_by_value_rank_range_relative` for in-depth explanation.

::
Expand Down Expand Up @@ -1101,7 +1102,7 @@ def map_remove_by_key_index_range_relative(
should be considered an internal detail, and subject to change.

Examples for a key ordered map ``{0: 6, 6: 12, 10: 18, 15: 24}``
and return type of ``aerospike.MAP_RETURN_KEY``
and return type of :py:data:`aerospike.MAP_RETURN_KEY`

::

Expand Down Expand Up @@ -1175,7 +1176,7 @@ def map_get_by_key_index_range_relative(
This operation requires server version 4.3.0 or greater.

Examples for a key ordered map ``{0: 6, 6: 12, 10: 18, 15: 24}``
and return type of ``aerospike.MAP_RETURN_KEY``.
and return type of :py:data:`aerospike.MAP_RETURN_KEY`.
See :meth:`map_remove_by_key_index_range_relative` for in-depth explanation.

::
Expand Down
6 changes: 3 additions & 3 deletions doc/aerospike.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Overview
:platform: 64-bit Linux and OS X
:synopsis: Aerospike client for Python.

``aerospike`` is a package which provides a Python client for Aerospike database clusters.
:py:mod:`aerospike` is a package which provides a Python client for Aerospike database clusters.

The Aerospike client enables you to build an application in Python with an
Aerospike cluster as its database. The client manages the connections to the
Expand Down Expand Up @@ -1264,11 +1264,11 @@ List Sort Flags

Flags used by list sort.

.. data:: aerospike.LIST_SORT_DEFAULT
.. data:: LIST_SORT_DEFAULT

Default. Preserve duplicates when sorting the list.

.. data:: aerospike.LIST_SORT_DROP_DUPLICATES
.. data:: LIST_SORT_DROP_DUPLICATES

Drop duplicate values when sorting the list.

Expand Down
16 changes: 8 additions & 8 deletions doc/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ Numeric Operations
:param int offset: the value by which to increment the value in *bin*.
:type offset: :py:class:`int` or :py:class:`float`
:param dict meta: record metadata to be set. See :ref:`metadata_dict`.
:param dict policy: optional :ref:`aerospike_operate_policies`. Note: the ``exists`` policy option may not be: ``aerospike.POLICY_EXISTS_CREATE_OR_REPLACE`` nor ``aerospike.POLICY_EXISTS_REPLACE``
:param dict policy: optional :ref:`aerospike_operate_policies`. Note: the ``exists`` policy option may not be: :py:data:`aerospike.POLICY_EXISTS_CREATE_OR_REPLACE` nor :py:data:`aerospike.POLICY_EXISTS_REPLACE`
:raises: a subclass of :exc:`~aerospike.exception.AerospikeError`.

.. testcode::
Expand Down Expand Up @@ -718,7 +718,7 @@ User Defined Functions
:param dict policy: optional dictionary that takes in both :ref:`aerospike_scan_policies` and :ref:`aerospike_info_policies`.
:param dict options: the :ref:`aerospike_scan_options` that will apply to the scan.
:rtype: :class:`int`
:return: a job ID that can be used with :meth:`job_info` to check the status of the ``aerospike.JOB_SCAN``.
:return: a job ID that can be used with :meth:`job_info` to check the status of the :py:data:`aerospike.JOB_SCAN`.
:raises: a subclass of :exc:`~aerospike.exception.AerospikeError`.

.. method:: query_apply(ns, set, predicate, module, function[, args[, policy: dict]]) -> int
Expand All @@ -735,7 +735,7 @@ User Defined Functions
:param list args: the arguments to the UDF.
:param dict policy: optional dictionary that takes in both :ref:`aerospike_write_policies` and :ref:`aerospike_info_policies`.
:rtype: :class:`int`
:return: a job ID that can be used with :meth:`job_info` to check the status of the ``aerospike.JOB_QUERY``.
:return: a job ID that can be used with :meth:`job_info` to check the status of the :py:data:`aerospike.JOB_QUERY`.
:raises: a subclass of :exc:`~aerospike.exception.AerospikeError`.

.. method:: job_info(job_id, module[, policy: dict]) -> dict
Expand Down Expand Up @@ -1864,7 +1864,7 @@ Read Policies
* **replica**
| One of the :ref:`POLICY_REPLICA` values such as :data:`aerospike.POLICY_REPLICA_MASTER`
|
| Default: ``aerospike.POLICY_REPLICA_SEQUENCE``
| Default: :py:data:`aerospike.POLICY_REPLICA_SEQUENCE`

.. _aerospike_operate_policies:

Expand Down Expand Up @@ -2028,7 +2028,7 @@ Remove Policies
* **replica**
| One of the :ref:`POLICY_REPLICA` values such as :data:`aerospike.POLICY_REPLICA_MASTER`
|
| Default: ``aerospike.POLICY_REPLICA_SEQUENCE``
| Default: :py:data:`aerospike.POLICY_REPLICA_SEQUENCE`

.. _aerospike_batch_policies:

Expand Down Expand Up @@ -2347,12 +2347,12 @@ List Policies

* **write_flags**
| Write flags for the operation.
| One of the :ref:`aerospike_list_write_flag` values such as :data:`aerospike.LIST_WRITE_DEFAULT`
| One of the :ref:`aerospike_list_write_flag` values.
|
| Default: :data:`aerospike.LIST_WRITE_DEFAULT`
|
| Values should be or'd together:
| ``aerospike.LIST_WRITE_ADD_UNIQUE | aerospike.LIST_WRITE_INSERT_BOUNDED``
| :py:data:`aerospike.LIST_WRITE_ADD_UNIQUE` | :py:data:`aerospike.LIST_WRITE_INSERT_BOUNDED`

* **list_order**
| Ordering to maintain for the list.
Expand Down Expand Up @@ -2388,7 +2388,7 @@ Map Policies
| Default: :data:`aerospike.MAP_WRITE_FLAGS_DEFAULT`
|
| Values should be or'd together:
| ``aerospike.LIST_WRITE_ADD_UNIQUE | aerospike.LIST_WRITE_INSERT_BOUNDED``
| :py:data:`aerospike.LIST_WRITE_ADD_UNIQUE` | :py:data:`aerospike.LIST_WRITE_INSERT_BOUNDED`

.. note:: This is only valid for Aerospike Server versions >= 4.3.0.

Expand Down
4 changes: 2 additions & 2 deletions doc/query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ Assume this boilerplate code is run before all examples below:

:param dict policy: optional :ref:`aerospike_write_policies`.

:return: a job ID that can be used with :meth:`~aerospike.Client.job_info` to track the status of the ``aerospike.JOB_QUERY`` , as it runs in the background.
:return: a job ID that can be used with :meth:`~aerospike.Client.job_info` to track the status of the :py:data:`aerospike.JOB_QUERY` , as it runs in the background.

.. code-block:: python

Expand Down Expand Up @@ -531,7 +531,7 @@ Policies
* **replica**
| One of the :ref:`POLICY_REPLICA` values such as :data:`aerospike.POLICY_REPLICA_MASTER`
|
| Default: ``aerospike.POLICY_REPLICA_SEQUENCE``
| Default: :py:data:`aerospike.POLICY_REPLICA_SEQUENCE`

.. _aerospike_query_options:

Expand Down
4 changes: 2 additions & 2 deletions doc/scan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Methods

:param dict policy: optional :ref:`aerospike_write_policies`.

:return: a job ID that can be used with :meth:`~aerospike.Client.job_info` to track the status of the ``aerospike.JOB_SCAN``, as it runs in the background.
:return: a job ID that can be used with :meth:`~aerospike.Client.job_info` to track the status of the :py:data:`aerospike.JOB_SCAN`, as it runs in the background.

.. note::
Python client version 3.10.0 implemented scan execute_background.
Expand Down Expand Up @@ -481,7 +481,7 @@ Policies
* **replica**
| One of the :ref:`POLICY_REPLICA` values such as :data:`aerospike.POLICY_REPLICA_MASTER`
|
| Default: ``aerospike.POLICY_REPLICA_SEQUENCE``
| Default: :py:data:`aerospike.POLICY_REPLICA_SEQUENCE`
* **ttl** (:class:`int`)
The default time-to-live (expiration) of the record in seconds. This field will only be used on
background scan writes if :py:attr:`aerospike.Scan.ttl` is set to
Expand Down
Loading