If you’re talking about a python library there is https://github.com/jeffthibault/python-nostr/tree/main/nostr
I checked the code and there is a bech32 encode and decode function.
I haven’t tried it or anything so it might be worth tinkering with.
Maybe someone can convert from one language to your language of choice for some sats.