Open source package to convert minor planet designations (MPC) from unpacked to packed?

I want to convert unpacked designations to their packed equivalents, as described here.

Is there an open source package that performs this conversion?

Thanks in advance for any suggestions.

This is available via sbpy:

>>> from import Names
>>> Names.to_packed('1995 AA1')