MyaDictionary
Implementation of a dictionary in Python
A hash table with separate chaining.
Requirements
- Python 3.10 or newer. Check with
python3 --version. - pip, Python's package installer. It ships with
Python; check with
python3 -m pip --version.
Installing into a virtual environment is recommended so the package doesn't mix with your system Python.
For development you also need git and
pytest, which pip install -e ".[dev]" below installs for you.
Installation
pip install MyaDictionary
Usage
The package is MyaDictionary and the class inside it is MyADictionary
(capital A). The constructor takes an iterable of (key, value) pairs.
from MyaDictionary import MyADictionary
d = MyADictionary([("a", 1), ("b", 2)])
d["c"] = 3
del d["a"]
print(d["b"]) # 2
print("a" in d) # False
print(len(d)) # 2
print(d.get("x", 0)) # 0
print(d.pop("c")) # 3
for key, value in d.items():
print(key, value)
Development
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest
Metadata
Release files for MyaDictionary 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myadictionary-0.1.1.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myadictionary-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / myadictionary-0.1.1.tar.gz
| Download URL | myadictionary-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff12513dc002a784fc5912cf9cee73ac0b1abe5310962875dd6269eecd3ebe1b
|
|
BLAKE2b-256 checksum How to use checksums |
6be3a7b0bb6f4cccdd17511b9a2fb695adbab7d92d2ee11a4bf9039506ad1505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / myadictionary-0.1.1-py3-none-any.whl
| Download URL | myadictionary-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c964c578dd2c02e9b4b436fac0c1c745d57bffe0bed514e145837ea7654a2741
|
|
BLAKE2b-256 checksum How to use checksums |
27dc7bbd3f4f0a8e0d0475ac540fc6cf1f2b303909b32b0ea506ba81dfdb7892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency log