Skip to main content

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

  1. Buat virtualenv (opsional tapi disarankan)
  2. Instal editable:
pip install -e .
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naingood_sederhana-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naingood_sederhana-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file naingood_sederhana-0.1.0.tar.gz.

File metadata

  • Download URL: naingood_sederhana-0.1.0.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

Hashes for naingood_sederhana-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c1f32c4224a6e3476bab7e9fa8f8cb3553f8c87686ce386805988514bd71200
MD5 b61a79a27719923f92e4f32e8438ffa0
BLAKE2b-256 c17a842dd034bea09f633aec3d1182483fe180a6931026f4c369ed0d18bb474b

See more details on using hashes here.

File details

Details for the file naingood_sederhana-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for naingood_sederhana-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e50d96a28a836c4374486f9406ef7a8bc32340cbc46b52158e71b5f7eea7d95
MD5 43cd15aeb4040ff5c1d604f96bdfd19f
BLAKE2b-256 371954a7fc4878d45a3f38e51ef51f10964297ead339d0615ee059382d7f9f5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page