pastebin
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| PastebinSharer anyenv.text_sharing.pastebin Share text via Pastebin.com. |
🛈 DocStrings¶
Pastebin.com text sharing provider.
PastebinSharer
¶
Bases: TextSharer
Share text via Pastebin.com.
Source code in src/anyenv/text_sharing/pastebin.py
__init__
¶
share
async
¶
share(
content: str,
*,
title: str | None = None,
syntax: str | None = None,
visibility: Visibility = "unlisted",
expires_in: int | None = None,
) -> ShareResult
Share content on Pastebin.com.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str
|
The text content to share |
required |
title
|
str | None
|
Title/name of the paste |
None
|
syntax
|
str | None
|
Syntax highlighting (e.g. "python", "markdown", "javascript") |
None
|
visibility
|
Visibility
|
"public", "unlisted", or "private" |
'unlisted'
|
expires_in
|
int | None
|
Expiration time in seconds (rounded to nearest valid value) |
None
|