Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/kvdomingo/pygfycat
- Owner: kvdomingo
- License: mit
- Created: 2022-08-30T16:06:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T18:15:39.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T06:20:26.526Z (9 days ago)
- Topics: api, client, gfycat, python
- Language: Python
- Homepage: https://kvdomingo.github.io/pygfycat/
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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={...}, ...)
```