{"id":14990040,"url":"https://github.com/ozansz/fastrequest","last_synced_at":"2026-03-06T07:31:45.546Z","repository":{"id":57428699,"uuid":"147013098","full_name":"ozansz/fastrequest","owner":"ozansz","description":"A Python C extension module for fast HTTP requests with SSL/TLS support","archived":false,"fork":false,"pushed_at":"2020-03-19T14:28:18.000Z","size":74,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T11:45:37.367Z","etag":null,"topics":["c","extension","extensions","http","libcurl","python","python-c-api","python-c-extension","python3","requests","socket","socket-programming","unix-socket","winsock","winsock2"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozansz.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":"2018-09-01T16:08:59.000Z","updated_at":"2025-10-28T02:51:20.000Z","dependencies_parsed_at":"2022-09-02T17:23:08.623Z","dependency_job_id":null,"html_url":"https://github.com/ozansz/fastrequest","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ozansz/fastrequest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Ffastrequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Ffastrequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Ffastrequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Ffastrequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozansz","download_url":"https://codeload.github.com/ozansz/fastrequest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Ffastrequest/sbom","scorecard":{"id":716227,"data":{"date":"2025-08-18","repo":{"name":"github.com/ozansz/fastrequest","commit":"ef17e15a13506ce099bfe3e44a591a8d14e8b4d7"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.8,"checks":[{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: install.sh:6","Warn: pipCommand not pinned by hash: install.sh:12","Warn: pipCommand not pinned by hash: tests/benchmark.sh:10","Info:   0 out of   3 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T09:44:54.031Z","repository_id":57428699,"created_at":"2025-08-22T09:44:54.032Z","updated_at":"2025-08-22T09:44:54.032Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["c","extension","extensions","http","libcurl","python","python-c-api","python-c-extension","python3","requests","socket","socket-programming","unix-socket","winsock","winsock2"],"created_at":"2024-09-24T14:19:22.368Z","updated_at":"2026-03-06T07:31:45.413Z","avatar_url":"https://github.com/ozansz.png","language":"C","readme":"# fastrequest\n![GitHub](https://img.shields.io/github/license/ozansz/fastrequest)\n![PyPI](https://img.shields.io/pypi/v/fastrequest)\n![Requires.io](https://img.shields.io/requires/github/ozansz/fastrequest)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/fastrequest)\n![GitHub issues](https://img.shields.io/github/issues/ozansz/fastrequest)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ozansz/fastrequest)\n\nA Python C extension module for fast HTTP requests with SSL/TLS support\n\n## Installation\nTo build and install the extension, you just need to run the `install.sh` script. \nThe script then installs required packages, builds the extension using `setuptools` \nand then installs it using `pip`.\n\n```shell\nchmod +x install.sh\n./install.sh\n```\n\n## Example Usage\nJust import `fastrequest` module. It's usage is as easy as ABC!\n\n```python\nimport fastrequest.http\n\nres = fastrequest.http.get(\"https://www.google.com\")\nres.save_to(\"index.html\")\n```\n\nAlso, JSON (`application/json`) responses can be handled easily too.\n\n```python\nimport json\nimport fastrequest.http\n\nres = fastrequest.http.get(\"https://jsonplaceholder.typicode.com/comments?postId=1\")\n\nwith open(\"data.json\", \"w\") as fp:\n  json.dump(fp, res.json())\n ```\n\n## Module Reference\n\n### HTTPResponse\n\nHTTPResponse is the generic HTTP/HTTPS response object returned from the GET/POST functions.\n\nPythonic definition of HTTPResponse is as follows,\n\n```Python\nclass HTTPResponse(object):\n  def __init__(self, data, size, url=\"\"):\n    self.data = data\n    self.size = size\n    self.url = url\n\n  def text(self):\n    return self.data.decode()\n\n  def json(self):\n    return json.loads(self.text())\n```\n\n### http.get\n\n`http.get(url: str[, headers:dict]) -\u003e HTTPResponse`\n\nHTTP/GET request function using `libcurl` as backend.\n\n## API Reference\n\n### HTTPResponse\n\nHTTPResponse is the generic HTTP/HTTPS response object returned from the GET/POST functions.\n\nThe data structure of HTTPResponse object is as follows,\n\n```C\ntypedef struct {\n    PyObject_HEAD\n    PyObject *response_size;\n    PyObject *response_data;\n    PyObject *request_url;\n} HTTPResponseObject;\n```\n\nWhere\n* `response_size` is byte-size of the response body (PyLong)\n* `response_body` is the response body (PyBytes)\n* `request_url` is the requested URI (PyUnicode)\n\n### StringBuffer\n\nStringBuffer is the generic 'string' object implementation to be used in Fast Request API functions.\n\nThe data structure of StringBuffer object is as follows,\n\n```C\ntypedef struct {\n    char *buf;\n    int_fast64_t index;\n    int_fast64_t size;\n} StringBuffer;\n```\n\n### FastRequestAPI_LibcurlHttpGet\n\n`StringBuffer *FastRequestAPI_LibcurlHttpGet(char *url, PyObject *headers)`\n\nSend HTTP/GET request to machine with the `url` specified with optional custom `headers`. This function uses `libcurl` as the backend.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozansz%2Ffastrequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozansz%2Ffastrequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozansz%2Ffastrequest/lists"}