File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ Metadata
133
133
is data about the package itself. It might include information about what
134
134
data is in the database.
135
135
136
+ Registry
137
+ --------
138
+
139
+ Something that can be queried to *discover * a package instantiation.
140
+
136
141
Desiderata
137
142
++++++++++
138
143
@@ -203,6 +208,7 @@ well. git_ stores (effectively) all previous versions of the files in the
203
208
repository, as zlib compressed blobs. The working tree is an uncompressed
204
209
instantiation of the current state. Thus, if we have, over time, had 4
205
210
different versions of a large file with little standard diff relationship to one
211
+ Discovery
206
212
another, the repository will have four zlib compressed versions of the file in
207
213
the ``.git/objects `` database, and one uncompressed version in the working tree.
208
214
The files in data packages may or may not compress well.
@@ -220,4 +226,19 @@ Maybe the way to think of it is of the different costs that become important as
220
226
files get larger. So the cost for holding a full history becomes very large,
221
227
whereas the benefit decreases a little bit (compared to code).
222
228
229
+ Some usecases
230
+ +++++++++++++
231
+
232
+ Discovery
233
+ ---------
234
+
235
+ ::
236
+ from ourpkg import default_registry
237
+
238
+ my_pkg_path = default_registry.pathfor('mypkg', '0.3')
239
+ if mypkg_path is None:
240
+ raise RuntimeError('It looks like mypkg version 0.3 is not installed')
241
+
242
+
243
+
223
244
.. include :: ../links_names.txt
You can’t perform that action at this time.
0 commit comments