From dee2757fbf7f2017664954a96cf7a84abbbbe894 Mon Sep 17 00:00:00 2001 From: dberardo-com <65530457+dberardo-com@users.noreply.github.com> Date: Tue, 4 Apr 2023 10:51:33 +0200 Subject: [PATCH] Update README.md Closes https://github.com/FrederikBjorne/python-observer/issues/1 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b9980bb..838654b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The classic observer pattern uses two classes: ## Example usage The below example application resides in observer.py and can be run by running the module. ```python -from Observer import Observable, Observer +from observer import Observable, Observer class NewValueSubscriber(Observer): def __init__(self): @@ -66,3 +66,9 @@ Get this package by issuing the following command: ```console $ pip install git+https://github.com/FrederikBjorne/python-observer ``` + +then import it like this: + +``` +from observer import ... +```