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 (YFileis an alias toYUnicode).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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jupyter_ydoc-4.2.0.tar.gz | 968.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_ydoc-4.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 984.8 kB
Release files / jupyter_ydoc-4.2.0.tar.gz
| Download URL | jupyter_ydoc-4.2.0.tar.gz |
|---|---|
| Size | 968.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50b79c8b846a36756badad060417d90ec5749b95566aed94311cc656917f0b5e
|
|
BLAKE2b-256 checksum How to use checksums |
16d4209f8cbc89099eae8611918fcc8faef9529dbb05cdcc44a9d8bd859aeaba
|
| 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.0-py3-none-any.whl
| Download URL | jupyter_ydoc-4.2.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1229338569b376d4d8047da7905f430b9d3c1ec8b94e56fade9ef1a7a646ee95
|
|
BLAKE2b-256 checksum How to use checksums |
04aa96a715da49d194d48a793cf0698351e09cf36545acbd89cb49ad36d3b6b8
|
| 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.0
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.