Skip to main content

A minimal Hello-World utility library for testing PyPI publishing.

Project description

paml-tester

PyPI version Python License: MIT

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


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.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

paml_tester-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: paml_tester-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for paml_tester-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a8d88d536318a7bcb1e744f08934239c4e8f0f9af36e2b6d74824af389ecceb
MD5 789d891e3b0aebff551fe4f6a4135bc0
BLAKE2b-256 b6ba7d877227c7905c1e096c53c04770f19235f8ab3b6f209eb384c2f55c8a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paml_tester-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for paml_tester-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df62bdce3a28f220f158b20ddfd397983ee6f5f634e58626a3b952029226a13e
MD5 d7163347f80355bfdabc91f751c56a03
BLAKE2b-256 fda4b3e3b173f6d26a3f8e1148f682afc0e110d5ee62816f49f5abfa13efa0c6

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