api-calls


Nameapi-calls JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryPackage to make api calls
upload_time2024-02-22 17:53:38
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords api calls json http api requests api calls
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # API_CALLS

-   This package makes it easy to make api calls in python by abstracing all the logic you'd otherwise use with other packages such as requests
-   This package requires requests 2.31.0 or later versions
-   Example usage below:

    ```

    from api_calls import ApiCalls


    class CatService(ApiCalls):
        base_url = "https://cat-fact.herokuapp.com"
        timeout = 500

        def get_random_cat_fact(self):
            response = self.make_request(
                "/facts/random", method="get", params={"amount": 5})
            return response


    data, error = CatService().get_random_cat_fact()

    ```

To install, run:
`pip install api_calls`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "api-calls",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "api,calls,json,http,api requests,api calls",
    "author": "",
    "author_email": "Abdulsalam Fawaz <abdulsalamfawaz4@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1e/31/9b2fdb01c70d4f190a75ecf24a964328d183936e6e3426206337987d19b8/api_calls-1.0.1.tar.gz",
    "platform": null,
    "description": "# API_CALLS\n\n-   This package makes it easy to make api calls in python by abstracing all the logic you'd otherwise use with other packages such as requests\n-   This package requires requests 2.31.0 or later versions\n-   Example usage below:\n\n    ```\n\n    from api_calls import ApiCalls\n\n\n    class CatService(ApiCalls):\n        base_url = \"https://cat-fact.herokuapp.com\"\n        timeout = 500\n\n        def get_random_cat_fact(self):\n            response = self.make_request(\n                \"/facts/random\", method=\"get\", params={\"amount\": 5})\n            return response\n\n\n    data, error = CatService().get_random_cat_fact()\n\n    ```\n\nTo install, run:\n`pip install api_calls`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Package to make api calls",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Fawaz441/api-calls"
    },
    "split_keywords": [
        "api",
        "calls",
        "json",
        "http",
        "api requests",
        "api calls"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b392f44ee61adb143b1cd3699808d1a93dd89754e6aa89997a6b49ae3c7d9d56",
                "md5": "ae368c44526384d0d73f215c0af8bd4f",
                "sha256": "ca6078b4e07091e4d35c563bf366bfcbb5a7f281e802c543554ac5d59a71e760"
            },
            "downloads": -1,
            "filename": "api_calls-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ae368c44526384d0d73f215c0af8bd4f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2977,
            "upload_time": "2024-02-22T17:53:36",
            "upload_time_iso_8601": "2024-02-22T17:53:36.900369Z",
            "url": "https://files.pythonhosted.org/packages/b3/92/f44ee61adb143b1cd3699808d1a93dd89754e6aa89997a6b49ae3c7d9d56/api_calls-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e319b2fdb01c70d4f190a75ecf24a964328d183936e6e3426206337987d19b8",
                "md5": "50dff676c0186fbd030f297f1c4633a2",
                "sha256": "d0b797d72ed213f883f71b7d39ed26ab2443a8b323371ce62e2d05037a8f2ebc"
            },
            "downloads": -1,
            "filename": "api_calls-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "50dff676c0186fbd030f297f1c4633a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2891,
            "upload_time": "2024-02-22T17:53:38",
            "upload_time_iso_8601": "2024-02-22T17:53:38.627956Z",
            "url": "https://files.pythonhosted.org/packages/1e/31/9b2fdb01c70d4f190a75ecf24a964328d183936e6e3426206337987d19b8/api_calls-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-22 17:53:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Fawaz441",
    "github_project": "api-calls",
    "github_not_found": true,
    "lcname": "api-calls"
}
        
Elapsed time: 0.19270s