jupyter-ydoc 3.0.0a3__py3-none-any.whl → 3.0.0a5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jupyter_ydoc/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '3.0.0a3'
4
+ __version__ = VERSION = '3.0.0a5'
jupyter_ydoc/ybasedoc.py CHANGED
@@ -114,6 +114,26 @@ class YBaseDoc(ABC):
114
114
  """
115
115
  self._ystate["dirty"] = value
116
116
 
117
+ @property
118
+ def hash(self) -> Optional[str]:
119
+ """
120
+ Returns the document hash as computed by contents manager.
121
+
122
+ :return: The document hash.
123
+ :rtype: Optional[str]
124
+ """
125
+ return self._ystate.get("hash")
126
+
127
+ @hash.setter
128
+ def hash(self, value: str) -> None:
129
+ """
130
+ Sets the document hash.
131
+
132
+ :param value: The document hash.
133
+ :type value: str
134
+ """
135
+ self._ystate["hash"] = value
136
+
117
137
  @property
118
138
  def path(self) -> Optional[str]:
119
139
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.0a3
3
+ Version: 3.0.0a5
4
4
  Summary: Document structures for collaborative editing using Ypy
5
5
  Project-URL: Homepage, https://jupyter.org
6
6
  Project-URL: Source, https://github.com/jupyter-server/jupyter_ydoc
@@ -1,14 +1,14 @@
1
1
  jupyter_ydoc/__init__.py,sha256=cVoElIvmvfj0IECe1gKe3f5vyyO7Dq7dMB_A0s2zjs4,649
2
- jupyter_ydoc/_version.py,sha256=YM_4QD6wtpKumCzeNOukUdqQkNH2sIPUZf1t3sWJ99Q,173
2
+ jupyter_ydoc/_version.py,sha256=bs3fGHRSutXcY6-qVZ0-i6NLNKQc6WSXVERlQ0U-zwA,173
3
3
  jupyter_ydoc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  jupyter_ydoc/utils.py,sha256=jnjF2uNmioh0z_4ymmMSYiB_2dAKSLmNFzVvR5V5Td0,883
5
- jupyter_ydoc/ybasedoc.py,sha256=NtUFtYMBGylvSRcOCs3nL2YZFIeMvDRD6omA3Afh19g,4372
5
+ jupyter_ydoc/ybasedoc.py,sha256=68oZ_0s-uITkBZz8syvw_DvDK_Uht7CHl6slaVSrSqM,4840
6
6
  jupyter_ydoc/yblob.py,sha256=kTBSgQfUBpzwbfRCP8cs02PIliLoZB2oixrGOdpFsbw,1999
7
7
  jupyter_ydoc/yfile.py,sha256=XTMtAXDWgIOLU2KUQxkLJz2cGvSPlOxpvJc4daXCV6I,198
8
8
  jupyter_ydoc/ynotebook.py,sha256=FMQfPAaWXIgRDHZZg0xjtpwWCqizGyLWuApZUWW7ozg,8430
9
9
  jupyter_ydoc/yunicode.py,sha256=AVjQov_MBetyr6Xop1daLWKgTpXURwC2b-t1Nvzkz14,2131
10
- jupyter_ydoc-3.0.0a3.dist-info/METADATA,sha256=qMob-HZz34x8hRwcxIWTk3h3JNLwu9Dvs6lbt9giytI,3015
11
- jupyter_ydoc-3.0.0a3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
12
- jupyter_ydoc-3.0.0a3.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
- jupyter_ydoc-3.0.0a3.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
- jupyter_ydoc-3.0.0a3.dist-info/RECORD,,
10
+ jupyter_ydoc-3.0.0a5.dist-info/METADATA,sha256=Obve4RdGEndacxFm_MjvziaoybjzafKWXpI2JgOtAEc,3015
11
+ jupyter_ydoc-3.0.0a5.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
12
+ jupyter_ydoc-3.0.0a5.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
+ jupyter_ydoc-3.0.0a5.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
+ jupyter_ydoc-3.0.0a5.dist-info/RECORD,,