ckanapi | command line interface and Python module | REST library

 by   ckan Python Version: 4.8 License: Non-SPDX

kandi X-RAY | ckanapi Summary

kandi X-RAY | ckanapi Summary

ckanapi is a Python library typically used in Web Services, REST applications. ckanapi has no vulnerabilities, it has build file available and it has low support. However ckanapi has 2 bugs and it has a Non-SPDX License. You can install using 'pip install ckanapi' or download it from GitHub, PyPI.

A command line interface and Python module for accessing the CKAN Action API. tested under Python 2.7, 3.6 and pypy.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ckanapi has a low active ecosystem.
              It has 145 star(s) with 71 fork(s). There are 15 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 30 open issues and 82 have been closed. On average issues are closed in 231 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ckanapi is 4.8

            kandi-Quality Quality

              OutlinedDot
              ckanapi has 2 bugs (2 blocker, 0 critical, 0 major, 0 minor) and 47 code smells.

            kandi-Security Security

              ckanapi has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ckanapi code analysis shows 0 unresolved vulnerabilities.
              There are 12 security hotspots that need review.

            kandi-License License

              ckanapi has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              ckanapi releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              ckanapi saves you 1302 person hours of effort in developing the same functionality from scratch.
              It has 3114 lines of code, 183 functions and 32 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ckanapi and discovered the below as its top functions. This is intended to give you an instant insight into ckanapi implemented functionality, and help decide if they suit your requirements.
            • Calls a CKAN API action
            • Create a temporary file from f
            • Close the session
            • Calls remote CKAN API
            • Reverse API response
            • Prepare an action
            • Wrapper around requests post
            • Ckan API
            • Main entry point
            • Execute a ckan action
            • Computes the compact JSON representation of r
            Get all kandi verified functions for this library.

            ckanapi Key Features

            No Key Features are available at this moment for ckanapi.

            ckanapi Examples and Code Snippets

            No Code Snippets are available at this moment for ckanapi.

            Community Discussions

            QUESTION

            Uploading a PDF file to a CKAN Dataset as a resource fails with "{file} is not json serializable"
            Asked 2020-Sep-25 at 17:09

            My simple python script to create a dataset and to that dataset add a single PDF file as a resource is failing with "{file} is not json serializable".

            ...

            ANSWER

            Answered 2020-Sep-25 at 17:09

            I copied your code and ran a modified version against a local dev copy of CKAN and had it work without issue AFTER my mods which are included below.

            Most notably:

            • payload_r -> All that extra stuff isn't needed but you can include other resource metadata such as description, name, etc if desired just
            • req_r -> 1) pass the payload here as data instead of json as it's multipart-form-data. 2) send the file here with the files param.

            Docs: https://docs.ckan.org/en/2.9/maintaining/filestore.html#filestore-api

            IMO this is less of a CKAN issue and more of an understanding of the library chosen (i.e. requests). there are many ways to do this with different tools.

            I also had to update the payloads to align with my schema but assuming that's correct for yours this should work.

            Source https://stackoverflow.com/questions/64066387

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ckanapi

            You can install using 'pip install ckanapi' or download it from GitHub, PyPI.
            You can use ckanapi like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install ckanapi

          • CLONE
          • HTTPS

            https://github.com/ckan/ckanapi.git

          • CLI

            gh repo clone ckan/ckanapi

          • sshUrl

            git@github.com:ckan/ckanapi.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link