Frozendict that can be used as pydantic field annotation without a need to use arbitrary type
Project description
pydantic-frozendict
Frozendict that can be used as pydantic field annotation without a need to use arbitrary type.
Install
pip install pydantic-frozendict
Usage
from pydantic import BaseModel
from pydantic_frozendict import PydanticFrozendict
class Item(BaseModel):
tags: PydanticFrozendict[str, int]
item = Item(tags={"a": 1})
assert item.tags["a"] == 1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydantic_frozendict-0.1.3.tar.gz
(110.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_frozendict-0.1.3.tar.gz.
File metadata
- Download URL: pydantic_frozendict-0.1.3.tar.gz
- Upload date:
- Size: 110.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6588750dc71e770ff1dd01f483360fe0bfe289170817ae4bb967c9baac528856
|
|
| MD5 |
84539d71a3fcf57a4c8d65dc49c591d6
|
|
| BLAKE2b-256 |
ff35e95aabc3119425bd6344f55a8187d982e7cc7ccecfab090c6a26a5205c3f
|
File details
Details for the file pydantic_frozendict-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pydantic_frozendict-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
375421d36819a4dfa2ed8a575cf33ed846b04f930e6314064f0fe7b80f0d3658
|
|
| MD5 |
406fae7ec6a10587eba9ab0981271904
|
|
| BLAKE2b-256 |
4adb4ce2ea4be7ea617ca05052ab59227b0cdf6542c84a42ffa9de0f148c9119
|