Skip to main content

python-gyazo

PyPI version PyPI Python versions CI Status Documentation Status

A Python wrapper for Gyazo API.

The full-documentation is available on Read the Docs.

Requirements

  • Python 3.5+

Installation

pip install python-gyazo

Note: Please use the latest version of setuptools & pip

pip install -U setuptools pip

Usage

At first, you must create an application and get an access token from https://gyazo.com/oauth/applications

from gyazo import Api


client = Api(access_token='YOUR_ACCESS_TOKEN')

### Get a list of images
images = client.get_image_list()
for image in images:
    print(str(image))

### Using an image model
image = images[0]
print("Image ID: " + image.image_id)
print("URL: " + image.url)

### Download an image
if image.url:
    with open(image.filename, 'wb') as f:
        f.write(image.download())

### Upload an image
with open('sample.png', 'rb') as f:
    image = client.upload_image(f)
    print(image.to_json())

### Delete an image
client.delete_image('IMAGE_ID')

### oEmbed
image = images[0]
print(client.get_oembed(image.permalink_url))

Backup

gyazo-backup is moved to python-gyazo-backup.

License

MIT License. Please see LICENSE.

Metadata

Release files for python-gyazo 2.3.0

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

Source distribution (sdist)

Source distribution for python-gyazo 2.3.0
File Size Uploaded
python-gyazo-2.3.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-gyazo 2.3.0
File Interpreter ABI Platform
python_gyazo-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / python-gyazo-2.3.0.tar.gz

Download URL python-gyazo-2.3.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eaf94f9e2aac49b4340cc3d613d78510b9e7afc05b593a5bdf309738e0029638
BLAKE2b-256 checksum
How to use checksums
72519c5522b00f03e3e2262b63a8d89102ccae75efee67d8f8f9756519884e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / python_gyazo-2.3.0-py3-none-any.whl

Download URL python_gyazo-2.3.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81f7964ff8142532cc78920d077ee97f29e55a822fc9b8ed21cd1b623255f668
BLAKE2b-256 checksum
How to use checksums
93654b6d02acf5e5632ac9c0f483394e98fe5ec6767ffc0aaa0e97daa4eac602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.14.0

3 release files

0.12.0

3 release files

0.11.0

3 release files

0.10.1

3 release files

0.10.0

3 release files

0.9.0

3 release files

0.8.0

3 release files

0.7.1

3 release files

0.7.0

3 release files

0.6.2

3 release files

0.6.1

3 release files

0.6.0

3 release files

0.5.0

3 release files

0.4.0

4 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

3 release files

0.1.0

3 release files

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