PasteRsSharer
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| TextSharer anyenv.text_sharing.base Base class for text sharing services. |
⋔ Inheritance diagram¶
graph TD
3539877965["paste_rs.PasteRsSharer"]
2782231920["base.TextSharer"]
925645236["abc.ABC"]
2751680898["builtins.object"]
2782231920 --> 3539877965
925645236 --> 2782231920
2751680898 --> 925645236
🛈 DocStrings¶
Bases: TextSharer
Share text via paste.rs.
Source code in src/anyenv/text_sharing/paste_rs.py
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 paste.rs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str
|
The text content to share |
required |
title
|
str | None
|
Ignored (paste.rs doesn't support titles) |
None
|
syntax
|
str | None
|
Used as file extension for syntax highlighting |
None
|
visibility
|
Visibility
|
Ignored (all pastes are unlisted) |
'unlisted'
|
expires_in
|
int | None
|
Ignored (paste.rs doesn't support expiration) |
None
|