{"id":28764955,"url":"https://github.com/klen/aio-apiclient","last_synced_at":"2026-02-16T11:02:02.527Z","repository":{"id":57408730,"uuid":"278361832","full_name":"klen/aio-apiclient","owner":"klen","description":"Simple Asyncio Client for any HTTP APIs","archived":false,"fork":false,"pushed_at":"2023-02-03T07:06:43.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-09-27T03:26:15.635Z","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/klen.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","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":"2020-07-09T12:42:52.000Z","updated_at":"2024-04-02T17:47:08.000Z","dependencies_parsed_at":"2023-02-18T04:15:40.034Z","dependency_job_id":null,"html_url":"https://github.com/klen/aio-apiclient","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/klen/aio-apiclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Faio-apiclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Faio-apiclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Faio-apiclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Faio-apiclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klen","download_url":"https://codeload.github.com/klen/aio-apiclient/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Faio-apiclient/sbom","scorecard":{"id":563307,"data":{"date":"2025-08-11","repo":{"name":"github.com/klen/aio-apiclient","commit":"486a80a0bd028786f148003b8aca4e3b35b1e2b4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/release.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/tests.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/tests.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/aio-apiclient/tests.yml/develop?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:34","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2023-120 / GHSA-45c4-8wx5-qw6w","Warn: Project is vulnerable to: GHSA-5m98-qgg9-wh84","Warn: Project is vulnerable to: GHSA-7gpw-8wmc-pm8g","Warn: Project is vulnerable to: GHSA-8495-4g3g-x7pr","Warn: Project is vulnerable to: PYSEC-2024-26 / GHSA-8qpw-xqxj-h4r2","Warn: Project is vulnerable to: GHSA-9548-qrrj-x5pj","Warn: Project is vulnerable to: PYSEC-2023-246 / GHSA-gfw2-4jvh-wgfg","Warn: Project is vulnerable to: GHSA-pjjw-qhg8-p2p9","Warn: Project is vulnerable to: PYSEC-2023-250 / GHSA-q3qx-c6g2-7pw2","Warn: Project is vulnerable to: PYSEC-2023-251 / GHSA-qvrw-v9rv-5rjx","Warn: Project is vulnerable to: PYSEC-2021-76 / GHSA-v6wp-4m6f-gcjg","Warn: Project is vulnerable to: PYSEC-2023-247 / GHSA-xx9p-xxvh-7g8j","Warn: Project is vulnerable to: PYSEC-2022-183 / GHSA-h8pj-cxx2-jfg2"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:16:17.563Z","repository_id":57408730,"created_at":"2025-08-20T14:16:17.563Z","updated_at":"2025-08-20T14:16:17.563Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-17T10:13:05.643Z","updated_at":"2026-02-16T11:02:02.522Z","avatar_url":"https://github.com/klen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"aio-apiclient\n#############\n\n.. _description:\n\naio-apiclient -- Async helper to work with HTTP APIs\n\n.. _badges:\n\n.. image:: https://github.com/klen/aio-apiclient/workflows/tests/badge.svg\n    :target: https://github.com/klen/aio-apiclient/actions\n    :alt: Tests Status\n\n.. image:: https://img.shields.io/pypi/v/aio-apiclient\n    :target: https://pypi.org/project/aio-apiclient/\n    :alt: PYPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/aio-apiclient\n    :target: https://pypi.org/project/aio-apiclient/\n    :alt: Python Versions\n\n.. _features:\n\nFeatures\n========\n\n- Convenient work with any HTTP API (especially with REST)\n- Supports `httpx` and `aiohttp` as backends to make requests\n- Very configurable and usable\n- An ability to parse responses automatically\n\n.. _contents:\n\n.. contents::\n\n.. _requirements:\n\nRequirements\n=============\n\n- python \u003e= 3.7\n\n.. _installation:\n\nInstallation\n=============\n\n**aio-apiclient** should be installed using pip: ::\n\n    pip install aio-apiclient\n\nPlease note that **aio-apiclient** requires any of supported http backends\n(aiohttp, httpx) to be installed in order for it to work.\n\nYou may optionally install the requirements with the library: ::\n\n    # For httpx\n    pip install aio-apiclient[httpx]\n\n    # For aiohttp\n    pip install aio-apiclient[aiohttp]\n\n\n.. _usage:\n\nQuickStart\n==========\n\nGithub API (https://developer.github.com/v4/):\n\n.. code:: python\n\n    from apiclient import APIClient\n\n    # First available backend (aiohttp, httpx) will be used\n    client = APIClient('https://api.github.com', headers={\n            'Authorization': 'token OAUTH-TOKEN'\n    })\n\n    # Read information about the current repository\n    repo = await client.api.repos.klen['aio-apiclient'].get()\n    print(repo)  # dict parsed from Github Response JSON\n\n\nSlack API (https://api.slack.com/web):\n\n.. code:: python\n\n    from apiclient import APIClient\n\n    client = APIClient('https://api.github.com', headers={\n        'Authorization': 'token OAUTH-TOKEN'\n    })\n\n    # Update current user status (we don't care about this response)\n    await client.api['users.profile.set'].post(json={\n        'profile': {\n            'status_text': 'working',\n            'status_emoji': ':computer:'\n            'status_expiration': 30,\n        }\n    }, read_response_body=False)\n\n\nAnd etc\n\nUsage\n=====\n\nInitialization\n--------------\n\nThe Client initialization requires root URL for a required API.\n\n.. code:: python\n\n    from apiclient import APIClient\n\n    client = APIClient(\n\n        # Root URL for any API (required)\n        'https://api.github.com',\n\n        # Raise `client.Error` for any response with status code \u003e 400\n        raise_for_status=True,\n\n        # Set to `False` if you only want to make a request and doesn't care about responses\n        read_response_body=True,\n\n        # Parse response's body content-type and return JSON/TEXT/Form data instead the response itself\n\n        # Set total timeout in seconds\n        timeout=10.0,\n\n        # Set backend type for making requests (apiclient.backends.BackendHTTPX,\n        # apiclient.backends.BackendAIOHTTP) by default first available would be\n        # choosen\n\n        backend_type=None,\n\n        # Default backend options to use with every request (headers, params, data, ...)\n        # ...\n\n    )\n\nApp Shutdown\n------------\n\nThe api client support graceful shutdown. Run `await client.shutdown()` when\nyou are finishing your app (not necessary).\n\n\nMiddlewares\n-----------\n\nYou are able to dinamically change request params (method, url, other backend params) using middlewares.\n\n.. code:: python\n\n    import time\n    from apiclient import APIClient\n\n    client = APIClient('https://api.github.com')\n\n    @client.middleware\n    async def insert_timestamp_header(method, url, options):\n        options.setdefault('headers', {})\n        options['headers']['X-Timestamp'] = str(time.time())\n        return method, url, options\n\n\n.. _bugtracker:\n\nBug tracker\n===========\n\nIf you have any suggestions, bug reports or\nannoyances please report them to the issue tracker\nat https://github.com/klen/aio-apiclient/issues\n\n.. _contributing:\n\nContributing\n============\n\nDevelopment of the project happens at: https://github.com/klen/aio-apiclient\n\n.. _license:\n\nLicense\n========\n\nLicensed under a `MIT license`_.\n\n\n.. _links:\n\n\n.. _klen: https://github.com/klen\n\n.. _MIT license: http://opensource.org/licenses/MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Faio-apiclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklen%2Faio-apiclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Faio-apiclient/lists"}