{"id":19677312,"url":"https://github.com/mawkee/requestshogger","last_synced_at":"2025-09-20T18:32:50.853Z","repository":{"id":40386683,"uuid":"233095752","full_name":"mawkee/requestshogger","owner":"mawkee","description":"Capture and present HTTP API requests for local development","archived":false,"fork":false,"pushed_at":"2023-06-21T21:17:38.000Z","size":1219,"stargazers_count":3,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T11:23:43.323Z","etag":null,"topics":["api","development","python"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/mawkee.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":"2020-01-10T17:18:39.000Z","updated_at":"2022-05-10T20:06:34.000Z","dependencies_parsed_at":"2024-11-11T17:37:09.422Z","dependency_job_id":"28e8b892-2606-4411-a4d4-326e0cbd1a5e","html_url":"https://github.com/mawkee/requestshogger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawkee%2Frequestshogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawkee%2Frequestshogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawkee%2Frequestshogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawkee%2Frequestshogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mawkee","download_url":"https://codeload.github.com/mawkee/requestshogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233682458,"owners_count":18713553,"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","development","python"],"created_at":"2024-11-11T17:33:26.781Z","updated_at":"2025-09-20T18:32:45.443Z","avatar_url":"https://github.com/mawkee.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requests Hogger\n\nCapture and present potentially any kind of HTTP API requests\n\n## Quickstart\n\n### Using docker/dockerhub\n\n```\ndocker run -p 8910:8910 mawkee/requestshogger\n```\n\n### Using local repository\n\n1. Download or clone this repository\n1. Run `pipenv install`\n1. Run `pipenv run python hogger/reqhogger.py`\n\n### Usage\n\nBy default, RequestsHogger binds to 127.0.0.1 and port 8910. Just submit any kind of request (GET, POST, PUT, DELETE, PATCH, you name it) to `http://127.0.0.1:8910/hog/` and they'll be automatically captured. To see the captured requests, check `http://127.0.0.1:8910/`.\n\nNote that this program is not meant to implement any security at all. It should NEVER be used on any kind of production environment, instead being used solely as a local development or testing tool.\n\n## Configurations\n\nThere are a few environment variables that can be used to change the behavior.\n\n- HOGGER_PERSIST\n    By default, RequestsHogger will not persist your requests on disk, instead using an in-memory database. This means that in a restart, all your data will be lost. Setting this environment variable to any value will inform RequestsHogger that you want your data to persist on a `hogger.json` file.\n    Usage: `HOGGER_PERSIST=1 pipenv run python hogger/reqhogger.py`\n- HOGGER_HOST and HOGGER_PORT\n    The host and port to bind to. By default, HOST binds to `127.0.0.1` and PORT binds to `8910`. Just change them as you see fit, if necessary\n    Usage: `HOGGER_PORT=8888 pipenv run python hogger/reqhogger.py`\n\n## Prerequisites\n\nIf you use `pipenv`, the `pipenv install` command will create your venv and install any packages you need. To install pipenv, follow the instructions on [Pipenv's GitHub Page](https://github.com/pypa/pipenv).\n\nIf you don't want to use pipenv, you can simply create a new virtual environment in any way you see fit (venv, virtualenvwrapper, etc) and install the packages `cherrypy` and `tinydb`. Those are the only tools necessary for running the project, and since we're only using the basic functions, it should work with any version of those projects.\n\n## Supported Python versions\n\nThis project was tested on Python 3.6, 3.7 and 3.8\n\n## Tests\n\n* Running unit tests:\n\n```sh\n$ pipenv run python -m unittest discover -v\n```\n\n* Running tests coverage:\n\n```sh\n$ coverage run -m unittest discover\n$ coverage report -m\n$ coverage erase\n```\n\n## Built With\n\n* Basic Interface implemented on top of [MDBootStrap](http://mdbootstrap.com)\n* Tabular data with [DataTables](http://datatables.net)\n\n## Contributing\n\nJust make sure you use the pre-commit hooks and follow the PEP8 specification. You probably want to install the basic tools as well (black, isort, flake8, etc). For that, just run `pipenv install --dev`.\n\n## Versioning\n\n_NOTE: This project is still **beta** -- versioning will start at 1.0 when ready_\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/mawkee/requestshogger/tags).\n\n## Authors\n\n* **Danilo Martins** - *Initial work* - [Mawkee](https://github.com/mawkee)\n* **Deepak Vashist** - *Test scaffolding and initial tests* - [Deepak](https://github.com/deepakvashist)\n* **Evandro Arruda** - *Dockerfile update to Debian 11 and app isolation* - [ecarruda](https://github.com/ecarruda)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* Heavily inspired by [MailHog](https://github.com/mailhog/MailHog/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawkee%2Frequestshogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmawkee%2Frequestshogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawkee%2Frequestshogger/lists"}