class-resolver


Nameclass-resolver JSON
Version 0.4.3 PyPI version JSON
download
home_pagehttps://github.com/cthoyt/class-resolver
SummaryLookup and instantiate classes with style.
upload_time2024-02-19 19:33:48
maintainerCharles Tapley Hoyt
docs_urlNone
authorCharles Tapley Hoyt
requires_python>=3.7
licenseMIT
keywords development tool configurability
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
<p align="center">
  <img src="docs/source/logo.png" height="150">
</p>
-->

<h1 align="center">
  Class Resolver
</h1>

<p align="center">
    <a href="https://github.com/cthoyt/class-resolver/actions?query=workflow%3ATests">
        <img alt="Tests" src="https://github.com/cthoyt/class-resolver/workflows/Tests/badge.svg" />
    </a>
    <a href="https://github.com/cthoyt/cookiecutter-python-package">
        <img alt="Cookiecutter template from @cthoyt" src="https://img.shields.io/badge/Cookiecutter-snekpack-blue" /> 
    </a>
    <a href="https://pypi.org/project/class_resolver">
        <img alt="PyPI" src="https://img.shields.io/pypi/v/class_resolver" />
    </a>
    <a href="https://pypi.org/project/class_resolver">
        <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/class_resolver" />
    </a>
    <a href="https://github.com/cthoyt/class-resolver/blob/main/LICENSE">
        <img alt="PyPI - License" src="https://img.shields.io/pypi/l/class-resolver" />
    </a>
    <a href='https://class_resolver.readthedocs.io/en/latest/?badge=latest'>
        <img src='https://readthedocs.org/projects/class_resolver/badge/?version=latest' alt='Documentation Status' />
    </a>
    <a href="https://codecov.io/gh/cthoyt/class-resolver/branch/main">
        <img src="https://codecov.io/gh/cthoyt/class-resolver/branch/main/graph/badge.svg" alt="Codecov status" />
    </a>  
    <a href="https://zenodo.org/badge/latestdoi/343741010">
        <img src="https://zenodo.org/badge/343741010.svg" alt="DOI">
    </a>
    <a href="https://github.com/psf/black">
        <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black" />
    </a>
</p>

Lookup and instantiate classes with style.

## 💪 Getting Started

```python
from class_resolver import ClassResolver
from dataclasses import dataclass

class Base: pass

@dataclass
class A(Base):
   name: str

@dataclass
class B(Base):
   name: str

# Index
resolver = ClassResolver([A, B], base=Base)

# Lookup
assert A == resolver.lookup('A')

# Instantiate with a dictionary
assert A(name='hi') == resolver.make('A', {'name': 'hi'})

# Instantiate with kwargs
assert A(name='hi') == resolver.make('A', name='hi')

# A pre-instantiated class will simply be passed through
assert A(name='hi') == resolver.make(A(name='hi'))
```

## 🤖 Writing Extensible Machine Learning Models with `class-resolver`

Assume you've implemented a simple multi-layer perceptron in PyTorch:

```python
from itertools import chain

from more_itertools import pairwise
from torch import nn

class MLP(nn.Sequential):
    def __init__(self, dims: list[int]):
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                nn.ReLU(),
            )
            for in_features, out_features in pairwise(dims)
        ))
```

This MLP uses a hard-coded rectified linear unit as the non-linear activation
function between layers. We can generalize this MLP to use a variety of
non-linear activation functions by adding an argument to its
`__init__()` function like in:

```python
from itertools import chain

from more_itertools import pairwise
from torch import nn

class MLP(nn.Sequential):
    def __init__(self, dims: list[int], activation: str = "relu"):
        if activation == "relu":
            activation = nn.ReLU()
        elif activation == "tanh":
            activation = nn.Tanh()
        elif activation == "hardtanh":
            activation = nn.Hardtanh()
        else:
            raise KeyError(f"Unsupported activation: {activation}")
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                activation,
            )
            for in_features, out_features in pairwise(dims)
        ))
```

