Can I use osc on python just like on sonic-pi?

i tried python-osc as a server,and touchosc as client.

i tried the example of server given on github, and understand that dispatcher.map("/xx/xx",print) can fetch the /xx/xx 1.0, and print it.
but how can i get the "/xx/xx 1.0"string ?
it is easy to fetch it on sonic-pi,and operate the osc string.
but i can’t find way to get it using python-osc.
@robin.newman could you help?thx

Have a look at one of my articles which uses the python-osc library to receive and send OSC messages from Python. I suggest

and

both of these have python code illustrating what you want.