Skip to main content

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

Metadata

Release files for turkce-seo-slug 0.1.0

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

Source distribution (sdist)

Source distribution for turkce-seo-slug 0.1.0
File Size Uploaded Provenance Actions
turkce_seo_slug-0.1.0.tar.gz 4.3 kB Without provenance Details for turkce_seo_slug-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for turkce-seo-slug 0.1.0
File Interpreter ABI Platform Actions
turkce_seo_slug-0.1.0-py3-none-any.whl Python 3 none any Details for turkce_seo_slug-0.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / turkce_seo_slug-0.1.0.tar.gz

Download URL turkce_seo_slug-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e2a873ed48a609349ec1149260b9f206811d1682bbf171aeee9e618dd9096684
BLAKE2b-256 checksum
How to use checksums
9dc36bbebd6934baed3e2c91443ad804cdca14f0002787916015678cb9e178c8
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.0-py3-none-any.whl

Download URL turkce_seo_slug-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9189975503c5c58dfe8a17852eac0faf7833238266c9db0319ac3c17304d21d
BLAKE2b-256 checksum
How to use checksums
435683cfc8721f888f33474b94a7f39d634a6bd98be58043c1e187f441d3d01e
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.0

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