{"id":28914047,"url":"https://github.com/grimpy/ispapi","last_synced_at":"2025-10-26T21:36:55.154Z","repository":{"id":45673697,"uuid":"195686773","full_name":"grimpy/ispapi","owner":"grimpy","description":"Bundle of client to talk to ISP APIs","archived":false,"fork":false,"pushed_at":"2023-01-28T08:53:27.000Z","size":25,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T21:35:57.442Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grimpy.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}},"created_at":"2019-07-07T18:58:29.000Z","updated_at":"2023-02-03T18:17:07.000Z","dependencies_parsed_at":"2023-02-15T15:16:26.236Z","dependency_job_id":null,"html_url":"https://github.com/grimpy/ispapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grimpy/ispapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimpy%2Fispapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimpy%2Fispapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimpy%2Fispapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimpy%2Fispapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grimpy","download_url":"https://codeload.github.com/grimpy/ispapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimpy%2Fispapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281178948,"owners_count":26456678,"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-10-26T02:00:06.575Z","response_time":61,"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":[],"created_at":"2025-06-21T21:30:23.593Z","updated_at":"2025-10-26T21:36:55.149Z","avatar_url":"https://github.com/grimpy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ispapi\nBundle of client to talk to ISP APIs\n\n## List of implemtend providers\n\n- TelecomEgypt\n- Vodafone Egypt\n- Lebara NL\n\n## Add your provider\n\nTo add a new provider create a file inside providers module and add the corresponding import to `providers/__init__.py`. The provider implements a subclass of `Provider` class.\n\n### Methods to be implemented in the provider\n\n```py\nclass MyProvider(Provider):\n    def __init__(self, param1, param2='default value'):\n        super().__init__(param1, param2)\n        # do something with the paramters\n\n    def _login(self):\n        \"\"\"Do the login procedure and return session info\"\"\"\n        return NotImplemented\n\n    def login_from_session_data(self, session_data):\n        \"\"\"Do the login procedure from the cached session info\"\"\"\n        return NotImplemented\n\n    def _get_quota(self):\n        \"\"\"Get quota\"\"\"\n        raise NotImplementedError()\n```\n\n`_get_quota` is the only method that is required to be implemented. `_login` and `login_from_session_data` are optional.\n\n`_login` tries to login, it optionally returns `session_data` to be stored and used later for login.\n`login_from_session_data` will be tried first with the last stored `session_data` before trying to use `_login` again.\n\n### Formatting for the provider\n\n1. Class name will be used as the subcommand, so it is better to use something that will be unique, for example, adding the country name/code to the class name.\n2. Arguments are converted to lower case and underscores are replaced to a dash and they are used as command line arguments. So it is better to use snake case in command line arguments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimpy%2Fispapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrimpy%2Fispapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimpy%2Fispapi/lists"}