tumblrdotcom


Nametumblrdotcom JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
SummaryTumblr API wrapper with support for Polls
upload_time2024-03-23 09:28:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License
keywords tumblr api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tumblr-Dot-Com

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

## Install

```
pip install tumblrdotcom
```

## Docs

https://tumblr-dot-com.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/00/e6/8ee98fc410c5f56f24fa77f1ef3f2644054059452b931dca8e2081f7d45e/tumblrdotcom-0.3.1.tar.gz",
    "platform": null,
    "description": "# Tumblr-Dot-Com\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://tumblr-dot-com.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": "MIT License",
    "summary": "Tumblr API wrapper with support for Polls",
    "version": "0.3.1",
    "project_urls": {
        "documentation": "https://tumblr-dot-com.rtfd.io",
        "repository": "https://github.com/James-Ansley/tumblr-dot-com"
    },
    "split_keywords": [
        "tumblr",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42c36e36d8ff5bb93e947136a4b06ed28a0ea7d11a636046452d86030bce998c",
                "md5": "d1c128c8d2fbef2e8f7a1f53d2927b5e",
                "sha256": "b1af1c26b944438ae27a01f6d566b7adcbb719d489e73f5a97cbe379b2c9ac0a"
            },
            "downloads": -1,
            "filename": "tumblrdotcom-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d1c128c8d2fbef2e8f7a1f53d2927b5e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 12963,
            "upload_time": "2024-03-23T09:28:51",
            "upload_time_iso_8601": "2024-03-23T09:28:51.536420Z",
            "url": "https://files.pythonhosted.org/packages/42/c3/6e36d8ff5bb93e947136a4b06ed28a0ea7d11a636046452d86030bce998c/tumblrdotcom-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00e68ee98fc410c5f56f24fa77f1ef3f2644054059452b931dca8e2081f7d45e",
                "md5": "3c98acc2b72dd1b77f7d5cb89ec8f5ab",
                "sha256": "1eacffd581d90277c028dcd81173a3f7578a41946a986e16fe8298d14b8a5109"
            },
            "downloads": -1,
            "filename": "tumblrdotcom-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3c98acc2b72dd1b77f7d5cb89ec8f5ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 13291,
            "upload_time": "2024-03-23T09:28:53",
            "upload_time_iso_8601": "2024-03-23T09:28:53.803541Z",
            "url": "https://files.pythonhosted.org/packages/00/e6/8ee98fc410c5f56f24fa77f1ef3f2644054059452b931dca8e2081f7d45e/tumblrdotcom-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-23 09:28:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "James-Ansley",
    "github_project": "tumblr-dot-com",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "tumblrdotcom"
}
        
Elapsed time: 0.23124s