{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"},{"label":"Application","url":"https://skillfed.io/packages/category/internet-www-http-wsgi-application"}],"enrichment":{"capability":"Cornice provides decorators and utilities to build REST web services on top of Pyramid, with built-in support for request validation, error handling, and API documentation.","skillfed_tags":["rest-api","pyramid-extension","web-framework"],"use_cases":["Build REST APIs with Pyramid using declarative service decorators instead of manual routing configuration.","Add automatic request validation and error handling to Pyramid endpoints without custom middleware.","Generate API documentation from service definitions and docstrings for client developers.","Define content-negotiated endpoints that serve different response formats based on client Accept headers.","Implement standardized HTTP error responses and status codes across multiple service endpoints."],"what_it_does":"Cornice is a set of helpers built on top of Pyramid that simplifies defining REST web services. It provides decorators to attach HTTP methods to service endpoints, built-in validation and error handling, and tools to generate API documentation. The package is designed for developers who want to build web services within the Pyramid framework without writing boilerplate routing and validation code.\n\nTypically used by adding service definitions with decorators that specify HTTP methods, paths, and request/response schemas. Cornice handles the routing integration with Pyramid and provides utilities for common REST patterns like content negotiation and error responses. It depends only on Pyramid as a runtime dependency, making it lightweight to add to an existing Pyramid project.","worth_installing":"Yes, if you are building REST services with Pyramid. Cornice is actively maintained, has no known vulnerabilities, and significantly reduces boilerplate for service definition and validation. The copyleft license is a consideration only if you plan proprietary use. Low install friction and a single dependency make it a practical addition to Pyramid projects."},"id":"cornice","links":{"html":"https://skillfed.io/packages/cornice","md":"https://skillfed.io/packages/cornice.md","pypi":"https://pypi.org/project/cornice/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-02-08","license_spdx":null,"license_treatment":"copyleft","name":"cornice","python_support":"unspecified","summary":"Define Web Services in Pyramid."},"popularity":{"monthly_downloads":142721,"position":11202,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.1.0"}
