Inspired by http://openenergymonitor.org/ - this project monitors AC line current using a current transformer whose signals are then translated to datagrams over USB, where it can be stored and interpreted by a host server.
An Arduino is used for analog-to-digital conversion (in my case an Adafruit Trinket 5V) as well as faux USB serial communication to the host computer. The host could be a laptop or Raspberry Pi, and then an HTTP server can retrieve the current amperage and make the current value available as a REST API endpoint.