• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyThaiNLP / pythainlp / 21081667337
54%
dev: 54%

Build:
Build:
LAST BUILD BRANCH: copilot/check-zip-safe-status
DEFAULT BRANCH: dev
Ran 16 Jan 2026 09:51PM UTC
Jobs 1
Files 191
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jan 2026 09:38PM UTC coverage: 53.654% (+0.08%) from 53.579%
21081667337

Pull #1212

github

Copilot
Add thread safety and improve resource management

Address code review feedback:
- Add threading locks to ensure thread-safe lazy loading
- Implement double-check locking pattern to prevent race conditions
- Make CRFchunk a context manager for explicit resource management
- Document that __del__ is unreliable and context manager is preferred
- Add documentation about zip-safe behavior in get_pythainlp_path()
- Document that context managers are kept alive for program lifetime

Co-authored-by: bact <128572+bact@users.noreply.github.com>
Pull Request #1212: Make package zip-safe by migrating to importlib.resources

80 of 111 new or added lines in 7 files covered. (72.07%)

4 existing lines in 3 files now uncovered.

4530 of 8443 relevant lines covered (53.65%)

0.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.12
-5.88% pythainlp/tools/path.py
10
84.85
-15.15% pythainlp/tag/crfchunk.py
20
0.0
0.0% pythainlp/spell/symspellpy.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.65
-0.22% pythainlp/corpus/core.py
1
89.29
0.82% pythainlp/corpus/th_en_translit.py
2
0.0
0.0% pythainlp/spell/symspellpy.py
Jobs
ID Job ID Ran Files Coverage
1 21081667337.1 16 Jan 2026 09:51PM UTC 191
53.65
GitHub Action Run
Source Files on build 21081667337
  • Tree
  • List 191
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1212
  • PR Base - dev (#21078787242)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc