.007 (originally subtitled The Story of an American Locomotive) is a short story by Rudyard Kipling. It is a story in which steam locomotives are characters (“.007” is the serial number of the protagonist), somewhat like the later, more well-known tales of Thomas the Tank Engine. The story first appeared in Scribner’s Magazine in August 1897, and was collected with other Kipling stories in The Day’s Work (1898).
The story is sometimes mentioned speculatively as one of many possible inspirations for 007, the code number of Ian Fleming’s fictional detective James Bond, but no connection is known.