{"id":15593926,"url":"https://github.com/seven7ty/apico","last_synced_at":"2025-12-14T15:01:39.720Z","repository":{"id":57410853,"uuid":"335090873","full_name":"seven7ty/apico","owner":"seven7ty","description":"Monitor changes in REST APIs with a few lines of code 🎈","archived":false,"fork":false,"pushed_at":"2022-01-26T11:46:01.000Z","size":42,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T11:49:19.693Z","etag":null,"topics":["api","api-rest","http","https","python","python3","rest-api"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/apico","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/seven7ty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"wulf_"}},"created_at":"2021-02-01T21:37:07.000Z","updated_at":"2024-01-15T09:34:20.000Z","dependencies_parsed_at":"2022-09-05T14:32:18.297Z","dependency_job_id":null,"html_url":"https://github.com/seven7ty/apico","commit_stats":null,"previous_names":["paulnewcomer/apico","itsmewulf/apico","bwv2/apico","seven7ty/apico"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fapico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fapico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fapico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fapico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven7ty","download_url":"https://codeload.github.com/seven7ty/apico/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246170813,"owners_count":20734895,"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","api-rest","http","https","python","python3","rest-api"],"created_at":"2024-10-03T00:22:06.199Z","updated_at":"2025-12-14T15:01:39.365Z","avatar_url":"https://github.com/seven7ty.png","language":"Python","funding_links":["https://ko-fi.com/wulf_"],"categories":[],"sub_categories":[],"readme":"# apico [![Badge](https://img.shields.io/pypi/v/apico?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/apico/)  [![Badge 2](https://img.shields.io/pypi/dm/apico?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/apico/)\n*The easy way to monitor changes in RESTful APIs.*\n\n## Installation\n```\n$ pip install apico\n```\n## Example usage \n```py\nfrom apico import Monitor, Response\n\n\nmonitor = Monitor(url='https://api.github.com/users/itsmewulf', rate=10.0, headers={'Authorization': 'GITHUB_TOKEN'})\n\n@monitor.listener()\ndef on_change(old, new):\n    print('Something changed!')\n    \n@monitor.listener('no_change')\ndef nothing_changed():\n    print('Nothing changed!')\n    \n@monitor.listener()\ndef on_request():\n    print('This is called before every request.')\n    \n\nmonitor.start()\n```\n\n## Some reference\n### Events\nThe events supported by the `Monitor.listener` decorator are:\n- `change`\n- `request`\n- `no_change`  \n\nAs you can see in the example, listeners can be registered by passing the event name straight to the decorator (`monitor.listener('change')`) or inferred from the function name starting with `on_`:\n```py\n@monitor.listener()\ndef on_change(...):\n```\n### Monitor arguments\nThe monitor accepts a boatload of arguments, mainly ones that are then passed down to [`requests.Session.request()`](https://docs.python-requests.org/en/latest/api/#requests.Session.request), so, for a detailed insight follow the hyperlink or read the docstring.\n\n### Returns\nThe responses returned by apico are actually instances of [`requests.Response`](https://pypi.org/project/requests/)\n\n### Rate\nThe rate at which the Monitor sends requests is controlled via the `rate` parameter, which is either an integer, or a float - `33` is a request every 33 seconds, `0.5` is 2 requests every second.\n\n_________________\n## Reporting Issues\nIf you find any error/bug/mistake with the package or in the code feel free to create an issue and report\nit [here.](https://github.com/itsmewulf/apico/issues)\n\n## Fix/Edit Content\nIf you wish to contribute to this package, fork the repository, make your changes and then simply create a Pull Request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fapico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven7ty%2Fapico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fapico/lists"}