Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kvdomingo/pygfycat

Python Gfycat API (WIP)
https://github.com/kvdomingo/pygfycat

api client gfycat python

Last synced: 7 days ago
JSON representation

Python Gfycat API (WIP)

Awesome Lists containing this project

README

        

# gpycat
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gpycat?style=for-the-badge)
![GitHub](https://img.shields.io/github/license/kvdomingo/pygfycat?style=for-the-badge)
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/kvdomingo/pygfycat?include_prereleases&style=for-the-badge)

![](./coverage.svg)

This is a WIP unofficial Python wrapper for the Gfycat web API.

## Installation
```shell
# Using pip
pip install gpycat

# OR

# Using poetry
poetry add gpycat
```

## Usage

```python
from gpycat import gpycat

# Import your client ID/secret from environment variables

gpycat.auth(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)
item = gpycat.get_gfycat("zestycreepyasiaticlesserfreshwaterclam")
```

Output:
```shell
> GfyItem(title="...", description="...", avgColor="...", content_urls={...}, ...)
```