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 20 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.1

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.1
File Size Uploaded Provenance Actions
hsk_sentences_audio-1.2.1.tar.gz 3.3 MB Without provenance Details for hsk_sentences_audio-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 MB

Release files / hsk_sentences_audio-1.2.1.tar.gz

Download URL hsk_sentences_audio-1.2.1.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9e62a7b09c79f0a056acfc445de0c26026ed63032b17472acb0082226b7eaecf
BLAKE2b-256 checksum
How to use checksums
18ef049340ebe225579890d7f9a8925fa000ea8368ade76db3c388859b820461
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.1-py3-none-any.whl

Download URL hsk_sentences_audio-1.2.1-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fe3698b0cc7a89c75fa61c9060dd0138c7e63e75b0b25abad9bb9a2cfc31651d
BLAKE2b-256 checksum
How to use checksums
bfbbf241d9e420efff274c5bb994e64bc206f171e23e0d46b85865891c9460cb
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.1

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