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.2.18.tar.gz (3.9 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.2.18-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file cepy_dict-2025.2.18.tar.gz.

File metadata

  • Download URL: cepy_dict-2025.2.18.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cepy_dict-2025.2.18.tar.gz
Algorithm Hash digest
SHA256 64c14558f4ede37eb2da3ef396b5b2e169a502fab787883b3784823c2b030b1f
MD5 4a61c1a18cab4742a17749919f53c7b7
BLAKE2b-256 99d3504d319ce6710b280d45b7a2d1ed72291f4a8c97cd6a6176e07abdaac9d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cepy_dict-2025.2.18.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.2.18-py3-none-any.whl.

File metadata

  • Download URL: cepy_dict-2025.2.18-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cepy_dict-2025.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 a12223161e2b61f04392be54a8259984bc8b74d91ebbb01160e88c172da5ce65
MD5 d74fcec31de4401d221ae18f9b07be1b
BLAKE2b-256 551a5415a9e60158c659a00809d488a805fd6bef3dda26dc45852558b10ea15d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cepy_dict-2025.2.18-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