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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cepy_dict-2025.2.20.tar.gz
Algorithm Hash digest
SHA256 0723798728845ec695fa3f592ad98c3bc0b2bc803ba98c019518d49955a14148
MD5 dcec8be1204b490fe9df18f9d9bac0f8
BLAKE2b-256 d6c928d815b07940ca11e14f12d3884972fbd818face4c679c8f33f2c9d6af93

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cepy_dict-2025.2.20-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.9

File hashes

Hashes for cepy_dict-2025.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed784b2935f0e5e505197b35a8a2a60ef991e7a8bf4d6da6af68f136a79ae3a
MD5 1919ef1a7b0395ef6d7442d7519b955b
BLAKE2b-256 11d86ec6cebb2ae78edb6481a8f9e85a7d27f3c2373c8d0ad0297168d7e2d4f5

See more details on using hashes here.

Provenance

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