Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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 ...
```