apiclient-gonzalo123


Nameapiclient-gonzalo123 JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/gonzalo123/apiclient
Summaryapiclient
upload_time2023-08-07 08:05:15
maintainer
docs_urlNone
authorGonzalo Ayuso
requires_python>=3.5
licenseMIT
keywords apiclient
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Custom apiclient

[dbutils](https://github.com/gonzalo123/apiclient)

## Install

```commandline
pip install apiclient-gonzalo123
```

## Usage

Init client
```python
from apiclient import ApiClient

client = ApiClient(token='my_secret token', base='http://localhost:8000')
```

GET Request
```python
data = client.get('/api/route', dict(param1='value1'))
```

POST Request (with parameters in the url)
```pythonº
data = client.post('/api/route', params=dict(param1='value1'))
```

POST Request (with parameters in the request body)
```python
data = client.post('/api/route', body=dict(param1='value1'))
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gonzalo123/apiclient",
    "name": "apiclient-gonzalo123",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "apiclient",
    "author": "Gonzalo Ayuso",
    "author_email": "gonzalo123@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0e/86/23c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6/apiclient-gonzalo123-1.0.2.tar.gz",
    "platform": null,
    "description": "# Custom apiclient\n\n[dbutils](https://github.com/gonzalo123/apiclient)\n\n## Install\n\n```commandline\npip install apiclient-gonzalo123\n```\n\n## Usage\n\nInit client\n```python\nfrom apiclient import ApiClient\n\nclient = ApiClient(token='my_secret token', base='http://localhost:8000')\n```\n\nGET Request\n```python\ndata = client.get('/api/route', dict(param1='value1'))\n```\n\nPOST Request (with parameters in the url)\n```python\u00ba\ndata = client.post('/api/route', params=dict(param1='value1'))\n```\n\nPOST Request (with parameters in the request body)\n```python\ndata = client.post('/api/route', body=dict(param1='value1'))\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "apiclient",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/gonzalo123/apiclient"
    },
    "split_keywords": [
        "apiclient"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25f3ec35b44f36a3717e5ca73a1a21a6a25eaaa717cb185cbd98aea0be82c99d",
                "md5": "a2eaab3a49699cb2f9c70f85e4f02b3f",
                "sha256": "7ceeffe177a5b8502dbd1ff159da66adff11650056a9eaaac0fa66a1d9a50503"
            },
            "downloads": -1,
            "filename": "apiclient_gonzalo123-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a2eaab3a49699cb2f9c70f85e4f02b3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 2375,
            "upload_time": "2023-08-07T08:05:14",
            "upload_time_iso_8601": "2023-08-07T08:05:14.068796Z",
            "url": "https://files.pythonhosted.org/packages/25/f3/ec35b44f36a3717e5ca73a1a21a6a25eaaa717cb185cbd98aea0be82c99d/apiclient_gonzalo123-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e8623c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6",
                "md5": "aa2f8f7f1a671e8c4ef45ff6ded484b6",
                "sha256": "87c46d2c4400a0f8067b12cdb0e7a34b7cd1613af5c673817d49b6c69f1bbfff"
            },
            "downloads": -1,
            "filename": "apiclient-gonzalo123-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "aa2f8f7f1a671e8c4ef45ff6ded484b6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 2115,
            "upload_time": "2023-08-07T08:05:15",
            "upload_time_iso_8601": "2023-08-07T08:05:15.718226Z",
            "url": "https://files.pythonhosted.org/packages/0e/86/23c49cada197db50684f340a03685db900db53f33cc236343034196f1ad6/apiclient-gonzalo123-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-07 08:05:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gonzalo123",
    "github_project": "apiclient",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "apiclient-gonzalo123"
}
        
Elapsed time: 0.11727s