python_api
python_api copied to clipboard
Please see https://github.com/marklogic/marklogic-python-client for the official MarkLogic Python client.
added import of requests so that this actually run. perhaps there are other packaging methods you are using where this isn't an issue but I'm not aware of it. Also,...
Added minimal support for the v3 endpoint, supports generate and apply config calls
I have followed existing idioms for this patch - which are under discussion ... comes with tests.
I was testing our own code and found that the logger in [https://github.com/marklogic/python_api/blob/master/marklogic/connection.py#L230](https://github.com/marklogic/python_api/blob/master/marklogic/connection.py#L230) causes to freeze when the response is very large. Maybe have an option to use logging in...
``` ml = MarkLogic(conn) cluster = ml.cluster() cluster.set_cluster_name(cl_config['cluster']) cluster.update() ``` gives error ``` marklogic.exceptions.UnexpectedManagementAPIResponse: {"errorResponse":{"statusCode":"500", "status":"Internal Server Error", "messageCode":"XDMP-AS", "message":"XDMP-AS: (err:XPTY0004) $value as xs:string -- Invalid coercion: as xs:string"}} ```
When creating a database, and setting the forest names on the db object, the existing forests are not coupled to the database. ``` {"errorResponse":{"statusCode":"400", "status":"Bad Request", "messageCode":"MANAGE-CONFLICTINGCONFIG", "message":"MANAGE-CONFLICTINGCONFIG: (err:FOER0000) A...
At least Privilege and Permission are not JSON Serializable and throw errors when used; They cannot be used to .set_privileges or permissions need to be set via role.set_property_list('permissions', perms) even,...
Trying to couple clusters, I see this in the logs and nothing happens: ``` 2020-08-06 11:34:24,662 Status code: 404 2020-08-06 11:34:24,663 {"errorResponse":{"statusCode":"404", "status":"Not Found", "messageCode":"", "message":"URI /manage/v2/cluster_names does not exist."}}...
Is this project still maintained? Gradle didn't work for us, because it did destructive actions when only an update was necessary (so I was told). Then an attempt was made...
pip3 install marklogic_python_api does not work (still). read the 2017 comment about this but hey thought maybe by now thought it might work ... anyways getting ERROR: Could not find...