Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b88d11

Browse files
Update README files
1 parent 602e127 commit 6b88d11

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

‎README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ The handler's code is in `test.py` and the function name of the handler is `hand
8484
The source depends on 3rd party library `rx` and it is installed in the directory `lib`.
8585
The test event in json format is in `event.json` file.
8686

87+
#### Installing `rx` library in `lib/`
88+
89+
``` bash
90+
pip install --target lib rx==1.6.1
91+
```
92+
8793
#### Content of `test.py`:
8894

8995
``` python
@@ -163,5 +169,6 @@ event = {
163169
}
164170
context = Context(5)
165171

166-
call(test.handler, event, context)
172+
if __name__ == '__main__':
173+
call(test.handler, event, context)
167174
```

‎README.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ handler is ``handler``. The source depends on 3rd party library ``rx``
9090
and it is installed in the directory ``lib``. The test event in json
9191
format is in ``event.json`` file.
9292

93+
Installing ``rx`` library in ``lib/``:
94+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95+
96+
.. code:: bash
97+
98+
pip install --target lib rx==1.6.1
99+
93100
Content of ``test.py``:
94101
^^^^^^^^^^^^^^^^^^^^^^^
95102

@@ -179,7 +186,8 @@ Sample
179186
}
180187
context = Context(5)
181188
182-
call(test.handler, event, context)
189+
if __name__ == '__main__':
190+
call(test.handler, event, context)
183191
184192
.. |Join the chat at https://gitter.im/HDE/python-lambda-local| image:: https://badges.gitter.im/Join%20Chat.svg
185193
:target: https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /