{"id":24603892,"url":"https://github.com/lemoncheesecake/lemoncheesecake-requests","last_synced_at":"2025-08-10T13:10:39.057Z","repository":{"id":62575594,"uuid":"401065491","full_name":"lemoncheesecake/lemoncheesecake-requests","owner":"lemoncheesecake","description":"lemoncheesecake logging for requests","archived":false,"fork":false,"pushed_at":"2023-11-19T17:50:05.000Z","size":341,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-11T02:07:17.884Z","etag":null,"topics":["end-to-end-testing","lemoncheesecake","qa","requests","testing"],"latest_commit_sha":null,"homepage":"https://lemoncheesecake-requests.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemoncheesecake.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2021-08-29T14:41:43.000Z","updated_at":"2021-11-24T20:58:12.000Z","dependencies_parsed_at":"2025-05-01T14:42:34.535Z","dependency_job_id":"232f7d38-3b90-439e-a354-5243b7e5b9a4","html_url":"https://github.com/lemoncheesecake/lemoncheesecake-requests","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lemoncheesecake/lemoncheesecake-requests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemoncheesecake%2Flemoncheesecake-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemoncheesecake%2Flemoncheesecake-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemoncheesecake%2Flemoncheesecake-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemoncheesecake%2Flemoncheesecake-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemoncheesecake","download_url":"https://codeload.github.com/lemoncheesecake/lemoncheesecake-requests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemoncheesecake%2Flemoncheesecake-requests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269728524,"owners_count":24465667,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["end-to-end-testing","lemoncheesecake","qa","requests","testing"],"created_at":"2025-01-24T15:16:28.466Z","updated_at":"2025-08-10T13:10:39.026Z","avatar_url":"https://github.com/lemoncheesecake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"lemoncheesecake-requests\n========================\n\n.. image:: https://github.com/lemoncheesecake/lemoncheesecake-requests/actions/workflows/tests.yml/badge.svg\n    :target: https://github.com/lemoncheesecake/lemoncheesecake-requests/actions/workflows/tests.yml\n\n.. image:: https://codecov.io/gh/lemoncheesecake/lemoncheesecake-requests/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/lemoncheesecake/lemoncheesecake-requests\n\n.. image:: https://img.shields.io/pypi/v/lemoncheesecake-requests.svg\n    :target: https://pypi.org/project/lemoncheesecake-requests/\n\n.. image:: https://img.shields.io/pypi/pyversions/lemoncheesecake-requests.svg\n    :target: https://pypi.org/project/lemoncheesecake-requests/\n\nlemoncheesecake-requests provides logging facilities to `requests \u003chttps://docs.python-requests.org/\u003e`_ for\ntests written with the `lemoncheesecake \u003chttp://lemoncheesecake.io\u003e`_ test framework.\n\nIn this example, we implement a very basic test on a Github API endpoint:\n\n.. code-block:: python\n\n   # suites/github.py\n\n   import lemoncheesecake.api as lcc\n   from lemoncheesecake.matching import *\n   from lemoncheesecake_requests import Session, is_2xx\n\n   @lcc.test()\n   def get_org():\n       session = Session(base_url=\"https://api.github.com\")\n\n       resp = session.get(\"/orgs/lemoncheesecake\"). \\\n           require_status_code(is_2xx()). \\\n           check_json({\n                \"id\": is_integer(),\n                \"name\": equal_to(\"lemoncheesecake\")\n           })\n\n\nWe run the test:\n\n.. code-block:: console\n\n   $ lcc run\n   =================================== github ====================================\n    OK  1 # github.get_org\n\n   Statistics :\n    * Duration: 0.214s\n    * Tests: 1\n    * Successes: 1 (100%)\n    * Failures: 0\n\nAnd here is the report details :\n\n.. image:: https://github.com/lemoncheesecake/lemoncheesecake-requests/blob/master/doc/_static/report-sample.png?raw=true\n    :alt: test result\n\nInstallation\n------------\n\nInstall through pip:\n\n.. code-block:: console\n\n   $ pip install lemoncheesecake-requests\n\nlemoncheesecake-requests is compatible with Python 3.7-3.10.\n\nFeatures\n--------\n\n- request/response data logging into lemoncheesecake\n\n- response status code checking using lemoncheesecake matching mechanism\n\nDocumentation\n-------------\n\nThe documentation is available on https://lemoncheesecake-requests.readthedocs.io.\n\n\nContact\n-------\n\nBug reports and improvement ideas are welcomed in tickets.\nA Google Groups forum is also available for discussions about lemoncheesecake:\nhttps://groups.google.com/forum/#!forum/lemoncheesecake.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemoncheesecake%2Flemoncheesecake-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemoncheesecake%2Flemoncheesecake-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemoncheesecake%2Flemoncheesecake-requests/lists"}