Skip to main content

hsk-sentences-audio

Dependency-free Python loader for 9,931 HSK 3.0 graded Chinese sentences: levels 1–6 plus the combined 7–9 advanced band (stored as hsk_level: 7).

from hsk_sentences_audio import audio_url, iter_sentences, load_sentences

print(len(load_sentences()))
card = next(iter_sentences(level=2, topic="food"))
print(card["chinese"], audio_url(card, speed="slow"))

The wheel contains the 21 MB JSON dataset, not the ~610 MB audio collection. Audio URLs default to the repository's hosted dist/ assets; pass base_url to use your own CDN.

Code is MIT. The packaged dataset is CC-BY-SA-4.0; retain attribution when redistributing it. Full provenance is in the repository's ATTRIBUTION.md.

Independent exam vocabulary estimates

The existing hsk_level keeps its GF0025-2021 meaning. The additive exam_vocab_level_2025 is a vocabulary-only estimate against the 2025 exam syllabus; 7 means the combined 7–9 band, not an individual seventh level. It does not assess grammar or disambiguate senses/POS. Older records may omit it; unavailable or incomplete estimates are null.

JavaScript: filterSentences(records, { examVocabLevel: 3 }). Python: iter_sentences(exam_vocab_level=3). Both filters may be combined with the existing authored-level filter.

Maintainers can backfill canonical data without changing existing fields or regenerating audio:

python -m pip install -r requirements-exam.txt
python scripts/enrich_exam_levels.py --write
python scripts/enrich_exam_levels.py
python scripts/build_web.py

The validation command fails on stale data/metadata or an unreviewed table package version. Run it after rebuilding sentences. See dist/exam_vocab_metadata.json and ATTRIBUTION.md in the source repository.

Metadata

Release files for hsk-sentences-audio 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hsk-sentences-audio 1.2.2
File Size Uploaded Provenance Actions
hsk_sentences_audio-1.2.2.tar.gz 3.3 MB Without provenance Details for hsk_sentences_audio-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hsk-sentences-audio 1.2.2
File Interpreter ABI Platform Actions
hsk_sentences_audio-1.2.2-py3-none-any.whl Python 3 none any Details for hsk_sentences_audio-1.2.2-py3-none-any.whl

Total release size: 6.7 MB

Release files / hsk_sentences_audio-1.2.2.tar.gz

Download URL hsk_sentences_audio-1.2.2.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
a2128bbc1a19407c7b8420a9b0451cc503df314264c19d3c73095d4012a79def
BLAKE2b-256 checksum
How to use checksums
004f9b98b52fcf69c574e6dc0d6849839efe2dd873ff35e6194d411ba4f20741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / hsk_sentences_audio-1.2.2-py3-none-any.whl

Download URL hsk_sentences_audio-1.2.2-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f0249e66de3aa93a1d54e970dd02804767fc61fc87d874c2a4f7394377590f9b
BLAKE2b-256 checksum
How to use checksums
16f6d42f76a14b9bd0b85d0ccb169d5187790fb83a42957fda63308a06fea02b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for hsk-sentences-audio 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page