I use a skier type lock for just a quick run into a store. The red lock in the photo has a retractable cable in it.
If you just want a small cable with a couple loops on it, such cables have been sold for people to use to lock their saddle to their bike if they have a quick release seatpost and are concerned that the saddle and seatpost may disappear.