Skip to main content

Build Status Code style: black PyPI npm (scoped)

jupyter_ydoc

jupyter_ydoc provides pycrdt-based data structures for various documents used in the Jupyter ecosystem. Built-in documents include:

  • YBlob: a generic immutable binary document.
  • YUnicode: a generic UTF8-encoded text document (YFile is an alias to YUnicode).
  • YNotebook: a Jupyter notebook document.

These documents are registered via an entry point under the "jupyter_ydoc" group as "blob", "unicode" (or "file"), and "notebook", respectively. You can access them as follows:

from jupyter_ydoc import ydocs

print(ydocs)
# {
#     'blob': <class 'jupyter_ydoc.yblob.YBlob'>,
#     'file': <class 'jupyter_ydoc.yfile.YFile'>,
#     'notebook': <class 'jupyter_ydoc.ynotebook.YNotebook'>,
#     'unicode': <class 'jupyter_ydoc.yunicode.YUnicode'>
# }

Which is just a shortcut to:

from importlib.metadata import entry_points

ydocs = {ep.name: ep.load() for ep in entry_points(group="jupyter_ydoc")}

Or directly import them:

from jupyter_ydoc import YBlob, YUnicode, YNotebook

The "jupyter_ydoc" entry point group can be populated with your own documents, e.g. by adding the following to your package's pyproject.toml:

[project.entry-points.jupyter_ydoc]
my_document = "my_package.my_file:MyDocumentClass"

Metadata

Release files for jupyter-ydoc 4.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-ydoc 4.2.1
File Size Uploaded Provenance Actions
jupyter_ydoc-4.2.1.tar.gz 969.1 kB Without provenance Details for jupyter_ydoc-4.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-ydoc 4.2.1
File Interpreter ABI Platform Actions
jupyter_ydoc-4.2.1-py3-none-any.whl Python 3 none any Details for jupyter_ydoc-4.2.1-py3-none-any.whl

Total release size: 985.0 kB

Release files / jupyter_ydoc-4.2.1.tar.gz

Download URL jupyter_ydoc-4.2.1.tar.gz
Size 969.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4ae661e845e7d5acb99c4c8c650568483e9386123c23fe5deb538fa605664bd
BLAKE2b-256 checksum
How to use checksums
871baa6a2ce4c70043f37a5752e4043db9bb1a589dab618d719397da45d4425a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / jupyter_ydoc-4.2.1-py3-none-any.whl

Download URL jupyter_ydoc-4.2.1-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfe59ac76a3576f5e1949d484187d5ce4a576e11abd55cca485afcc49966c74a
BLAKE2b-256 checksum
How to use checksums
850d0f1562326de73e688b59f41dee02b02a40bd9867b8bfee4caa863db2e538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.15

Security for jupyter-ydoc 4.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page