A minimal Hello-World utility library for testing PyPI publishing.
Project description
paml-tester
A minimal, zero-dependency Python utility library created to demonstrate clean PyPI publishing with PEP 621 / setuptools.
Installation
pip install paml-tester
Quick Start
from paml_tester import (
reverse_string,
is_palindrome,
word_count,
clamp,
percentage,
factorial,
days_until,
age_in_years,
)
# ── String helpers ──────────────────────────────
print(reverse_string("hello")) # 'olleh'
print(is_palindrome("racecar")) # True
print(word_count("one two three")) # 3
# ── Math helpers ────────────────────────────────
print(clamp(150, 0, 100)) # 100
print(percentage(1, 4)) # 25.0
print(factorial(6)) # 720
# ── Date helpers ────────────────────────────────
import datetime
print(days_until(datetime.date(2026, 12, 31))) # days from today
print(age_in_years(datetime.date(2000, 6, 15))) # e.g. 25
API Reference
String helpers
| Function | Description |
|---|---|
reverse_string(text) |
Reverse a string |
is_palindrome(text) |
Check if a string is a palindrome (case-insensitive) |
word_count(text) |
Count whitespace-separated words |
Math helpers
| Function | Description |
|---|---|
clamp(value, low, high) |
Restrict a number to a range |
percentage(part, total, decimals=2) |
Compute what % part is of total |
factorial(n) |
Return n! for non-negative integers |
Date helpers
| Function | Description |
|---|---|
days_until(target) |
Days from today to a target date |
age_in_years(birthdate) |
Full years elapsed since a birthdate |
Project layout
paml_tester_pkg/
├── paml_tester/
│ ├── __init__.py
│ └── utils.py
├── pyproject.toml
├── README.md
└── LICENSE
Building & publishing
# Install build tools (once)
pip install build twine
# Build wheel + sdist
python -m build
# Upload to PyPI (you need a PyPI account + API token)
twine upload dist/*
License
MIT — see LICENSE for details.
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
paml_tester-0.1.1.tar.gz
(9.6 kB
view details)
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 paml_tester-0.1.1.tar.gz.
File metadata
- Download URL: paml_tester-0.1.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffbe3bd633b524a03f1f06aad91d6faae2f3b837aa6d15bfb05fa8a6b46bae5
|
|
| MD5 |
961755bebcce53d53d5594e51535dca5
|
|
| BLAKE2b-256 |
72b27887f84a6f89891c852facb27cbc50c9396cdd867d3d667cd7942284be8b
|
File details
Details for the file paml_tester-0.1.1-py3-none-any.whl.
File metadata
- Download URL: paml_tester-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54abae568849b0d525f1a8f087011d7d895385c4b4dae2f71e5e71a688821c4c
|
|
| MD5 |
03408a11f25bf910c3655290a64b275d
|
|
| BLAKE2b-256 |
b24e971d96f041a1816ca270f3f1f43da331c41d9afabeca9166cbd4e7e56989
|