redgifs


Nameredgifs JSON
Version 1.9.2 PyPI version JSON
download
home_pageNone
SummaryAsync and Sync Python Wrapper for the RedGIFs API.
upload_time2024-04-03 13:37:01
maintainerNone
docs_urlNone
authorscrazzz
requires_python>=3.8
licenseThe MIT License (MIT) Copyright (c) 2022-present scrazzz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords redgifs api python cli async sync aiohttp requests
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> <code>redgifs</code> </h1>

<div align="center">
    <a href="https://pypi.org/project/redgifs">
        <img src="https://img.shields.io/pypi/v/redgifs.svg" alt="pypi">
    </a>
    <a href="https://github.com/scrazzz/redgifs/actions/workflows/test.yml">
        <img src="https://github.com/scrazzz/redgifs/actions/workflows/test.yml/badge.svg" alt="pytest">
    </a>
</div>

<p align="center"> Async and Sync Python Wrapper for the RedGIFs API. </p>

-----

> ⭐ _Please star this repo to support the developer and to encourage the development of this project!_

-----

### Installation
```
pip install -U redgifs
```

#### Development version
```
pip install -U git+https://github.com/scrazzz/redgifs
```

`redgifs` works on Python versions 3.8 and above.

-----

### Quickstart
Command Line usage:
```console
redgifs [url]
```
See `redgifs -h` for help.

Synchronous usage:
```py
import redgifs

api = redgifs.API()
api.login() # Login with temporary token
response = api.search('3D')
print(response)
api.close()
```

Asynchronous usage:
```py
import asyncio
from redgifs.aio import API

async def main():
    api = API()
    await api.login() # Login with temporary token
    response = await api.search('3D')
    print(response)
    await api.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

More examples can be found in the examples directory.

-----

### Links
- [Documentation](https://redgifs.readthedocs.io)
- [Discord](https://discord.gg/yNsUTuXvzn)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "redgifs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "redgifs, api, python, cli, async, sync, aiohttp, requests",
    "author": "scrazzz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3e/0b/ac5956cc51e77e77543d0b7e4628ee037d11c0eb8384fbabebe1a81f01b8/redgifs-1.9.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> <code>redgifs</code> </h1>\n\n<div align=\"center\">\n    <a href=\"https://pypi.org/project/redgifs\">\n        <img src=\"https://img.shields.io/pypi/v/redgifs.svg\" alt=\"pypi\">\n    </a>\n    <a href=\"https://github.com/scrazzz/redgifs/actions/workflows/test.yml\">\n        <img src=\"https://github.com/scrazzz/redgifs/actions/workflows/test.yml/badge.svg\" alt=\"pytest\">\n    </a>\n</div>\n\n<p align=\"center\"> Async and Sync Python Wrapper for the RedGIFs API. </p>\n\n-----\n\n> \u2b50 _Please star this repo to support the developer and to encourage the development of this project!_\n\n-----\n\n### Installation\n```\npip install -U redgifs\n```\n\n#### Development version\n```\npip install -U git+https://github.com/scrazzz/redgifs\n```\n\n`redgifs` works on Python versions 3.8 and above.\n\n-----\n\n### Quickstart\nCommand Line usage:\n```console\nredgifs [url]\n```\nSee `redgifs -h` for help.\n\nSynchronous usage:\n```py\nimport redgifs\n\napi = redgifs.API()\napi.login() # Login with temporary token\nresponse = api.search('3D')\nprint(response)\napi.close()\n```\n\nAsynchronous usage:\n```py\nimport asyncio\nfrom redgifs.aio import API\n\nasync def main():\n    api = API()\n    await api.login() # Login with temporary token\n    response = await api.search('3D')\n    print(response)\n    await api.close()\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n```\n\nMore examples can be found in the examples directory.\n\n-----\n\n### Links\n- [Documentation](https://redgifs.readthedocs.io)\n- [Discord](https://discord.gg/yNsUTuXvzn)\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2022-present scrazzz  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Async and Sync Python Wrapper for the RedGIFs API.",
    "version": "1.9.2",
    "project_urls": {
        "Changelogs": "https://redgifs.rtfd.io/en/stable/changelogs.html",
        "Documentation": "https://redgifs.rtfd.io/en/stable/",
        "Issues": "https://github.com/scrazzz/redgifs/issues",
        "Repository": "https://github.com/scrazzz/redgifs"
    },
    "split_keywords": [
        "redgifs",
        " api",
        " python",
        " cli",
        " async",
        " sync",
        " aiohttp",
        " requests"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "363821db7b3555a67fae70ca9e1281df44e954acf31734d6626305ae7a46d61d",
                "md5": "18d9501646a68f7e0a23ebff50330b21",
                "sha256": "b4bc15b28f3effae0e7a76ddaf71aa7cfa385fb79bf62edbd3ce075e23eb94ef"
            },
            "downloads": -1,
            "filename": "redgifs-1.9.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "18d9501646a68f7e0a23ebff50330b21",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 117987,
            "upload_time": "2024-04-03T13:36:59",
            "upload_time_iso_8601": "2024-04-03T13:36:59.478243Z",
            "url": "https://files.pythonhosted.org/packages/36/38/21db7b3555a67fae70ca9e1281df44e954acf31734d6626305ae7a46d61d/redgifs-1.9.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e0bac5956cc51e77e77543d0b7e4628ee037d11c0eb8384fbabebe1a81f01b8",
                "md5": "ba36f299c0072f405f50b3cd53249e42",
                "sha256": "5e982121eb11f037300e78ed8316951584d8f452741fa8dc52b13de5f7655b35"
            },
            "downloads": -1,
            "filename": "redgifs-1.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ba36f299c0072f405f50b3cd53249e42",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 105035,
            "upload_time": "2024-04-03T13:37:01",
            "upload_time_iso_8601": "2024-04-03T13:37:01.160108Z",
            "url": "https://files.pythonhosted.org/packages/3e/0b/ac5956cc51e77e77543d0b7e4628ee037d11c0eb8384fbabebe1a81f01b8/redgifs-1.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-03 13:37:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "scrazzz",
    "github_project": "redgifs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "redgifs"
}
        
Elapsed time: 0.20935s