add-only-dictionary-0.2.0
توضیحات
Add Only Dictionary
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | add-only-dictionary-0.2.0 |
| نام | add-only-dictionary |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matt Koski |
| ایمیل نویسنده | maccam912@gmail.com |
| آدرس صفحه اصلی | https://github.com/maccam912/add-only-dictionary |
| آدرس اینترنتی | https://pypi.org/project/add-only-dictionary/ |
| مجوز | MIT |
# Add Only Dictionary
[][pypi_]
[][status]
[][python version]
[][license]
[][read the docs]
[][tests]
[][codecov]
[][pre-commit]
[][black]
[pypi_]: https://pypi.org/project/add-only-dictionary/
[status]: https://pypi.org/project/add-only-dictionary/
[python version]: https://pypi.org/project/add-only-dictionary
[read the docs]: https://add-only-dictionary.readthedocs.io/
[tests]: https://github.com/maccam912/add-only-dictionary/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/maccam912/add-only-dictionary
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
## Features
- Create dictionaries that let you continue adding key/value pairs, but never change existing values or remove existing keys. If a value is a dictionary, that will also be updated to have the same behavior. If the value is a list, items can only be added on to the list, but never removed from any position.
## Installation
You can install _Add Only Dictionary_ via [pip] from [PyPI]:
```console
$ pip install add-only-dictionary
```
## Usage
```python
from add_only_dictionary import AODict
regular_dict: Dict = {"a": 1}
ao_dict: AODict = AODict(regular_dict)
ao_dict["b"] = 2 # works!
ao_dict["a"] = 3 # Nothing happens...
ao_dict["a"] == 1 # True, since the key already existed.
```
<!-- ## Contributing
Contributions are very welcome.
To learn more, see the [Contributor Guide].
## License
Distributed under the terms of the [MIT license][license],
_Add Only Dictionary_ is free and open source software.
## Issues
If you encounter any problems,
please [file an issue] along with a detailed description. -->
## Credits
This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/maccam912/add-only-dictionary/issues
[pip]: https://pip.pypa.io/
<!-- github-only -->
[license]: https://github.com/maccam912/add-only-dictionary/blob/main/LICENSE
[contributor guide]: https://github.com/maccam912/add-only-dictionary/blob/main/CONTRIBUTING.md
[command-line reference]: https://add-only-dictionary.readthedocs.io/en/latest/usage.html
نیازمندی
| مقدار | نام |
|---|---|
| >=8.0.1 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl add-only-dictionary-0.2.0:
pip install add-only-dictionary-0.2.0.whl
نصب پکیج tar.gz add-only-dictionary-0.2.0:
pip install add-only-dictionary-0.2.0.tar.gz