Rasberry Pi detect proximity C or Python

Is there any example code that can detect beacon proximity using C or Python on a Raspberry Pi? No phones are used.

The Raspberry Pi will be in a fixed position and needs to detect the closest beacon within about three feet. People will be carrying the beacons with them.

Personally, I’ve only ever tried a Node.js library, bleacon, on top of Raspberry Pi. Quick googling for a Python counterpart turned up this one: https://github.com/switchdoclabs/iBeacon-Scanner-, maybe it’s worth a shot?

heyplotr that python program you linked to worked much better than the btmon / hcitool combination I was using.