TumblrDotCom
An unofficial Tumblr API client. Includes support for creating polls and retrieving poll results.
Install
pip install tumblrdotcom
Docs
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tumblrdotcom-0.3.3.tar.gz | 16.2 kB | Without provenance | Details for tumblrdotcom-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tumblrdotcom-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for tumblrdotcom-0.3.3-py3-none-any.whl |
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
|
Security for tumblrdotcom 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.