{"id":18724345,"url":"https://github.com/mock-server/mockserver-client-python","last_synced_at":"2025-04-12T15:31:50.669Z","repository":{"id":67434214,"uuid":"153848086","full_name":"mock-server/mockserver-client-python","owner":"mock-server","description":"A Python client for MockServer project. This client is code generated using the MockServer OpenAPI v3 specification.","archived":false,"fork":false,"pushed_at":"2018-10-19T23:41:09.000Z","size":44,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T12:08:03.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mock-server.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-10-19T22:24:25.000Z","updated_at":"2024-07-10T05:46:38.477Z","dependencies_parsed_at":"2023-06-11T01:30:15.209Z","dependency_job_id":null,"html_url":"https://github.com/mock-server/mockserver-client-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mock-server%2Fmockserver-client-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mock-server%2Fmockserver-client-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mock-server%2Fmockserver-client-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mock-server%2Fmockserver-client-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mock-server","download_url":"https://codeload.github.com/mock-server/mockserver-client-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589672,"owners_count":21129662,"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":[],"created_at":"2024-11-07T14:06:10.106Z","updated_at":"2025-04-12T15:31:50.128Z","avatar_url":"https://github.com/mock-server.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mockserver-client\nMockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below).  MockServer Proxy is a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).  Both MockServer and the MockServer Proxy record all received requests so that it is possible to verify exactly what requests have been sent by the system under test.\n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 5.3.0\n- Package version: 5.3.0\n- Build package: org.openapitools.codegen.languages.PythonClientCodegen\n\n## Requirements.\n\nPython 2.7 and 3.4+\n\n## Installation \u0026 Usage\n### pip install\n\nIf the python package is hosted on Github, you can install directly from Github\n\n```sh\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\n\nThen import the package:\n```python\nimport mockserver \n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport mockserver\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nfrom __future__ import print_function\nimport time\nimport mockserver\nfrom mockserver.rest import ApiException\nfrom pprint import pprint\n\n# create an instance of the API class\napi_instance = mockserver.ControlApi(mockserver.ApiClient(configuration))\nports = mockserver.Ports() # Ports | list of ports to bind to, where 0 indicates dynamically bind to any available port\n\ntry:\n    # bind additional listening ports\n    api_response = api_instance.bind_put(ports)\n    pprint(api_response)\nexcept ApiException as e:\n    print(\"Exception when calling ControlApi-\u003ebind_put: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://localhost:1080*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*ControlApi* | [**bind_put**](docs/ControlApi.md#bind_put) | **PUT** /bind | bind additional listening ports\n*ControlApi* | [**clear_put**](docs/ControlApi.md#clear_put) | **PUT** /clear | clears expectations and recorded requests that match the request matcher\n*ControlApi* | [**reset_put**](docs/ControlApi.md#reset_put) | **PUT** /reset | clears all expectations and recorded requests\n*ControlApi* | [**retrieve_put**](docs/ControlApi.md#retrieve_put) | **PUT** /retrieve | retrieve recorded requests, active expectations, recorded expectations or log messages\n*ControlApi* | [**status_put**](docs/ControlApi.md#status_put) | **PUT** /status | return listening ports\n*ControlApi* | [**stop_put**](docs/ControlApi.md#stop_put) | **PUT** /stop | stop running process\n*ExpectationApi* | [**expectation_put**](docs/ExpectationApi.md#expectation_put) | **PUT** /expectation | create expectation\n*VerifyApi* | [**verify_put**](docs/VerifyApi.md#verify_put) | **PUT** /verify | verify a request has been received a specific number of times\n*VerifyApi* | [**verify_sequence_put**](docs/VerifyApi.md#verify_sequence_put) | **PUT** /verifySequence | verify a sequence of request has been received in the specific order\n\n\n## Documentation For Models\n\n - [Body](docs/Body.md)\n - [BodyWithContentType](docs/BodyWithContentType.md)\n - [ConnectionOptions](docs/ConnectionOptions.md)\n - [Delay](docs/Delay.md)\n - [Expectation](docs/Expectation.md)\n - [Expectations](docs/Expectations.md)\n - [HttpClassCallback](docs/HttpClassCallback.md)\n - [HttpError](docs/HttpError.md)\n - [HttpForward](docs/HttpForward.md)\n - [HttpObjectCallback](docs/HttpObjectCallback.md)\n - [HttpOverrideForwardedRequest](docs/HttpOverrideForwardedRequest.md)\n - [HttpRequest](docs/HttpRequest.md)\n - [HttpResponse](docs/HttpResponse.md)\n - [HttpTemplate](docs/HttpTemplate.md)\n - [KeyToMultiValue](docs/KeyToMultiValue.md)\n - [KeyToValue](docs/KeyToValue.md)\n - [Ports](docs/Ports.md)\n - [TimeToLive](docs/TimeToLive.md)\n - [Times](docs/Times.md)\n - [Verification](docs/Verification.md)\n - [VerificationSequence](docs/VerificationSequence.md)\n - [VerificationTimes](docs/VerificationTimes.md)\n\n\n## Documentation For Authorization\n\n All endpoints do not require authorization.\n\n\n## Author\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmock-server%2Fmockserver-client-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmock-server%2Fmockserver-client-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmock-server%2Fmockserver-client-python/lists"}