Skip to content

datastore_create can't upload a json records file #217

Description

@pauloneves

datastore_create() method accepts a records parameter with a list of dictionaries. It will be converted to json by the api..

All types in the dictionary must be jsonable. A datatime value in the dict will issue a validation error.

To fix it I must convert my pandas dataframe to json string, have it loaded back to a python dictionary and then pass it as a parameter to the method that will convert it again to json.

It is very inefficient, specially for large datasets.

I'd like to be able to directly pass a json string to the datastore_create() or datastore_upsert() to have it sent to CKAN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions