Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A Python client for the Gfycat API

Project description

A Python client for the Gfycat API.

PyPI version

Installation

pip install gfycat

Getting Started

from gfycat.client import GfycatClient

client = GfycatClient()

# Example request
client.upload_from_file('willsmith.gif')

Error Handling

  • GfycatClientError - General error handler, access message and status code via
from gfycat.error import GfycatClientError

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

GfycatClient Functions

Uploads

  • upload_from_url(url)
  • upload_from_file(filepath)

Query a GFY for URLs and more information

  • query_gfy(gfyname)

Check if a link has been already converted

  • check_link(link)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gfycat, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size gfycat-0.1.4.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page