Skip to main content

Unofficial Python library for infogr.am API

Project description

infogram-python
======

Unofficial Python library for infogr.am API

Installation
------------

::

$ pip install infogram

Usage
-----

::

from infogram import Infogram

# Initialize connection with the api, providing api_key and api_secret
client = Infogram(api_key, api_secret)

client.themes_list()

client.infographics_create({
"content": [{"type":"h1","text":"Hello infogr.am"}],
"publish": False,
"theme_id": 45,
"title": "Hello",
})

API Methods
------------

Themes
-----

::

client.themes_list()

Infographics
-----

::

client.infographics_list()
client.infographics_get(infographic_id)
client.infographics_create(params)
client.infographics_update(infographic_id, params)
client.infographics_destroy(infographic_id)

Users
-----

::

client.users_get(user_id)
client.users_get_infographics(user_id)

Project details


Download files

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

Source Distribution

infogram-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file infogram-0.1.1.tar.gz.

File metadata

  • Download URL: infogram-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for infogram-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a557d3936d64838857903b904ccb726b9c1cae0cbec6405ff3c42645a36880e6
MD5 274155d13f479d45ae74e7e881c6854f
BLAKE2b-256 d94f02513eb6f26e09cc3a804dd93c412de1e0db98b26f9e75d75bbefa551905

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page