Displaying 3 results from an estimated 3 matches for "contextlib".
Did you mean:
context_id
2023 Feb 25
0
libnbd | Failed pipeline for master | 3a49373a
Pipeline #788829014 has failed!
Project: libnbd ( https://gitlab.com/nbdkit/libnbd )
Branch: master ( https://gitlab.com/nbdkit/libnbd/-/commits/master )
Commit: 3a49373a ( https://gitlab.com/nbdkit/libnbd/-/commit/3a49373a78a611af7497f76b797c78d612f47c84 )
Commit Message: python: Add a contextlib function
This functio...
Commit Author: Richard W_M_ Jones ( https://gitlab.com/rwmjones )
Pipeline #788829014 ( https://gitlab.com/nbdkit/libnbd/-/pipelines/788829014 ) triggered by Richard W_M_ Jones ( https://gitlab.com/rwmjones )
had 1 failed job.
Job #3834126161 ( https://gitlab.com/nbdkit/...
2020 Aug 06
0
Re: [PATCH nbdkit] plugins: python: Add imageio plugin example
...report
> +# extents yet.
Do we support reporting extents from python plugin?
> +#
> +# The -f -v arguments are optional. They cause the server to stay in
> +# the foreground and print debugging, which is useful when testing.
> +
> +import queue
> +import threading
> +from contextlib import contextmanager
> +
> +from ovirt_imageio.client import ImageioClient
> +
> +import nbdkit
> +
> +# Using version 2 supporting the buffer protocol for better performance.
> +API_VERSION = 2
> +
> +# Plugin configuration, can be set using key=value in the command lin...
2020 Aug 06
4
[PATCH nbdkit] plugins: python: Add imageio plugin example
...t=tmp/nbd.sock
+#
+# Downloading image is not efficient with this version, since we don't report
+# extents yet.
+#
+# The -f -v arguments are optional. They cause the server to stay in
+# the foreground and print debugging, which is useful when testing.
+
+import queue
+import threading
+from contextlib import contextmanager
+
+from ovirt_imageio.client import ImageioClient
+
+import nbdkit
+
+# Using version 2 supporting the buffer protocol for better performance.
+API_VERSION = 2
+
+# Plugin configuration, can be set using key=value in the command line.
+params = {
+ "secure": True,...