You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install dependencies required for data processing modules use:
43
48
```
@@ -55,29 +60,48 @@ pip install labelbox[data]
55
60
Labelbox uses API keys to validate requests. You can create and manage API keys on [Labelbox](https://app.labelbox.com/account/api-keys). Pass your API key as an environment variable. Then, import and initialize the API Client.
56
61
57
62
```
58
-
user@machine:~$ export LABELBOX_API_KEY="<your api key here>"
63
+
user@machine:~$ export LABELBOX_API_KEY="<your local api key here>"
59
64
user@machine:~$ python3
60
65
61
66
from labelbox import Client
62
67
client = Client()
63
68
```
69
+
* Update api_key and endpoint if not using the production cloud deployment
1. Update the `Makefile` with your `staging` or `prod` API key. Ensure that docker has been installed on your system. Make sure the key is not from a free tier account.
70
-
2. To test on `staging`:
85
+
1. Update the `Makefile` with your `local`, `staging`, `prod` API key. Ensure that docker has been installed on your system. Make sure the key is not from a free tier account.
86
+
2. To test on `local`:
87
+
```
88
+
user@machine:~$ export LABELBOX_TEST_API_KEY_LOCAL="<your local api key here>"
89
+
make test-local # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_LOCAL=specify_here_or_export_me
90
+
```
91
+
92
+
3. To test on `staging`:
71
93
```
72
-
make test-staging
94
+
user@machine:~$ export LABELBOX_TEST_API_KEY_STAGING="<your staging api key here>"
95
+
make test-staging # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_STAGING=specify_here_or_export_me
73
96
```
74
97
75
-
3. To test on `prod`:
98
+
4. To test on `prod`:
76
99
```
77
-
make test-prod
100
+
user@machine:~$ export LABELBOX_TEST_API_KEY_PROD="<your prod api key here>"
101
+
make test-prod # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_PROD=specify_here_or_export_me
78
102
```
79
103
80
-
4. If you make any changes and need to rebuild the image used for testing, force a rebuild with the `-B` flag
104
+
5. If you make any changes and need to rebuild the image used for testing, force a rebuild with the `-B` flag
0 commit comments