-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
188 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Try Senzing's Hello World | ||
|
||
The Senzing QuickStart using Python over gRPC works on Linux, macOS, and Windows. | ||
|
||
## Prerequisistes | ||
|
||
The Senzing QuickStart using Python over gRPC requires the following prerequisites: | ||
|
||
1. [Run senzing/demo-quickstart Docker container]. | ||
1. [Python 3] | ||
1. [senzing-grpc] Python package. | ||
To install, run: | ||
|
||
```console | ||
python3 -m pip install --upgrade senzing-grpc | ||
|
||
``` | ||
|
||
## View Senzing version | ||
|
||
The following example shows how to start | ||
the Senzing QuickStart using Python over gRPC | ||
and access it with Python. | ||
|
||
4. In a separate window, start an interactive Python session. | ||
Example: | ||
|
||
```console | ||
python3 | ||
|
||
``` | ||
|
||
1. For a quick test of calling Senzing's `sz_product.get_version()`, | ||
copy/paste the following block of code into the interactive Python session | ||
and press the **Enter** key. | ||
Example: | ||
|
||
```python | ||
import grpc | ||
from senzing_grpc import SzAbstractFactory | ||
sz_abstract_factory = SzAbstractFactory(grpc_channel=grpc.insecure_channel("localhost:8261")) | ||
sz_product = sz_abstract_factory.create_sz_product() | ||
print(sz_product.get_version()) | ||
|
||
``` | ||
|
||
or download and run | ||
[senzing_hello_world.py](https://raw.githubusercontent.com/senzing-garage/knowledge-base/main/proposals/quickstart-grpc/senzing_hello_world.py). | ||
|
||
1. To end the interactive Python session, | ||
copy/paste the following block of code into the interactive Python session | ||
and press the **Enter** key. | ||
|
||
```python | ||
quit() | ||
|
||
``` | ||
|
||
1. To stop the Docker container, | ||
use `ctrl-c` to stop the `docker run ...` program. | ||
|
||
## Next steps | ||
|
||
8. [Overview] | ||
1. Try Senzing's Hello World - Linux/macOS | ||
1. [Use Senzing's Truth Set data - Linux/macOS] | ||
1. [Map and load your own data - Linux/macOS] | ||
|
||
[Map and load your own data - Linux/macOS]: map-and-load-your-own-data-linux-macos.md | ||
[Overview]: README.md | ||
[Python 3]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/python3.md | ||
[Run senzing/demo-quickstart Docker container]: README.md#run-docker-container | ||
[senzing-grpc]: https://github.com/senzing-garage/sz-sdk-python-grpc | ||
[Use Senzing's Truth Set data - Linux/macOS]: use-senzings-truth-set-data-linux-macos.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Try Senzing's Hello World | ||
|
||
The Senzing QuickStart using Python over gRPC works on Linux, macOS, and Windows. | ||
|
||
## Prerequisistes | ||
|
||
The Senzing QuickStart using Python over gRPC requires the following prerequisites: | ||
|
||
1. [Run senzing/demo-quickstart Docker container] | ||
1. [Python 3] | ||
1. [senzing-grpc] Python package. | ||
To install, run: | ||
|
||
```console | ||
python3 -m pip install --upgrade senzing-grpc | ||
|
||
``` | ||
|
||
## View Senzing version | ||
|
||
The following example shows how to start | ||
the Senzing QuickStart using Python over gRPC | ||
and access it with Python. | ||
|
||
4. In a separate window, start an interactive Python session. | ||
Example: | ||
|
||
```console | ||
python3 | ||
|
||
``` | ||
|
||
1. For a quick test of calling Senzing's `sz_product.get_version()`, | ||
copy/paste the following block of code into the interactive Python session | ||
and press the **Enter** key. | ||
Example: | ||
|
||
```python | ||
import grpc | ||
from senzing_grpc import SzAbstractFactory | ||
sz_abstract_factory = SzAbstractFactory(grpc_channel=grpc.insecure_channel("localhost:8261")) | ||
sz_product = sz_abstract_factory.create_sz_product() | ||
print(sz_product.get_version()) | ||
|
||
``` | ||
|
||
or download and run | ||
[senzing_hello_world.py](https://raw.githubusercontent.com/senzing-garage/knowledge-base/main/proposals/quickstart-grpc/senzing_hello_world.py). | ||
|
||
1. To end the interactive Python session, | ||
copy/paste the following block of code into the interactive Python session | ||
and press the **Enter** key. | ||
|
||
```python | ||
quit() | ||
|
||
``` | ||
|
||
1. To stop the Docker container, | ||
use `ctrl-c` to stop the `docker run ...` program. | ||
|
||
## Next steps | ||
|
||
Now that an environment is setup, | ||
feel free to explore Senzing. | ||
|
||
- [Overview] | ||
- Linux / macOs | ||
1. Try Senzing's Hello World | ||
1. [Use Senzing's Truth Set data - Linux/macOS] | ||
1. [Map and load your own data - Linux/macOS] | ||
- Windows | ||
1. Try Senzing's Hello World | ||
1. [Use Senzing's Truth Set data - Windows] | ||
1. [Map and load your own data - Windows] | ||
|
||
[Map and load your own data - Linux/macOS]: map-and-load-your-own-data-linux-macos.md | ||
[Map and load your own data - Windows]: map-and-load-your-own-data-windows.md | ||
[Overview]: README.md | ||
[Python 3]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/python3.md | ||
[Run senzing/demo-quickstart Docker container]: README.md#run-docker-container | ||
[senzing-grpc]: https://github.com/senzing-garage/sz-sdk-python-grpc | ||
[Use Senzing's Truth Set data - Linux/macOS]: use-senzings-truth-set-data-linux-macos.md | ||
[Use Senzing's Truth Set data - Windows]: use-senzings-truth-set-data-windows.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters