Library Python sederhana dengan utilitas contoh
Project description
Sederhana
Library Python sederhana sebagai template untuk memulai membuat package.
Fitur
- add(a, b): penjumlahan dua angka
- factorial(n): faktorial bilangan bulat non-negatif
Struktur Proyek
.
├─ pyproject.toml
├─ README.md
├─ src/
│ └─ sederhana/
│ ├─ __init__.py
│ └─ mathutils.py
└─ tests/
└─ test_mathutils.py
Pengembangan Lokal
- Buat virtualenv (opsional tapi disarankan)
- Instal editable:
pip install -e .
- Jalankan test (membutuhkan
pytest):
pytest -q
Build Rilis
Untuk membangun wheel dan sdist (membutuhkan paket build):
pip install build
python -m build
Artefak akan tersedia di folder dist/.
Contoh Penggunaan
from sederhana import add, factorial
print(add(2, 3)) # 5
print(factorial(5)) # 120
Lisensi
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file naingood_sederhana-0.1.1.tar.gz.
File metadata
- Download URL: naingood_sederhana-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13870991ac70313ca3771369104c50b4deddc2f2196619da41365626636a1cfe
|
|
| MD5 |
bc4ab7c5dfa1f4566fb4adcc6001e059
|
|
| BLAKE2b-256 |
c83f99fa9bed4dd859baf88272b539cad8625820f2d62c19059485126b3e68c7
|
File details
Details for the file naingood_sederhana-0.1.1-py3-none-any.whl.
File metadata
- Download URL: naingood_sederhana-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532fe141f092d39afced6ac5b6d730944f6976fc4f5895155632db9ed52cfa81
|
|
| MD5 |
30fdfe984816846ec17942b94ddd8418
|
|
| BLAKE2b-256 |
331f76260fccb29f7135fc2099d2b01a8ea0dc728ac15a696783493fdef7cdba
|