Skip to content

ReadClipboard

Base classes

Name Children Inherits
ReadOp
datacook.engine.ops.sources
A reader: a source op with file extensions (the format registry looks them up).

⋔ Inheritance diagram

graph TD
  314490466["sources.ReadClipboard"]
  1625742177["sources.ReadOp"]
  3484306131["base.CallOp"]
  1539482213["base.Op"]
  2751680898["builtins.object"]
  1625742177 --> 314490466
  3484306131 --> 1625742177
  1539482213 --> 3484306131
  2751680898 --> 1539482213

🛈 DocStrings

Bases: ReadOp

Source code in src/datacook/engine/ops/sources.py
class ReadClipboard(ReadOp):
    id = "read_clipboard"
    format_id = "clipboard"
    title = _("Clipboard")
    description = _("Read a table from the clipboard (e.g. copied from a spreadsheet).")
    icon = "mdi.clipboard-text-outline"
    function = "pd.read_clipboard"
    positional = ()

    class Params(base.Params):
        sep: str = Field(r"\s+", title=N_("Separator"))
        dtype_backend: DtypeBackend = Field("pyarrow", title=N_("Data types"))

:fa-brands-github: Show source on GitHub