detadict
Goal: create dictionary that fully compatible with native python dictionary interface.
Example:
from detadict import detadict
users = detadict()
users["John"] = {
"id": 1,
"sex": "male"
}
users["Katy"] = {
"id": 2,
"sex": "female"
}
Requirements:
🤦♂️ All you need to do is set the environment variable DETA_PROJECT_KEY with the Deta project key.
Currently not supported:
- Update of mutable values
users["John"]["sex"] = "female"
print(users["John"]) # {"id": 1, "sex": "male"}
copyandsetdefaultmethods
# raise NotImplementedError
users.copy()
users.setdefault("Bob", {})
Installing:
pip install detadict
Metadata
Release files for detadict 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| detadict-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for detadict-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| detadict-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for detadict-0.1.0-py3-none-any.whl |
Total release size: 6.3 kB
Release files / detadict-0.1.0.tar.gz
| Download URL | detadict-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dd3ce6c8dead2bb4461cee57792cbf953b8753dfdc1e066bb9be21e3049f244
|
|
BLAKE2b-256 checksum How to use checksums |
4e6bdc7b53766a5c9e60fd2fa5578832db42374941ff828d51d5e308ea9a4658
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.7.12 Linux/5.10.16.3-microsoft-standard-WSL2
|
Release files / detadict-0.1.0-py3-none-any.whl
| Download URL | detadict-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3612932ca574b35872276efacf7ec406bf60d30d54a09a84833be6e8bd604d7
|
|
BLAKE2b-256 checksum How to use checksums |
fb9fdef885640135297003aae34b65b521ad2f4fbad1e91dad4f96fd4e589eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.7.12 Linux/5.10.16.3-microsoft-standard-WSL2
|
Security for detadict 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.