[arvados] updated: 2.5.0-80-g674630a6f

git repository hosting git at public.arvados.org
Mon Jan 30 23:41:16 UTC 2023


Summary of changes:
 doc/_config.yml                               |   2 +-
 doc/api/methods/groups.html.textile.liquid    |   4 +-
 doc/api/methods/users.html.textile.liquid     |   2 +-
 doc/sdk/python/cookbook.html.textile.liquid   | 971 +++++++++++++++++++-------
 doc/sdk/python/sdk-python.html.textile.liquid |  28 -
 5 files changed, 727 insertions(+), 280 deletions(-)

       via  674630a6f461527f5b26e917814736b444cb4f51 (commit)
       via  267c257cb39b1fdaed42c0f2aa74861c8180e852 (commit)
       via  1da341c2da87314a7d42a653fcdfb3d51d332ce2 (commit)
       via  4d347fd29f4f7767bc7e9e4af49eda877a5f488c (commit)
       via  9e674938db7e1a92497ffb0cc97cfb92ea37a885 (commit)
       via  ddbae2e44ddf1f0cd2209fa77d9ab808632726ce (commit)
       via  e94156e4f8e96bef62387910003d0f10339d8308 (commit)
       via  09e8bd30b84bbeb25ab8e3630c448f6e174ac37f (commit)
       via  daf69c3eba0f80aa6f18b46bc4fa797a57190fc4 (commit)
       via  e074cb71b521f11531f3c8059bf752cfec5e02a8 (commit)
       via  daab28c11f17210a29b2cd3cd2b0cd4797d8e013 (commit)
       via  b5f762fb5f8495a75a2d94f90a8ef5364161584e (commit)
       via  80215c92fabf020555726381a223e06a79f6a564 (commit)
       via  dfa06386290a17fb768c359de12719b170f02a72 (commit)
       via  6f5e2a33099a0120f4acb2f24430fb74dcfc689a (commit)
       via  13010f81771d6301e7f204976a7411f981ef30e5 (commit)
       via  4901fc63c6dae531a38c0011c7e00fb743a1274d (commit)
       via  9bf05670ae8a7d7132f8000237cdca449518cbc5 (commit)
       via  812aac7d7666ef782fd1226ac8046f9528726356 (commit)
       via  3502dcb0b4b8243e1e72e55a4177efe1745af9df (commit)
      from  0acc3185deb4f2215f36dcbbe66ac24b4c0ecd4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 674630a6f461527f5b26e917814736b444cb4f51
Merge: 0acc3185d 267c257cb
Author: Brett Smith <brett.smith at curii.com>
Date:   Mon Jan 30 18:40:43 2023 -0500

    Merge branch '19792-pysdk-cookbook'
    
    Closes #19792.
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>


commit 267c257cb39b1fdaed42c0f2aa74861c8180e852
Author: Brett Smith <brett.smith at curii.com>
Date:   Mon Jan 30 18:38:02 2023 -0500

    19792: Add 'wb' as an example Collection.open mode argument
    
    Give readers a hint that we fully support the mode argument, not just
    the basic r/w/a options. Ideally they can look up the reference for full
    details.
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index 72c779894..156b7cbad 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -411,7 +411,7 @@ with (
 
 h3(#write-a-file-into-a-new-collection). Write a file to a collection
 
-Once you have a @Collection@ object, the "@Collection.open@ method":{{ site.baseurl }}/sdk/python/arvados/collection.html#arvados.collection.RichCollectionBase.open lets you open files from a collection the same way you would open files from disk using Python's built-in @open@ function. Pass a second mode argument like @'w'@ or @'a'@ to write a file in the collection. It returns a file-like object that you can use in many of the same ways you would use any other file object. This example writes @Hello, Arvados!@ to a file named @ExampleHello@ in your collection:
+Once you have a @Collection@ object, the "@Collection.open@ method":{{ site.baseurl }}/sdk/python/arvados/collection.html#arvados.collection.RichCollectionBase.open lets you open files from a collection the same way you would open files from disk using Python's built-in @open@ function. Pass a second mode argument like @'w'@, @'a'@, or @'wb'@ to write a file in the collection. It returns a file-like object that you can use in many of the same ways you would use any other file object. This example writes @Hello, Arvados!@ to a file named @ExampleHello@ in your collection:
 
 {% codeblock as python %}
 import arvados.collection
@@ -425,7 +425,7 @@ collection.save_new(...)  # or collection.save() to update an existing collectio
 
 h3(#upload-a-file-into-a-new-collection). Upload a file to a collection
 
-Once you have a @Collection@ object, the "@Collection.open@ method":{{ site.baseurl }}/sdk/python/arvados/collection.html#arvados.collection.RichCollectionBase.open lets you open files from a collection the same way you would open files from disk using Python's built-in @open@ function. Pass a second mode argument like @'w'@ or @'a'@ to write a file in the collection. It returns a file-like object that you can use in many of the same ways you would use any other file object. You can pass it as a destination to Python's standard "@shutil.copyfileobj@ function":https://docs.python.org/3/library/shutil.html#shutil.copyfileobj to upload data from a source file. This example reads @ExampleFile@ from the current working directory and uploads it into your collection as @ExampleUpload@:
+Once you have a @Collection@ object, the "@Collection.open@ method":{{ site.baseurl }}/sdk/python/arvados/collection.html#arvados.collection.RichCollectionBase.open lets you open files from a collection the same way you would open files from disk using Python's built-in @open@ function. Pass a second mode argument like @'w'@, @'a'@, or @'wb'@ to write a file in the collection. It returns a file-like object that you can use in many of the same ways you would use any other file object. You can pass it as a destination to Python's standard "@shutil.copyfileobj@ function":https://docs.python.org/3/library/shutil.html#shutil.copyfileobj to upload data from a source file. This example reads @ExampleFile@ from the current working directory and uploads it into your collection as @ExampleUpload@:
 
 {% codeblock as python %}
 import arvados.collection

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list