Skip to main content

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

cepy_dict-2025.10.2.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cepy_dict-2025.10.2-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

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

Hashes for cepy_dict-2025.10.2.tar.gz
Algorithm Hash digest
SHA256 9566ddac06e1c88d71d04e3f4f0486c8f81811cce21304759b667c41e4e58ec8
MD5 9b9e055e24f032717a89e187a8c9341b
BLAKE2b-256 98cd1cd7cfba0edfe5f4cb13127abc6150aca51cb6aa85b08c6c25e278e81606

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cepy_dict-2025.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bbe68f0501bcae0438bfd533dddf71629ee0d21a6604b2dee37a0401f8107508
MD5 4eb29444e2c5baaae6816851a67acba8
BLAKE2b-256 c0ce19e7bc22242c98c4daaf7ee3746fb6f1c14b2423d95b5147857b02d2fad2

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page