Metadata-Version: 2.4
Name: mhcnames
Version: 0.4.9
Summary: Python library for MHC nomenclature parsing
Home-page: https://github.com/openvax/mhcnames
Author: Alex Rubinsteyn
Author-email: alex.rubinsteyn@mssm.edu
License: http://www.apache.org/licenses/LICENSE-2.0.html
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: six>=1.9.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

> **⚠️ DEPRECATED:** mhcnames is no longer maintained. Please use [mhcgnomes](https://github.com/openvax/mhcgnomes) instead, which provides a superset of mhcnames functionality with support for more MHC nomenclature systems.

---

# **DEPRECATED: you should use [mhcgnomes](https://pypi.org/project/mhcgnomes/) instead**

[![Tests](https://github.com/openvax/mhcnames/actions/workflows/tests.yml/badge.svg)](https://github.com/openvax/mhcnames/actions/workflows/tests.yml)
<a href="https://pypi.python.org/pypi/mhcnames/">
    <img src="https://img.shields.io/pypi/v/mhcnames.svg?maxAge=1000" alt="PyPI" />
</a>

# mhcnames
All the fun and adventure of MHC nomenclature, now in Python

Python 3.11 or later is required. New projects should use `mhcgnomes` instead.

## Example

```python
In [1]: mhcnames.parse_allele_name("HLA-A0201")
Out[1]: AlleleName(species='HLA', gene='A', allele_family='02', allele_code='01')

In [2]: mhcnames.compact_allele_name("HLA-A*02:01")
Out[2]: 'A0201'
```
