Skip to main content

Async Gfycat

An async Python wrapper for the Gfycat API.

based on py-gfycat a sync wrapper (api endpoints of py-gfycat are outdated as of 0.2.2)

PyPi Package Version Supported Python versions

Installation

    pip install -U async-gfycat

Gfycat API Key

Go to https://developers.gfycat.com/signup/#/apiform and sign up for an API key if you don't already have one.

You need the Client ID and Client Secret to use for initializing the Python client.

Getting Started

    from async_gfycat.client import GfycatClient

    client = GfycatClient(clientid, secret)

    # Example request
    await client.upload_from_file('willsmith.gif', title='willsmith slap')

you can also use username and password authentication with

client = GfycatClient(clientid, secret, username, password)

Error Handling

  • GfycatClientError - General error handler, access message and status code and the response dict with
from gfycat.error import GfycatClientError
from pprint import pprint 

try
    ...
except GfycatClientError as e
    print(e.error_message)
    print(e.status_code)
    pprint(e.response_data)

GfycatClient Class Methods

Uploads

  • upload_from_url(url)
  • upload_from_file(filepath)

Warning: using check_upload() immediately after uploading a file may result in a NotFoundo response, in that case waiting a moment will fix the issue, this is an api issue not a client one

Query a GFY for URLs and more information

  • query_gfy(gfyname)

Check if an upload has been converted

  • check_upload(link)

all methods return coros and need to be awaited

Metadata

Release files for async-gfycat 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-gfycat 1.0.2
File Size Uploaded Provenance
async-gfycat-1.0.2.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for async-gfycat 1.0.2
File Interpreter ABI Platform
async_gfycat-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / async-gfycat-1.0.2.tar.gz

Download URL async-gfycat-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d09cfb8d03d3d9426a3ba058e4acf9386b557bb000f3c2f11f516aff9bed22f1
BLAKE2b-256 checksum
How to use checksums
8fbf28856e120f9c37c6b350481c23199e231d07029144a49fc2efe44ded3164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

Release files / async_gfycat-1.0.2-py3-none-any.whl

Download URL async_gfycat-1.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0e60aba2f1a14ba5c9525525ac49634497f7ed6d9f5019d925c6332016cfbc2
BLAKE2b-256 checksum
How to use checksums
22e0547bf37d376ef4ff7c4892cdb54d01708041cb1d1a5e09ec7f694d0a1f32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

Security for async-gfycat 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page