Currently that information isn’t available. The wave module could be used to find that information though by opening the file, reading the number of frames and dividing it by the sample rate. It could be done on loading samples tbf but I’m not doing any development at the moment.
Mutagen is a Python module to handle audio metadata. It supports ASF, FLAC, MP4, Monkey’s Audio, MP3, Musepack, Ogg Opus, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack, OptimFROG, and AIFF audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.
With the python mutagen module, you can know the length of a file, but you also have to convert that duration to bpm of the clock, here is a brief example.
Hope you don’t mind but I edited the code sample given to use preformatted text, which preserves the asterix. Thanks for sharing the information about the library - probably very useful for users but as it doesn’t work with .wav file it won’t be able to tell you the length of FoxDot samples, which is a shame