Cloudant

Latest version: v2.15.0

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

2.1.1

- [FIXED] HTTPError is now raised when 4xx or 5xx codes are encountered.

2.1.0

- [NEW] Added support for Cloudant Search execution.
- [NEW] Added support for Cloudant Search index management.
- [NEW] Added support for managing and querying list functions.
- [NEW] Added support for managing and querying show functions.
- [NEW] Added support for querying update handlers.
- [NEW] Added `rewrites` accessor property for URL rewriting.
- [NEW] Added `st_indexes` accessor property for Cloudant Geospatial indexes.
- [NEW] Added support for DesignDocument `_info` and `_search_info` endpoints.
- [NEW] Added `validate_doc_update` accessor property for update validators.
- [NEW] Added support for a custom `requests.HTTPAdapter` to be configured using an optional
`adapter` arg e.g. `Cloudant(USERNAME, PASSWORD, account=ACCOUNT_NAME,
adapter=Replay429Adapter())`.
- [IMPROVED] Made the 429 response code backoff optional and configurable. To enable the backoff add
an `adapter` arg of a `Replay429Adapter` with the desired number of retries and initial
backoff. To replicate the 2.0.0 behaviour use: `adapter=Replay429Adapter(retries=10,
initialBackoff=0.25)`. If `retries` or `initialBackoff` are not specified they will default to 3
retries and a 0.25 s initial backoff.
- [IMPROVED] Additional error reason details appended to HTTP response message errors.
- [FIX] `415 Client Error: Unsupported Media Type` when using keys with `db.all_docs`.
- [FIX] Allowed strings as well as lists for search `group_sort` arguments.

2.0.3

- [FIX] Fixed the python-cloudant readthedocs documentation home page to resolve correctly.

2.0.2

- [IMPROVED] Updated documentation links from python-cloudant.readthedocs.org to
python-cloudant.readthedocs.io.
- [FIX] Fixed issue with Windows platform compatibility,replaced usage of os.uname for the
user-agent string.
- [FIX] Fixed readthedocs link in README.rst to resolve to documentation home page.

2.0.1

- [IMPROVED] Updated documentation links from python-cloudant.readthedocs.org to
python-cloudant.readthedocs.io.
- [FIX] Fixed issue with Windows platform compatibility,replaced usage of os.uname for the
user-agent string.
- [FIX] Fixed readthedocs link in README.rst to resolve to documentation home page.

2.0.0

- [BREAKING] Renamed modules account.py, errors.py, indexes.py, views.py, to client.py, error.py,
index.py, and view.py.
- [BREAKING] Removed the `make_result` method from `View` and `Query` classes. If you need to make
a query or view result, use `CloudantDatabase.get_query_result`, `CouchDatabase.get_view_result`,
or the `View.custom_result` context manager. Additionally, the `Result` and `QueryResult` classes
can be called directly to construct a result object.
- [BREAKING] Refactored the `SearchIndex` class to now be the `TextIndex` class. Also renamed the
`CloudantDatabase` convenience methods of `get_all_indexes`, `create_index`, and `delete_index` as
`get_query_indexes`, `create_query_index`, and `delete_query_index` respectively. These changes
were made to clarify that the changed class and the changed methods were specific to query index
processing only.
- [BREAKING] Replace "session" and "url" feed constructor arguments with "source" which can be
either a client or a database object. Changes also made to the client `db_updates` method
signature and the database `changes` method signature.
- [BREAKING] Fixed `CloudantDatabase.share_database` to accept all valid permission roles. Changed
the method signature to accept roles as a list argument.
- [BREAKING] Removed credentials module from the API and moved it to the tests folder since the
functionality is outside of the scope of this library but is still be useful in unit/integration
tests.
- [IMPROVED] Changed the handling of queries using the keys argument to issue a http POST request
instead of a http GET request so that the request is no longer bound by any URL length limitation.
- [IMPROVED] Added support for Result/QueryResult data access via index value and added validation
logic to `Result.__getitem__()`.
- [IMPROVED] Updated feed functionality to process `_changes` and `_db_updates` with their supported
options. Also added an infinite feed option.
- [NEW] Handled HTTP status code `429 Too Many Requests` with blocking backoff and retries.
- [NEW] Added support for CouchDB Admin Party mode. This library can now be used with CouchDB
instances where everyone is Admin.
- [FIX] Fixed `Document.get_attachment` method to successfully create text and binary files based on
http response Content-Type. The method also returns text, binary, and json content based on http
response Content-Type.
- [FIX] Added validation to `Cloudant.bill`, `Cloudant.volume_usage`, and `Cloudant.requests_usage`
methods to ensure that a valid year/month combination or neither are used as arguments.
- [FIX] Fixed the handling of empty views in the DesignDocument.
- [FIX] The `CouchDatabase.create_document` method now handles documents and design documents
correctly. If the document created is a design document then the locally cached object will be a
DesignDocument otherwise it will be a Document.
- [CHANGE] Moved internal `Code` class, functions like `python_to_couch` and `type_or_none`, and
constants into a _common_util module.
- [CHANGE] Updated User-Agent header format to be `python-cloudant/<library version>/Python/<Python
version>/<OS name>/<OS architecture>`.
- [CHANGE] Completed the addition of unit tests that target a database server. Removed all mocked
unit tests.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.