{"id":16060589,"url":"https://github.com/akx/lepo","last_synced_at":"2025-03-16T07:32:36.400Z","repository":{"id":20908325,"uuid":"91069214","full_name":"akx/lepo","owner":"akx","description":"Contract-first REST APIs in Django","archived":false,"fork":false,"pushed_at":"2025-01-11T15:49:27.000Z","size":2666,"stargazers_count":13,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T16:42:11.476Z","etag":null,"topics":["api","django","openapi","rest","swagger"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-12T08:28:49.000Z","updated_at":"2024-02-27T08:16:52.000Z","dependencies_parsed_at":"2024-05-06T19:39:02.764Z","dependency_job_id":null,"html_url":"https://github.com/akx/lepo","commit_stats":{"total_commits":150,"total_committers":4,"mean_commits":37.5,"dds":"0.040000000000000036","last_synced_commit":"e78344d96d763cfa8d89521e29808e5e0fdcb13a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akx%2Flepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akx%2Flepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akx%2Flepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akx%2Flepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akx","download_url":"https://codeload.github.com/akx/lepo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806070,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","django","openapi","rest","swagger"],"created_at":"2024-10-09T04:05:28.227Z","updated_at":"2025-03-16T07:32:35.902Z","avatar_url":"https://github.com/akx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lepo – Contract-first REST APIs in Django\n\n[![Build Status](https://travis-ci.org/akx/lepo.svg?branch=master)](https://travis-ci.org/akx/lepo) [![Codecov](https://img.shields.io/codecov/c/github/akx/lepo.svg)]()\n\nLepo is a *contract-first* API framework that enables you to design your API using the [OpenAPI specification](https://github.com/OAI/OpenAPI-Specification) (formerly known as Swagger) and implement it in Python 3 and [Django](https://www.djangoproject.com/).\n\nWhat does it mean when we say *contract-first*? Contrast this to *code-first*:\n\n* **Code-first**: First write the implementation of your API endpoints. Interactive API documentation is generated from docstrings and other meta-data embedded in the implementation. The [Django REST Framework](http://www.django-rest-framework.org/) is a popular example of a framework that promotes code-first style.\n* **Contract-first** (or **API first**): Write the *contract* of your API first in machine-readable documentation describing the available endpoints and their input and output. API calls are mapped into view functions using meta-data embedded in this machine-readable documentation. Other examples of contract-first frameworks include [connexion](https://github.com/zalando/connexion) (using [Flask](https://github.com/pallets/flask)) and [Apigee 127](https://github.com/apigee-127/swagger-tools) (using Node.js and Express).\n\n## Features\n\n* Automatic routing of requests to endpoints\n* Body and query parameter validation\n* Output validation (soon!)\n* Embedded Swagger UI\n\n## Documentation\n\nPlease see the [docs](./docs) folder for more extensive documentation.\n\n## Why is it called *lepo*?\n\n*Lepo* is Finnish for *rest*.\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2017 Aarni Koskela, Santtu Pajukanta\n    Copyright (c) 2018, 2020 Aarni Koskela\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakx%2Flepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakx%2Flepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakx%2Flepo/lists"}