UzSonSoz
UzSonSoz — bu o‘zbek tilidagi sonlarni so‘z bilan ifodalash va aksincha so‘zlarni songa aylantirish uchun yaratilgan kutubxona. Ushbu kutubxona sonlarni o'qish va yozish uchun qulay va samarali hisoblanadi.
Muallif: Dasturbek
Xususiyatlar
- O‘zbek tilidagi sonlarni aniq va to‘g‘ri so‘z bilan ifodalaydi.
- 0 dan 999 999 999 999 gacha bo‘lgan sonlar ustida ishlaydi.
- O‘rnatish va ishlatish juda oson.
O'rnatish
Siz dasturni Python loyihangizga pip orqali o‘rnatib foydalanishingiz mumkin.
pip install UzSonSoz
Kompyuterga o‘rnatish uchun quyidagi buyruqni terminalga kiritishingiz mumkin:
git clone https://github.com/ddasturbek/UzSonSoz.git
Foydalanish
Kutubxona yordamida sonlarni so‘z bilan ifodalash uchun quyidagi sintaksisni ishlatishingiz mumkin:
import UzSonSoz as USS
print(USS.SondanSozga(0)) # nol
print(USS.SondanSozga(1)) # bir
print(USS.SondanSozga(22)) # yigirma ikki
print(USS.SondanSozga(335)) # uch yuz o‘ttiz besh
print(USS.SondanSozga(7996)) # yetti ming to‘qqiz yuz to‘qson olti
print(USS.SondanSozga(681674)) # olti yuz sakson bir ming olti yuz yetmish to‘rt
print(USS.SondanSozga(645842780)) # olti yuz qirq besh million sakkiz yuz qirq ikki ming yetti yuz sakson
Kutubxona yordamida so‘zlarni son bilan ifodalash uchun quyidagi sintaksisni ishlatishingiz mumkin:
import UzSonSoz as USS
print(USS.SozdanSonga('NOL')) # 0
print(USS.SozdanSonga('Bir')) # 1
print(USS.SozdanSonga('o\'ttiz olti')) # 36
print(USS.SozdanSonga('to‘rt yuz sakson sakkiz')) # 488
print(USS.SozdanSonga('Uch Ming Olti Yuz Qirq Yetti')) # 3647
print(USS.SozdanSonga('yettiz yuz ellik olti ming ellik')) # 756050
print(USS.SozdanSonga('O‘ttiz to‘qqiz MILLION yetti yuz to‘qson olti MING bir YUZ ellik bir')) # 39796151
print(USS.SozdanSonga('Boshqa so‘z')) # Boshqa so‘z
So‘zlarni songa aylantirganda, funksiya so‘zlarning katta-kichikligini inobatga olmagan holda to‘g‘ri ishlaydi!
Metadata
Release files for UzSonSoz 1.0
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 |
|---|---|---|---|---|
| uzsonsoz-1.0.tar.gz | 7.4 kB | Without provenance | Details for uzsonsoz-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| UzSonSoz-1.0-py3-none-any.whl | Python 3 | none | any | Details for UzSonSoz-1.0-py3-none-any.whl |
Total release size: 15.0 kB
Release files / uzsonsoz-1.0.tar.gz
| Download URL | uzsonsoz-1.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7eee1185658bf196846a2bc0f5fb262e04b753cf90a8febb336608aa18014bf
|
|
BLAKE2b-256 checksum How to use checksums |
222ed3d2df30c5b9f2e0c08ebef05b9625a946ba03557289ef952fd1ef1589b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / UzSonSoz-1.0-py3-none-any.whl
| Download URL | UzSonSoz-1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2b01340df1c64b99cf3b9346ebebaeddcac87b20e20b3d03b315e45b8385979
|
|
BLAKE2b-256 checksum How to use checksums |
509d16a5fab16ae9e5dc06d80449a832b6871eaa5a19d70bcf5975c45b9073b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Security for UzSonSoz 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.