pasters


Namepasters JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryMinimalistic Python client for paste.rs
upload_time2025-08-23 11:33:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords paste pastes paste.rs pasters code pastebin client share send
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pasters
[![PyPI](https://img.shields.io/pypi/v/pasters?color=blue&label=PyPI)](https://pypi.org/project/pasters/)
[![Python](https://img.shields.io/pypi/pyversions/pasters.svg?logo=python&logoColor=yellow)](https://pypi.org/project/pasters/)
[![License](https://img.shields.io/github/license/RimMirK/pasters?color=green)](LICENSE)
[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

Minimalistic Python client for [paste.rs](https://paste.rs/)  
Share text or code in seconds with one simple call.  

---

## ✨ Features
- 🌀 Both **sync** and **async** APIs  
- ⚡ One-liner usage  
- 📤 Instant paste URL  
- 🐍 Pure Python (depends only on `requests` and `httpx`)  

---

## 📦 Installation
```sh
pip install pasters
````

---

## ⚡ Usage

### 🔹 Sync

```python
from pasters import paste, get_paste, delete_paste

# create paste
url = paste("print('hello world')", ext="py")
print(url)  # https://paste.rs/abcd.py

# fetch paste
print(get_paste(url))

# delete paste
delete_paste(url)
```

### 🔹 Async

```python
from pasters import apaste, aget_paste, adelete_paste
import asyncio

async def main():
    # create paste
    url = await apaste("# some markdown text", ext="md")
    print(url)  # https://paste.rs/efgh.md

    # fetch paste
    text = await aget_paste(url)
    print(text)

    # delete paste
    await adelete_paste(url)

asyncio.run(main())
```

---

## API

* `paste(text, ext='', allow_206=False) -> str`
* `apaste(text, ext='', allow_206=False) -> str`
* `get_paste(url) -> str`
* `aget_paste(url) -> str`
* `delete_paste(url) -> None`
* `adelete_paste(url) -> None`

---

## 👨‍💻 Author

Made with ❤️ by [@RimMirK](https://t.me/RimMirK)



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pasters",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "paste, pastes, paste.rs, pasters, code, pastebin, client, share, send",
    "author": null,
    "author_email": "RimMirK <me@RimMirK.pp.ua>",
    "download_url": "https://files.pythonhosted.org/packages/60/a5/672d06f477ec19962f69b33637ece4ca530d6b7d0cbca94f8cb22bc230c9/pasters-1.0.0.tar.gz",
    "platform": null,
    "description": "# Pasters\n[![PyPI](https://img.shields.io/pypi/v/pasters?color=blue&label=PyPI)](https://pypi.org/project/pasters/)\n[![Python](https://img.shields.io/pypi/pyversions/pasters.svg?logo=python&logoColor=yellow)](https://pypi.org/project/pasters/)\n[![License](https://img.shields.io/github/license/RimMirK/pasters?color=green)](LICENSE)\n[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)\n\nMinimalistic Python client for [paste.rs](https://paste.rs/)  \nShare text or code in seconds with one simple call.  \n\n---\n\n## \u2728 Features\n- \ud83c\udf00 Both **sync** and **async** APIs  \n- \u26a1 One-liner usage  \n- \ud83d\udce4 Instant paste URL  \n- \ud83d\udc0d Pure Python (depends only on `requests` and `httpx`)  \n\n---\n\n## \ud83d\udce6 Installation\n```sh\npip install pasters\n````\n\n---\n\n## \u26a1 Usage\n\n### \ud83d\udd39 Sync\n\n```python\nfrom pasters import paste, get_paste, delete_paste\n\n# create paste\nurl = paste(\"print('hello world')\", ext=\"py\")\nprint(url)  # https://paste.rs/abcd.py\n\n# fetch paste\nprint(get_paste(url))\n\n# delete paste\ndelete_paste(url)\n```\n\n### \ud83d\udd39 Async\n\n```python\nfrom pasters import apaste, aget_paste, adelete_paste\nimport asyncio\n\nasync def main():\n    # create paste\n    url = await apaste(\"# some markdown text\", ext=\"md\")\n    print(url)  # https://paste.rs/efgh.md\n\n    # fetch paste\n    text = await aget_paste(url)\n    print(text)\n\n    # delete paste\n    await adelete_paste(url)\n\nasyncio.run(main())\n```\n\n---\n\n## API\n\n* `paste(text, ext='', allow_206=False) -> str`\n* `apaste(text, ext='', allow_206=False) -> str`\n* `get_paste(url) -> str`\n* `aget_paste(url) -> str`\n* `delete_paste(url) -> None`\n* `adelete_paste(url) -> None`\n\n---\n\n## \ud83d\udc68\u200d\ud83d\udcbb Author\n\nMade with \u2764\ufe0f by [@RimMirK](https://t.me/RimMirK)\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Minimalistic Python client for paste.rs",
    "version": "1.0.0",
    "project_urls": {
        "Repository": "https://github.com/RimMirK/pasters"
    },
    "split_keywords": [
        "paste",
        " pastes",
        " paste.rs",
        " pasters",
        " code",
        " pastebin",
        " client",
        " share",
        " send"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1d23df554f697f256adffab7f443d1191424617a8f26952fe463ad2196cc391f",
                "md5": "821e572e2ef6db125a2b93707f85d82c",
                "sha256": "c2c1899a422f3e1a3c0bc2d1899a5181fb1ae1f65c5a5aecdd88ed14571ed601"
            },
            "downloads": -1,
            "filename": "pasters-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "821e572e2ef6db125a2b93707f85d82c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16637,
            "upload_time": "2025-08-23T11:33:39",
            "upload_time_iso_8601": "2025-08-23T11:33:39.663191Z",
            "url": "https://files.pythonhosted.org/packages/1d/23/df554f697f256adffab7f443d1191424617a8f26952fe463ad2196cc391f/pasters-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "60a5672d06f477ec19962f69b33637ece4ca530d6b7d0cbca94f8cb22bc230c9",
                "md5": "3aa4e7bbde6debda342c1a0d7d1c3828",
                "sha256": "7c9f10c4bb52b8cd835821c53f1dd784c07a07a6f59b03f7d381aa0fdcb074a6"
            },
            "downloads": -1,
            "filename": "pasters-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3aa4e7bbde6debda342c1a0d7d1c3828",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 15957,
            "upload_time": "2025-08-23T11:33:42",
            "upload_time_iso_8601": "2025-08-23T11:33:42.426665Z",
            "url": "https://files.pythonhosted.org/packages/60/a5/672d06f477ec19962f69b33637ece4ca530d6b7d0cbca94f8cb22bc230c9/pasters-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-23 11:33:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "RimMirK",
    "github_project": "pasters",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pasters"
}
        
Elapsed time: 1.04722s