Skip to main content

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

Metadata

Release files for naingood-sederhana 0.1.1

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

Source distribution (sdist)

Source distribution for naingood-sederhana 0.1.1
File Size Uploaded Provenance Actions
naingood_sederhana-0.1.1.tar.gz 2.3 kB Without provenance Details for naingood_sederhana-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for naingood-sederhana 0.1.1
File Interpreter ABI Platform Actions
naingood_sederhana-0.1.1-py3-none-any.whl Python 3 none any Details for naingood_sederhana-0.1.1-py3-none-any.whl

Total release size: 5.6 kB

Release files / naingood_sederhana-0.1.1.tar.gz

Download URL naingood_sederhana-0.1.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
13870991ac70313ca3771369104c50b4deddc2f2196619da41365626636a1cfe
BLAKE2b-256 checksum
How to use checksums
c83f99fa9bed4dd859baf88272b539cad8625820f2d62c19059485126b3e68c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / naingood_sederhana-0.1.1-py3-none-any.whl

Download URL naingood_sederhana-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
532fe141f092d39afced6ac5b6d730944f6976fc4f5895155632db9ed52cfa81
BLAKE2b-256 checksum
How to use checksums
331f76260fccb29f7135fc2099d2b01a8ea0dc728ac15a696783493fdef7cdba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for naingood-sederhana 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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