A sleepy Chinese-english dictionary library
Project description
cepy-dict -- A sleepy Chinese-English dictionary in python
Install
The package is available on
PyPI and can be installed with
pip:
pip install cepy-dict
Usage
This package provides a Chinese-English dictionary which can be loaded in a textual format with a context manager or as an iterator of entries:
Raw Text -- cepy_dict.raw_file:
A context manager which provides a file handle just like with open()
would:
import cepy_dict
with cepy_dict.raw_file() as f:
f.readlines()
Iterator of entries -- cepy_dict.entries:
import cepy_dict
for entry in cepy_dict.entries():
entry_text, traditional, simplified, pinyin, definitions = entry
By default both of these functions use the built in dictionary, but
both can optionally take an argument path which can be a path to any
dictionary in the cc-cedict
format.
Advanced Tooling
This package only provides very basic tooling. It's main purpose is to be a pip-installable Chinese-English dictionary. For more advanced tools, see the higher level package cepy-tools.
CC-CEDICT
This package includes CC-CEDICT.
CC-CEDICT is a Chinese-English dictionary licensed under the CC BY-SA 4.0 license. It is redistributed in this library under the GPLv3, a compatible license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 cepy_dict-2025.10.2.tar.gz.
File metadata
- Download URL: cepy_dict-2025.10.2.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9566ddac06e1c88d71d04e3f4f0486c8f81811cce21304759b667c41e4e58ec8
|
|
| MD5 |
9b9e055e24f032717a89e187a8c9341b
|
|
| BLAKE2b-256 |
98cd1cd7cfba0edfe5f4cb13127abc6150aca51cb6aa85b08c6c25e278e81606
|
Provenance
The following attestation bundles were made for cepy_dict-2025.10.2.tar.gz:
Publisher:
publish-to-pypi.yml on swans-one/cepy-dict
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cepy_dict-2025.10.2.tar.gz -
Subject digest:
9566ddac06e1c88d71d04e3f4f0486c8f81811cce21304759b667c41e4e58ec8 - Sigstore transparency entry: 580911789
- Sigstore integration time:
-
Permalink:
swans-one/cepy-dict@91eae19d908e1c29a42df33b6082dffee591fb7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/swans-one
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@91eae19d908e1c29a42df33b6082dffee591fb7b -
Trigger Event:
push
-
Statement type:
File details
Details for the file cepy_dict-2025.10.2-py3-none-any.whl.
File metadata
- Download URL: cepy_dict-2025.10.2-py3-none-any.whl
- Upload date:
- Size: 4.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbe68f0501bcae0438bfd533dddf71629ee0d21a6604b2dee37a0401f8107508
|
|
| MD5 |
4eb29444e2c5baaae6816851a67acba8
|
|
| BLAKE2b-256 |
c0ce19e7bc22242c98c4daaf7ee3746fb6f1c14b2423d95b5147857b02d2fad2
|
Provenance
The following attestation bundles were made for cepy_dict-2025.10.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on swans-one/cepy-dict
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cepy_dict-2025.10.2-py3-none-any.whl -
Subject digest:
bbe68f0501bcae0438bfd533dddf71629ee0d21a6604b2dee37a0401f8107508 - Sigstore transparency entry: 580911897
- Sigstore integration time:
-
Permalink:
swans-one/cepy-dict@91eae19d908e1c29a42df33b6082dffee591fb7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/swans-one
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@91eae19d908e1c29a42df33b6082dffee591fb7b -
Trigger Event:
push
-
Statement type: