Skip to content

Commit 9507cbf

Browse files
authored
Merge pull request #583 from Cohen-J-Omer/alter_documentation
Made small-scale corrections to documentation (e.g. broken links).
2 parents d8e0428 + 695342d commit 9507cbf

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

config/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To work with Lithops you must configure both compute backend and a storage. Fail
44

55
Lithops can work with almost any compute backend and storage any can be used with almost any cloud provider. You have multiple options to choose compute backend and storage backend based on your needs.
66

7-
After you choose your compute and storage engine, you need to configure Lithops so it can use choosen compute and storage. Lithops configuration can be provided either in configuration file or provided in runtime via Python dictionary.
7+
After you choose your compute and storage engine, you need to configure Lithops so it can use chosen compute and storage. Lithops configuration can be provided either in configuration file or provided in runtime via Python dictionary.
88

99
## Lithops configuration
1010

@@ -109,7 +109,7 @@ def hello_world(name):
109109

110110
if __name__ == '__main__':
111111
fexec = lithops.FunctionExecutor()
112-
fexec.call_async(hello, 'World')
112+
fexec.call_async(hello_world, 'World')
113113
print(fexec.get_result())
114114
```
115115

@@ -133,7 +133,7 @@ def hello_world(name):
133133

134134
if __name__ == '__main__':
135135
fexec = lithops.FunctionExecutor(config=config)
136-
fexec.call_async(hello, 'World')
136+
fexec.call_async(hello_world, 'World')
137137
print(fexec.get_result())
138138
```
139139

config/storage/ibm_cos.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ Alternative to using region, you can configre public and private endpoints as fo
3232

3333
### Configuration
3434

35-
5. Login to IBM Cloud and open up your dashboard. Then navigate to your instance of Object Storage.
35+
1. Login to IBM Cloud and open up your dashboard. Then navigate to your instance of Object Storage.
3636

37-
6. In the side navigation, click `Endpoints` to find your API endpoint. You must copy both public and private endpoints of the region where you created your bucket.
37+
2. In the side navigation, click `Endpoints` to find your API endpoint. You must copy both public and private endpoints of the region where you created your bucket.
3838

39-
7. Create the credentials to access to your COS account (Choose one option):
39+
3. Create the credentials to access to your COS account (Choose one option):
4040

4141
#### Option 1 (COS API Key):
4242

43-
8. In the side navigation, click `Service Credentials`.
43+
4. In the side navigation, click `Service Credentials`.
4444

45-
9. Click `New credential +` and provide the necessary information.
45+
5. Click `New credential +` and provide the necessary information.
4646

47-
10. Click `Add` to generate service credential.
47+
6. Click `Add` to generate service credential.
4848

49-
11. Click `View credentials` and copy the *apikey* value.
49+
7. Click `View credentials` and copy the *apikey* value.
5050

51-
12. Edit your lithops config file and add the following keys:
51+
8. Edit your lithops config file and add the following keys:
5252

5353
```yaml
5454
lithops:
@@ -62,17 +62,17 @@ Alternative to using region, you can configre public and private endpoints as fo
6262
6363
#### Option 2 (COS HMAC credentials):
6464
65-
13. In the side navigation, click `Service Credentials`.
65+
4. In the side navigation, click `Service Credentials`.
6666

67-
14. Click `New credential +`.
67+
5. Click `New credential +`.
6868

69-
15. Click on advanced options and enable `Include HMAC Credential` button.
69+
6. Click on advanced options and enable `Include HMAC Credential` button.
7070

71-
16. Click `Add` to generate service credential.
71+
7. Click `Add` to generate service credential.
7272

73-
17. Click `View credentials` and copy the *access_key_id* and *secret_access_key* values.
73+
8. Click `View credentials` and copy the *access_key_id* and *secret_access_key* values.
7474

75-
18. Edit your lithops config file and add the following keys:
75+
9. Edit your lithops config file and add the following keys:
7676
```yaml
7777
lithops:
7878
storage: ibm_cos
@@ -86,13 +86,13 @@ Alternative to using region, you can configre public and private endpoints as fo
8686

8787
#### Option 3 (IBM IAM API Key):
8888

89-
19. If you don't have an IAM API key created, navigate to the [IBM IAM dashboard](https://cloud.ibm.com/iam/apikeys)
89+
4. If you don't have an IAM API key created, navigate to the [IBM IAM dashboard](https://cloud.ibm.com/iam/apikeys)
9090

91-
20. Click `Create an IBM Cloud API Key` and provide the necessary information.
91+
5. Click `Create an IBM Cloud API Key` and provide the necessary information.
9292

93-
21. Copy the generated IAM API key (You can only see the key the first time you create it, so make sure to copy it).
93+
6. Copy the generated IAM API key (You can only see the key the first time you create it, so make sure to copy it).
9494

95-
22. Edit your lithops config file and add the following keys:
95+
7. Edit your lithops config file and add the following keys:
9696
```yaml
9797
lithops:
9898
storage_backend: ibm_cos

docs/api_futures.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ The available calls within an executor are:
2121

2222
|API Call| Type | Description|
2323
|---|---|---|
24-
|[call_async()](api-details.md#executorcall_async) | Async. | Method used to spawn one function activation |
25-
|[map()](api-details.md#executormap) | Async. | Method used to spawn multiple function activations |
26-
|[map_reduce()](api-details.md#executormap_reduce) | Async. | Method used to spawn multiple function activations with one (or multiple) reducers|
27-
|[wait()](api-details.md#executorwait) | Sync. | Wait for the function activations to complete. It blocks the local execution until all the function activations finished their execution (configurable)|
28-
|[get_result()](api-details.md#executorget_result) | Sync. | Method used to retrieve the results of all function activations. The results are returned within an ordered list, where each element of the list is the result of one activation|
29-
|[plot()](api-details.md#executorplot) | Sync. | Method used to create execution plots |
30-
|[clean()](api-details.md#executorclean) | Async. | Method used to clean the temporary data generated by Lithops|
24+
|[call_async()](api_futures.md#executorcall_async) | Async. | Method used to spawn one function activation |
25+
|[map()](api_futures.md#executormap) | Async. | Method used to spawn multiple function activations |
26+
|[map_reduce()](api_futures.md#executormap_reduce) | Async. | Method used to spawn multiple function activations with one (or multiple) reducers|
27+
|[wait()](api_futures.md#executorwait) | Sync. | Wait for the function activations to complete. It blocks the local execution until all the function activations finished their execution (configurable)|
28+
|[get_result()](api_futures.md#executorget_result) | Sync. | Method used to retrieve the results of all function activations. The results are returned within an ordered list, where each element of the list is the result of one activation|
29+
|[plot()](api_futures.md#executorplot) | Sync. | Method used to create execution plots |
30+
|[clean()](api_futures.md#executorclean) | Async. | Method used to clean the temporary data generated by Lithops|
3131

3232

3333
**LocalhostExecutor(\*\*kwargs)**
@@ -41,7 +41,7 @@ Initialize and return Localhost executor object.
4141
|workers | cpu_count | Max number of parallel workers |
4242
|storage | localhost | Storage backend to store temp data|
4343
|rabbitmq_monitor | False | Activate RabbitMQ monitoring |
44-
|log_level | INFO | Log level printing (INFO, DEBUG, ...). Set it to None to hide all logs. If this is param is set, al logging params in config are disabled|
44+
|log_level | INFO | Log level printing (INFO, DEBUG, ...). Set it to None to hide all logs. If this is param is set, all logging params in config are disabled|
4545

4646
Usage:
4747

docs/api_storage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lithops Storage API Details
22

3-
Lithops allows to create a **Storage** instance and abstract away the backend implementation details. The standard way to get an Storage object set up is to import the lithops `Storage` class and create an instance.
3+
Lithops allows to create a **Storage** instance and abstract away the backend implementation details. The standard way to get a Storage object set up is to import the lithops `Storage` class and create an instance.
44

55

66
**Storage(\*\*kwargs)**
@@ -33,7 +33,7 @@ config = {'lithops' : {'storage' : 'ibm_cos'},
3333
storage = Storage(config=config)
3434
```
3535

36-
In such a case you have multiple storage set in your configuration, you can force the storage backend by using the `backend` parameter:
36+
In case you have multiple storage set in your configuration, you can force the storage backend by using the `backend` parameter:
3737

3838
```python
3939
from lithops import Storage
@@ -192,7 +192,7 @@ Returns all of the objects in a bucket. For each object, the list contains the n
192192

193193
### `Storage.list_keys()`
194194

195-
Similar to lit_objects(), it returns all of the objects in a bucket. For each object, the list contains only the names of the objects (keys).
195+
Similar to list_objects(), it returns all of the objects in a bucket. For each object, the list contains only the names of the objects (keys).
196196

197197
**list_keys**(bucket, \*\*kwargs)
198198

examples/multiprocessing/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def sleep_seconds(s):
2828
if __name__ == '__main__':
2929
with Pool() as pool:
3030

31-
# Synchronously execute function square remotely
31+
# Synchronously execute function hello remotely
3232
res = pool.apply(hello, ('World', ))
3333
print(res) # print "Hello World!"
3434

0 commit comments

Comments
 (0)