Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

python-gyazo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-gyazo

A Python wrapper for Gyazo API

  • 2.3.0
  • PyPI
  • Socket score

Maintainers
1

python-gyazo

.. image:: https://badge.fury.io/py/python-gyazo.svg :target: https://pypi.python.org/pypi/python-gyazo/ :alt: PyPI version .. image:: https://img.shields.io/pypi/pyversions/python-gyazo.svg :target: https://pypi.python.org/pypi/python-gyazo/ :alt: PyPI Python versions .. image:: https://github.com/ymyzk/python-gyazo/workflows/CI/badge.svg :target: https://github.com/ymyzk/python-gyazo/actions?query=workflow%3ACI :alt: CI Status .. image:: https://readthedocs.org/projects/python-gyazo/badge/?version=latest :target: https://python-gyazo.readthedocs.io/ :alt: Documentation Status

A Python wrapper for Gyazo API_.

The full-documentation is available on Read the Docs_.

Requirements

  • Python 3.5+

Installation

.. code-block:: shell

pip install python-gyazo

Note: Please use the latest version of setuptools & pip

.. code-block:: shell

pip install -U setuptools pip

Usage

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

.. code-block:: python

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_.

.. _Read the Docs: https://python-gyazo.readthedocs.io/ .. _Gyazo API: https://gyazo.com/api?lang=ja .. _python-gyazo-backup: https://github.com/ymyzk/python-gyazo-backup .. _LICENSE: LICENSE

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc