-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fixup all tests so the library works!
- Loading branch information
Showing
7 changed files
with
128 additions
and
257 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
3.8 | ||
3.9 | ||
3.10 | ||
3.12 | ||
3.11 | ||
3.10 | ||
3.9 | ||
3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
# caseless | ||
|
||
[![Testing Status](https://github.com/clintval/caseless/actions/workflows/test.yml/badge.svg)](https://github.com/clintval/caseless/actions/workflows/test.yml) | ||
[![Build Status](https://github.com/clintval/caseless/actions/workflows/test.yml/badge.svg)](https://github.com/clintval/caseless/actions/workflows/test.yml) | ||
[![PyPi Release](https://badge.fury.io/py/caseless.svg)](https://badge.fury.io/py/caseless) | ||
[![Python Versions](https://img.shields.io/pypi/pyversions/caseless.svg)](https://pypi.python.org/pypi/caseless/) | ||
[![MyPy Checked](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) | ||
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) | ||
|
||
A caseless typed dictionary in Python | ||
A caseless typed dictionary in Python. | ||
|
||
```console | ||
❯ pip install caseless | ||
``` | ||
|
||
Features: | ||
|
||
- Caseless key matching | ||
- Typing for support in typed codebases | ||
![Guitar Lake, California](.github/img/cover.jpg) | ||
|
||
```python | ||
from caseless import CaselessDict | ||
|
||
CaselessDict({"lower": "my-value"}) == CaselessDict({"LOWER": "my-value"}) | ||
CaselessDict({"lower": "UPPER"})["LOWER"] == "UPPER" | ||
CaselessDict({"lower": "UPPER"}).get("LOWER") == "UPPER" | ||
CaselessDict({"lower": "value"}) == CaselessDict({"LOWER": "value"}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.