Twodict
Simple two way ordered dictionary for Python
Install / Use
/learn @MrS0m30n3/TwodictREADME
twodict (Two Way Ordered Dict)
Simple two way ordered dictionary for Python.
See wiki for more information.
INSTALLATION
Install From Source
- Download & extract source from here
- Change directory into twodict-1.2/
- Run
sudo python setup.py install
Install From Pypi
- Run
sudo pip install twodict
USAGE
from twodict import TwoWayOrderedDict
tdict = TwoWayOrderedDict()
tdict['a'] = 1
tdict['b'] = 2
tdict['c'] = 3
print(tdict['a']) # Outputs 1
print(tdict[1]) # Outputs 'a'
del tdict[2]
print(tdict) # TwoWayOrderedDict([('a', 1), ('c', 3)])
AUTHOR
LICENSE
Unlicense (public domain)
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
