Name | tumblrdotcom JSON |
Version |
0.3.3
JSON |
| download |
home_page | None |
Summary | Tumblr API wrapper with support for Polls |
upload_time | 2025-09-12 08:51:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | None |
keywords |
tumblr
api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```python
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)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "tumblrdotcom",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "Tumblr, API",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/8a/d9/5191f6f2c85c49f2864b72c44b6780764edec6c3094f7b88390552038cd0/tumblrdotcom-0.3.3.tar.gz",
"platform": null,
"description": "# TumblrDotCom\n\nAn unofficial Tumblr API client.\nIncludes support for creating polls and retrieving poll results.\n\n## Install\n\n```\npip install tumblrdotcom\n```\n\n## Docs\n\nhttps://tumblrdotcom.rtfd.io\n\n## Usage\n\n### Example\n\n```python\nimport os\nfrom datetime import timedelta\nfrom pprint import pprint\n\nfrom tumblr import *\n\ntumblr = Blog(\n blog=\"pizza\", # or 'pizza.tumblr.com'\n client_key=os.getenv(\"CONSUMER_KEY\"),\n client_secret=os.getenv(\"CONSUMER_SECRET\"),\n oauth_key=os.getenv(\"OAUTH_TOKEN\"),\n oauth_secret=os.getenv(\"OAUTH_SECRET\"),\n)\n\nresponse = tumblr.post(\n content=(\n Heading(\"Hello, World!\"),\n Text(\"Oh boy! Isn't it great to have a tumblr!\"),\n Row(\n Image(\n \"clown_left.jpg\",\n \"image/jpeg\",\n \"A photo clown holding their right thumb up towards the camera\"\n ),\n Image(\n \"clown_right.jpg\",\n \"image/jpeg\",\n \"A photo clown holding their left thumb up towards the camera\"\n ),\n ),\n Poll(\n \"Don't you think so?\",\n [\"Yes\", \"No\"],\n expire_after=timedelta(days=1),\n ),\n ),\n tags=[\"pizza\", \"I can't even remember why they were deleted\"],\n)\n\npprint(response)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Tumblr API wrapper with support for Polls",
"version": "0.3.3",
"project_urls": {
"documentation": "https://tumblrdotcom.rtfd.io",
"repository": "https://codeberg.org/jamesansley/tumblrdotcom"
},
"split_keywords": [
"tumblr",
" api"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "53246e76301e9f781b74491c11bb4b84cb1ce2f2521fb96391e5bb26a2417c68",
"md5": "cf48b274c1f7dc5b3535c629947aa045",
"sha256": "076465cf4487ce8efaaca54d47902e4a6abacf28a910ebdeaadc991c3b179fbd"
},
"downloads": -1,
"filename": "tumblrdotcom-0.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cf48b274c1f7dc5b3535c629947aa045",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 16962,
"upload_time": "2025-09-12T08:51:49",
"upload_time_iso_8601": "2025-09-12T08:51:49.319003Z",
"url": "https://files.pythonhosted.org/packages/53/24/6e76301e9f781b74491c11bb4b84cb1ce2f2521fb96391e5bb26a2417c68/tumblrdotcom-0.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8ad95191f6f2c85c49f2864b72c44b6780764edec6c3094f7b88390552038cd0",
"md5": "00f12ed00caddd30f567803a833586cd",
"sha256": "9ebeb998ab988a9443361db682500cdb745ccde435d1b874365d9e6e1eac18d0"
},
"downloads": -1,
"filename": "tumblrdotcom-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "00f12ed00caddd30f567803a833586cd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 16189,
"upload_time": "2025-09-12T08:51:50",
"upload_time_iso_8601": "2025-09-12T08:51:50.467125Z",
"url": "https://files.pythonhosted.org/packages/8a/d9/5191f6f2c85c49f2864b72c44b6780764edec6c3094f7b88390552038cd0/tumblrdotcom-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-12 08:51:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": true,
"codeberg_user": "jamesansley",
"codeberg_project": "tumblrdotcom",
"lcname": "tumblrdotcom"
}