I did it this way because This library contains just one function. Would you still use namespaces in this case?
I often use namespaces but I do think that they can have a bad impact on the usability of the api, especially when you have too many deeply nested namespaces, and have to use plenty on using namespace ... to fix this.