We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310d9d4 commit 246f462Copy full SHA for 246f462
README.rst
@@ -18,13 +18,10 @@ Get in touch with ``adamdangoor@gmail.com`` if you would like to use this with a
18
Getting Started
19
---------------
20
21
-.. testsetup:: simple
22
-
23
- assert False
24
25
-.. testcode:: simple
+.. code:: python
26
27
import io
+ import pathlib
28
29
from vws import VWS, CloudRecoService
30
@@ -43,7 +40,8 @@ Getting Started
43
40
)
44
41
name = 'my_image_name'
45
42
46
- with open('/path/to/image.png', 'rb') as my_image_file:
+ image = pathlib.Path('high_quality_image.jpg')
+ with image.open(mode='rb') as my_image_file:
47
my_image = io.BytesIO(my_image_file.read())
48
49
target_id = vws_client.add_target(
0 commit comments