Skip to main content

TumblrDotCom

An unofficial Tumblr API client. Includes support for creating polls and retrieving poll results.

Install

pip install tumblrdotcom

Docs

https://tumblrdotcom.rtfd.io

Usage

Example

import os
from datetime import timedelta
from pprint import pprint

from tumblr import *

tumblr = Blog(
    blog="pizza",  # or 'pizza.tumblr.com'
    client_key=os.getenv("CONSUMER_KEY"),
    client_secret=os.getenv("CONSUMER_SECRET"),
    oauth_key=os.getenv("OAUTH_TOKEN"),
    oauth_secret=os.getenv("OAUTH_SECRET"),
)

response = tumblr.post(
    content=(
        Heading("Hello, World!"),
        Text("Oh boy! Isn't it great to have a tumblr!"),
        Row(
            Image(
                "clown_left.jpg",
                "image/jpeg",
                "A photo clown holding their right thumb up towards the camera"
            ),
            Image(
                "clown_right.jpg",
                "image/jpeg",
                "A photo clown holding their left thumb up towards the camera"
            ),
        ),
        Poll(
            "Don't you think so?",
            ["Yes", "No"],
            expire_after=timedelta(days=1),
        ),
    ),
    tags=["pizza", "I can't even remember why they were deleted"],
)

pprint(response)

Metadata

Release files for tumblrdotcom 0.3.3

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

Source distribution (sdist)

Source distribution for tumblrdotcom 0.3.3
File Size Uploaded
tumblrdotcom-0.3.3.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tumblrdotcom 0.3.3
File Interpreter ABI Platform
tumblrdotcom-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / tumblrdotcom-0.3.3.tar.gz

Download URL tumblrdotcom-0.3.3.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9ebeb998ab988a9443361db682500cdb745ccde435d1b874365d9e6e1eac18d0
BLAKE2b-256 checksum
How to use checksums
8ad95191f6f2c85c49f2864b72c44b6780764edec6c3094f7b88390552038cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / tumblrdotcom-0.3.3-py3-none-any.whl

Download URL tumblrdotcom-0.3.3-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
076465cf4487ce8efaaca54d47902e4a6abacf28a910ebdeaadc991c3b179fbd
BLAKE2b-256 checksum
How to use checksums
53246e76301e9f781b74491c11bb4b84cb1ce2f2521fb96391e5bb26a2417c68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 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