turkce-seo-slug
Türkçe başlıklardan SEO uyumlu URL slug'ı üretir.
pip install turkce-seo-slug
Kullanım
from turkce_seo_slug import tr_slug
tr_slug("Çok güzel başlık! İstanbul'da")
# 'cok-guzel-baslik-istanbulda'
tr_slug("Uzun bir SEO başlığı örneği", max_length=15)
# 'uzun-bir-seo' (kelime sınırında kesilir)
tr_slug("Café Ünlü", lang="en")
# 'cafe-unlu'
Parametreler
lang:"tr"(varsayılan) Türkçe harfleri aksansız karşılığına çevirir."en"yalnızca aksanları kaldırır.separator: Kelimeler arasındaki ayırıcı. Varsayılan"-".max_length: Slug'ın en fazla uzunluğu. Kelime sınırında keser, tek kelime bile sığmıyorsa sertçe keser.
Kesme işaretleri kelimeyi bölmez: İstanbul'da → istanbulda.
Harf dönüşümleri turkce-harf paketinden gelir.
Geliştirme
pip install -e ".[test]"
pytest
Lisans
MIT
turkce-seo-slug (English)
Generates SEO-friendly URL slugs from Turkish titles.
pip install turkce-seo-slug
Usage
from turkce_seo_slug import tr_slug
tr_slug("Çok güzel başlık! İstanbul'da")
# 'cok-guzel-baslik-istanbulda'
tr_slug("Uzun bir SEO başlığı örneği", max_length=15)
# 'uzun-bir-seo' (cut at a word boundary)
tr_slug("Café Ünlü", lang="en")
# 'cafe-unlu'
Parameters
lang:"tr"(default) converts Turkish letters to their plain ASCII forms."en"only removes accents.separator: Separator between words. Default"-".max_length: Maximum slug length. Cuts at a word boundary; if a single word does not fit, it is cut hard.
Apostrophes do not split words: İstanbul'da → istanbulda.
Letter conversions come from the turkce-harf package.
Development
pip install -e ".[test]"
pytest
License
MIT
Metadata
Release files for turkce-seo-slug 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turkce_seo_slug-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for turkce_seo_slug-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turkce_seo_slug-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for turkce_seo_slug-0.1.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / turkce_seo_slug-0.1.2.tar.gz
| Download URL | turkce_seo_slug-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45b52eb5f133008efe9e8772a40f15108ad440b8181c28bc0cb9a30b76e1108b
|
|
BLAKE2b-256 checksum How to use checksums |
727a23d775d21ebccf761a779876e17728a14f88d7b8c93cb7ceb7ba2742f7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / turkce_seo_slug-0.1.2-py3-none-any.whl
| Download URL | turkce_seo_slug-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c38cd9eaf7249dbd93f44d6b24920ba4caaa8ff9515e3e1951ade227fdbc2068
|
|
BLAKE2b-256 checksum How to use checksums |
10be1915083db3cfdf368f3797eb619e37a92def473779cb478b69884894d089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for turkce-seo-slug 0.1.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.