How to import homeassistant.remote?

What do i have to do to import homeassistant.remote in a python3 script on a machine without home assistant installed?

homeassistant.remote is part of Home Assistant itself, thus you need to have Home Assistant installed but not configured.