saad-dev
حزمة Python صغيرة باسم saad_dev تعيد تصدير واجهة مكتبة random القياسية بأسلوب مألوف:
import saad_dev
print(saad_dev.randint(1, 10))
print(saad_dev.choice(["SAAD", "DEV", "TOOLS"]))
تعتمد الحزمة على تنفيذ Python القياسي نفسه، ولا تضيف اعتماديات خارجية.
التثبيت
بعد نشرها على PyPI:
python -m pip install saad-dev
يقبل pip أيضًا الاسم بالشرطة السفلية في بعض الأوامر لأن PyPI يطبع أسماء المشاريع بصيغة موحّدة، لكن الاسم الموصى به هو saad-dev.
أمثلة
import saad_dev
saad_dev.seed(2026)
print(saad_dev.random())
print(saad_dev.randint(1, 100))
print(saad_dev.randrange(0, 100, 5))
print(saad_dev.uniform(1.5, 9.5))
print(saad_dev.choice(["red", "green", "blue"]))
print(saad_dev.choices(["A", "B", "C"], k=5))
print(saad_dev.sample(range(100), k=5))
items = ["SAAD", "DEV", "PYTHON"]
saad_dev.shuffle(items)
print(items)
الكائن Random
from saad_dev import Random
rng = Random(1234)
print(rng.randint(1, 10))
تنبيه أمني
random مناسبة للاستخدامات العامة والمحاكاة والألعاب، لكنها ليست مولّدًا عشوائيًا تشفيريًا. للرموز أو كلمات المرور أو أي قرار أمني استخدم مكتبة Python القياسية secrets.
الترخيص
MIT.
Metadata
Release files for saad-dev 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saad_dev-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for saad_dev-0.1.0-py3-none-any.whl |
Release files / saad_dev-0.1.0-py3-none-any.whl
| Download URL | saad_dev-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fd41459e957620f58ee6dac7318e15b8a6619f404cdb0b039f6539820f7429d
|
|
BLAKE2b-256 checksum How to use checksums |
658641ed991505faa96ed3a6d31375356b7918c14ec738c33a9aaa3374f506bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for saad-dev 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.