The first issue with this implementation is it relies on a hard-coded set of
conditional statements and is therefore hard to extend. It can be improved
by using a dictionary lookup:

```python
from itertools import chain

from more_itertools import pairwise
from torch import nn

activation_lookup: dict[str, nn.Module] = {
   "relu": nn.ReLU(),
   "tanh": nn.Tanh(),
   "hardtanh": nn.Hardtanh(),
}

class MLP(nn.Sequential):
    def __init__(self, dims: list[int], activation: str = "relu"):
        activation = activation_lookup[activation]
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                activation,
            )
            for in_features, out_features in pairwise(dims)
        ))
```

This approach is rigid because it requires pre-instantiation of the activations.
If we needed to vary the arguments to the `nn.HardTanh` class, the previous
approach wouldn't work. We can change the implementation to lookup on the 
class *before instantiation* then optionally pass some arguments:

```python
from itertools import chain

from more_itertools import pairwise
from torch import nn

activation_lookup: dict[str, type[nn.Module]] = {
   "relu": nn.ReLU,
   "tanh": nn.Tanh,
   "hardtanh": nn.Hardtanh,
}

class MLP(nn.Sequential):
    def __init__(
        self, 
        dims: list[int], 
        activation: str = "relu", 
        activation_kwargs: None | dict[str, any] = None,
    ):
        activation_cls = activation_lookup[activation]
        activation = activation_cls(**(activation_kwargs or {}))
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                activation,
            )
            for in_features, out_features in pairwise(dims)
        ))
```

This is pretty good, but it still has a few issues:
1. you have to manually maintain the `activation_lookup` dictionary,
2. you can't pass an instance or class through the `activation` keyword
3. you have to get the casing just right
4. the default is hard-coded as a string, which means this has to get copied
   (error-prone) in any place that creates an MLP
5. you have to re-write this logic for all of your classes

Enter the `class_resolver` package, which takes care of all of these
things using the following:

```python
from itertools import chain

from class_resolver import ClassResolver, Hint
from more_itertools import pairwise
from torch import nn

activation_resolver = ClassResolver(
    [nn.ReLU, nn.Tanh, nn.Hardtanh],
    base=nn.Module,
    default=nn.ReLU,
)

class MLP(nn.Sequential):
    def __init__(
        self, 
        dims: list[int], 
        activation: Hint[nn.Module] = None,  # Hint = Union[None, str, nn.Module, type[nn.Module]]
        activation_kwargs: None | dict[str, any] = None,
    ):
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                activation_resolver.make(activation, activation_kwargs),
            )
            for in_features, out_features in pairwise(dims)
        ))
```

Because this is such a common pattern, we've made it available through contrib
module in `class_resolver.contrib.torch`:

```python
from itertools import chain

from class_resolver import Hint
from class_resolver.contrib.torch import activation_resolver
from more_itertools import pairwise
from torch import nn

class MLP(nn.Sequential):
    def __init__(
        self, 
        dims: list[int], 
        activation: Hint[nn.Module] = None,
        activation_kwargs: None | dict[str, any] = None,
    ):
        super().__init__(chain.from_iterable(
            (
                nn.Linear(in_features, out_features),
                activation_resolver.make(activation, activation_kwargs),
            )
            for in_features, out_features in pairwise(dims)
        ))
```

Now, you can instantiate the MLP with any of the following:

```python
MLP(dims=[10, 200, 40])  # uses default, which is ReLU
MLP(dims=[10, 200, 40], activation="relu")  # uses lowercase
MLP(dims=[10, 200, 40], activation="ReLU")  # uses stylized
MLP(dims=[10, 200, 40], activation=nn.ReLU)  # uses class
MLP(dims=[10, 200, 40], activation=nn.ReLU())  # uses instance

MLP(dims=[10, 200, 40], activation="hardtanh", activation_kwargs={"min_val": 0.0, "max_value": 6.0})  # uses kwargs
MLP(dims=[10, 200, 40], activation=nn.HardTanh, activation_kwargs={"min_val": 0.0, "max_value": 6.0})  # uses kwargs
MLP(dims=[10, 200, 40], activation=nn.HardTanh(0.0, 6.0))  # uses instance
```

In practice, it makes sense to stick to using the strings in combination with
hyper-parameter optimization libraries like [Optuna](https://optuna.org/).

## ⬇️ Installation

The most recent release can be installed from
[PyPI](https://pypi.org/project/class_resolver/) with:

```bash
$ pip install class_resolver
```

The most recent code and data can be installed directly from GitHub with:

```bash
$ pip install git+https://github.com/cthoyt/class-resolver.git
```

To install in development mode, use the following:

```bash
$ git clone git+https://github.com/cthoyt/class-resolver.git
$ cd class-resolver
$ pip install -e .
```

## 🙏 Contributing

Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See
[CONTRIBUTING.rst](https://github.com/cthoyt/class-resolver/blob/master/CONTRIBUTING.rst) for more
information on getting involved.

## 👋 Attribution

### ⚖️ License

The code in this package is licensed under the MIT License.

### 🍪 Cookiecutter

This package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s
[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s
[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.

## 🛠️ For Developers

<details>
  <summary>See developer instructions</summary>


The final section of the README is for if you want to get involved by making a code contribution.

### ❓ Testing

After cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be
run reproducibly with:

```shell
$ tox
```

Additionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/{{cookiecutter.github_organization_name}}/{{cookiecutter.github_repository_name}}/actions?query=workflow%3ATests).

### 📦 Making a Release

After installing the package in development mode and installing
`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment
in `tox.ini`. Run the following from the shell:

```shell
$ tox -e finish
```

This script does the following:

1. Uses BumpVersion to switch the version number in the `setup.cfg` and
   `src/{{cookiecutter.package_name}}/version.py` to not have the `-dev` suffix
2. Packages the code in both a tar archive and a wheel
3. Uploads to PyPI using `twine`. Be sure to have a `.pypirc` file configured to avoid the need for manual input at this
   step
4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.
5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
   use `tox -e bumpversion minor` after.
</details>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cthoyt/class-resolver",
    "name": "class-resolver",
    "maintainer": "Charles Tapley Hoyt",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "cthoyt@gmail.com",
    "keywords": "development tool,configurability",
    "author": "Charles Tapley Hoyt",
    "author_email": "cthoyt@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/49/f3/6abe48eb3357a8e2760b3e1cdbd11bd39afbd9659caf9cfe6adf77af8cac/class_resolver-0.4.3.tar.gz",
    "platform": null,
    "description": "<!--\n<p align=\"center\">\n  <img src=\"docs/source/logo.png\" height=\"150\">\n</p>\n-->\n\n<h1 align=\"center\">\n  Class Resolver\n</h1>\n\n<p align=\"center\">\n    <a href=\"https://github.com/cthoyt/class-resolver/actions?query=workflow%3ATests\">\n        <img alt=\"Tests\" src=\"https://github.com/cthoyt/class-resolver/workflows/Tests/badge.svg\" />\n    </a>\n    <a href=\"https://github.com/cthoyt/cookiecutter-python-package\">\n        <img alt=\"Cookiecutter template from @cthoyt\" src=\"https://img.shields.io/badge/Cookiecutter-snekpack-blue\" /> \n    </a>\n    <a href=\"https://pypi.org/project/class_resolver\">\n        <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/class_resolver\" />\n    </a>\n    <a href=\"https://pypi.org/project/class_resolver\">\n        <img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/class_resolver\" />\n    </a>\n    <a href=\"https://github.com/cthoyt/class-resolver/blob/main/LICENSE\">\n        <img alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/class-resolver\" />\n    </a>\n    <a href='https://class_resolver.readthedocs.io/en/latest/?badge=latest'>\n        <img src='https://readthedocs.org/projects/class_resolver/badge/?version=latest' alt='Documentation Status' />\n    </a>\n    <a href=\"https://codecov.io/gh/cthoyt/class-resolver/branch/main\">\n        <img src=\"https://codecov.io/gh/cthoyt/class-resolver/branch/main/graph/badge.svg\" alt=\"Codecov status\" />\n    </a>  \n    <a href=\"https://zenodo.org/badge/latestdoi/343741010\">\n        <img src=\"https://zenodo.org/badge/343741010.svg\" alt=\"DOI\">\n    </a>\n    <a href=\"https://github.com/psf/black\">\n        <img src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" alt=\"Code style: black\" />\n    </a>\n</p>\n\nLookup and instantiate classes with style.\n\n## \ud83d\udcaa Getting Started\n\n```python\nfrom class_resolver import ClassResolver\nfrom dataclasses import dataclass\n\nclass Base: pass\n\n@dataclass\nclass A(Base):\n   name: str\n\n@dataclass\nclass B(Base):\n   name: str\n\n# Index\nresolver = ClassResolver([A, B], base=Base)\n\n# Lookup\nassert A == resolver.lookup('A')\n\n# Instantiate with a dictionary\nassert A(name='hi') == resolver.make('A', {'name': 'hi'})\n\n# Instantiate with kwargs\nassert A(name='hi') == resolver.make('A', name='hi')\n\n# A pre-instantiated class will simply be passed through\nassert A(name='hi') == resolver.make(A(name='hi'))\n```\n\n## \ud83e\udd16 Writing Extensible Machine Learning Models with `class-resolver`\n\nAssume you've implemented a simple multi-layer perceptron in PyTorch:\n\n```python\nfrom itertools import chain\n\nfrom more_itertools import pairwise\nfrom torch import nn\n\nclass MLP(nn.Sequential):\n    def __init__(self, dims: list[int]):\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                nn.ReLU(),\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nThis MLP uses a hard-coded rectified linear unit as the non-linear activation\nfunction between layers. We can generalize this MLP to use a variety of\nnon-linear activation functions by adding an argument to its\n`__init__()` function like in:\n\n```python\nfrom itertools import chain\n\nfrom more_itertools import pairwise\nfrom torch import nn\n\nclass MLP(nn.Sequential):\n    def __init__(self, dims: list[int], activation: str = \"relu\"):\n        if activation == \"relu\":\n            activation = nn.ReLU()\n        elif activation == \"tanh\":\n            activation = nn.Tanh()\n        elif activation == \"hardtanh\":\n            activation = nn.Hardtanh()\n        else:\n            raise KeyError(f\"Unsupported activation: {activation}\")\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                activation,\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nThe first issue with this implementation is it relies on a hard-coded set of\nconditional statements and is therefore hard to extend. It can be improved\nby using a dictionary lookup:\n\n```python\nfrom itertools import chain\n\nfrom more_itertools import pairwise\nfrom torch import nn\n\nactivation_lookup: dict[str, nn.Module] = {\n   \"relu\": nn.ReLU(),\n   \"tanh\": nn.Tanh(),\n   \"hardtanh\": nn.Hardtanh(),\n}\n\nclass MLP(nn.Sequential):\n    def __init__(self, dims: list[int], activation: str = \"relu\"):\n        activation = activation_lookup[activation]\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                activation,\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nThis approach is rigid because it requires pre-instantiation of the activations.\nIf we needed to vary the arguments to the `nn.HardTanh` class, the previous\napproach wouldn't work. We can change the implementation to lookup on the \nclass *before instantiation* then optionally pass some arguments:\n\n```python\nfrom itertools import chain\n\nfrom more_itertools import pairwise\nfrom torch import nn\n\nactivation_lookup: dict[str, type[nn.Module]] = {\n   \"relu\": nn.ReLU,\n   \"tanh\": nn.Tanh,\n   \"hardtanh\": nn.Hardtanh,\n}\n\nclass MLP(nn.Sequential):\n    def __init__(\n        self, \n        dims: list[int], \n        activation: str = \"relu\", \n        activation_kwargs: None | dict[str, any] = None,\n    ):\n        activation_cls = activation_lookup[activation]\n        activation = activation_cls(**(activation_kwargs or {}))\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                activation,\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nThis is pretty good, but it still has a few issues:\n1. you have to manually maintain the `activation_lookup` dictionary,\n2. you can't pass an instance or class through the `activation` keyword\n3. you have to get the casing just right\n4. the default is hard-coded as a string, which means this has to get copied\n   (error-prone) in any place that creates an MLP\n5. you have to re-write this logic for all of your classes\n\nEnter the `class_resolver` package, which takes care of all of these\nthings using the following:\n\n```python\nfrom itertools import chain\n\nfrom class_resolver import ClassResolver, Hint\nfrom more_itertools import pairwise\nfrom torch import nn\n\nactivation_resolver = ClassResolver(\n    [nn.ReLU, nn.Tanh, nn.Hardtanh],\n    base=nn.Module,\n    default=nn.ReLU,\n)\n\nclass MLP(nn.Sequential):\n    def __init__(\n        self, \n        dims: list[int], \n        activation: Hint[nn.Module] = None,  # Hint = Union[None, str, nn.Module, type[nn.Module]]\n        activation_kwargs: None | dict[str, any] = None,\n    ):\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                activation_resolver.make(activation, activation_kwargs),\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nBecause this is such a common pattern, we've made it available through contrib\nmodule in `class_resolver.contrib.torch`:\n\n```python\nfrom itertools import chain\n\nfrom class_resolver import Hint\nfrom class_resolver.contrib.torch import activation_resolver\nfrom more_itertools import pairwise\nfrom torch import nn\n\nclass MLP(nn.Sequential):\n    def __init__(\n        self, \n        dims: list[int], \n        activation: Hint[nn.Module] = None,\n        activation_kwargs: None | dict[str, any] = None,\n    ):\n        super().__init__(chain.from_iterable(\n            (\n                nn.Linear(in_features, out_features),\n                activation_resolver.make(activation, activation_kwargs),\n            )\n            for in_features, out_features in pairwise(dims)\n        ))\n```\n\nNow, you can instantiate the MLP with any of the following:\n\n```python\nMLP(dims=[10, 200, 40])  # uses default, which is ReLU\nMLP(dims=[10, 200, 40], activation=\"relu\")  # uses lowercase\nMLP(dims=[10, 200, 40], activation=\"ReLU\")  # uses stylized\nMLP(dims=[10, 200, 40], activation=nn.ReLU)  # uses class\nMLP(dims=[10, 200, 40], activation=nn.ReLU())  # uses instance\n\nMLP(dims=[10, 200, 40], activation=\"hardtanh\", activation_kwargs={\"min_val\": 0.0, \"max_value\": 6.0})  # uses kwargs\nMLP(dims=[10, 200, 40], activation=nn.HardTanh, activation_kwargs={\"min_val\": 0.0, \"max_value\": 6.0})  # uses kwargs\nMLP(dims=[10, 200, 40], activation=nn.HardTanh(0.0, 6.0))  # uses instance\n```\n\nIn practice, it makes sense to stick to using the strings in combination with\nhyper-parameter optimization libraries like [Optuna](https://optuna.org/).\n\n## \u2b07\ufe0f Installation\n\nThe most recent release can be installed from\n[PyPI](https://pypi.org/project/class_resolver/) with:\n\n```bash\n$ pip install class_resolver\n```\n\nThe most recent code and data can be installed directly from GitHub with:\n\n```bash\n$ pip install git+https://github.com/cthoyt/class-resolver.git\n```\n\nTo install in development mode, use the following:\n\n```bash\n$ git clone git+https://github.com/cthoyt/class-resolver.git\n$ cd class-resolver\n$ pip install -e .\n```\n\n## \ud83d\ude4f Contributing\n\nContributions, whether filing an issue, making a pull request, or forking, are appreciated. See\n[CONTRIBUTING.rst](https://github.com/cthoyt/class-resolver/blob/master/CONTRIBUTING.rst) for more\ninformation on getting involved.\n\n## \ud83d\udc4b Attribution\n\n### \u2696\ufe0f License\n\nThe code in this package is licensed under the MIT License.\n\n### \ud83c\udf6a Cookiecutter\n\nThis package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s\n[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s\n[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.\n\n## \ud83d\udee0\ufe0f For Developers\n\n<details>\n  <summary>See developer instructions</summary>\n\n\nThe final section of the README is for if you want to get involved by making a code contribution.\n\n### \u2753 Testing\n\nAfter cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be\nrun reproducibly with:\n\n```shell\n$ tox\n```\n\nAdditionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/{{cookiecutter.github_organization_name}}/{{cookiecutter.github_repository_name}}/actions?query=workflow%3ATests).\n\n### \ud83d\udce6 Making a Release\n\nAfter installing the package in development mode and installing\n`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment\nin `tox.ini`. Run the following from the shell:\n\n```shell\n$ tox -e finish\n```\n\nThis script does the following:\n\n1. Uses BumpVersion to switch the version number in the `setup.cfg` and\n   `src/{{cookiecutter.package_name}}/version.py` to not have the `-dev` suffix\n2. Packages the code in both a tar archive and a wheel\n3. Uploads to PyPI using `twine`. Be sure to have a `.pypirc` file configured to avoid the need for manual input at this\n   step\n4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.\n5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can\n   use `tox -e bumpversion minor` after.\n</details>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Lookup and instantiate classes with style.",
    "version": "0.4.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/cthoyt/class-resolver/issues",
        "Download": "https://github.com/cthoyt/class-resolver/releases",
        "Homepage": "https://github.com/cthoyt/class-resolver",
        "Source Code": "https://github.com/cthoyt/class-resolver"
    },
    "split_keywords": [
        "development tool",
        "configurability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37ab31abb24b26e6b94b4bc754b6fb69dc3184fc8ebf3f341422d3fd641290f6",
                "md5": "9e48d304f8b900a49bb06c5749f4ddd9",
                "sha256": "9a0e3420edc262f1eb357580ff607ddc5806b9c0d19354a6f3dede15a69fbea0"
            },
            "downloads": -1,
            "filename": "class_resolver-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e48d304f8b900a49bb06c5749f4ddd9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 25062,
            "upload_time": "2024-02-19T19:33:46",
            "upload_time_iso_8601": "2024-02-19T19:33:46.661571Z",
            "url": "https://files.pythonhosted.org/packages/37/ab/31abb24b26e6b94b4bc754b6fb69dc3184fc8ebf3f341422d3fd641290f6/class_resolver-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49f36abe48eb3357a8e2760b3e1cdbd11bd39afbd9659caf9cfe6adf77af8cac",
                "md5": "bf85e9bda3766e84af686971290a5568",
                "sha256": "18bb9983cb377f669e5900979de4aa65449d95ead61838fa12862958998c71a2"
            },
            "downloads": -1,
            "filename": "class_resolver-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "bf85e9bda3766e84af686971290a5568",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 34904,
            "upload_time": "2024-02-19T19:33:48",
            "upload_time_iso_8601": "2024-02-19T19:33:48.568162Z",
            "url": "https://files.pythonhosted.org/packages/49/f3/6abe48eb3357a8e2760b3e1cdbd11bd39afbd9659caf9cfe6adf77af8cac/class_resolver-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-19 19:33:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cthoyt",
    "github_project": "class-resolver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "class-resolver"
}
        
Elapsed time: 0.18822s