Skip to main content

✨ RiyaKit

Tiny tools. Smarter Python.

A clean, beginner-friendly Python utility package created by Riya
for Python programming coursework.

Python License Version

Author: Riya · Roll No.: 2432787


🌷 About

RiyaKit is a small collection of reusable functions for common text, numeric, and input-validation tasks. It demonstrates how to organize Python code into a distributable package, document its functions, test it, and prepare it for publication on the Python Package Index (PyPI).

📦 Install

Once published on PyPI:

python -m pip install riya-utility-kit

Before publication, install from the extracted project directory:

python -m pip install -e .

PyPI package names must be unique. Check whether riya-utility-kit is available before uploading.

⚡ Quick start

from riyakit import slugify, word_count, clamp

print(slugify("My Python Assignment!"))
# my-python-assignment

print(word_count("Learning Python is fun"))
# 4

print(clamp(120, 0, 100))
# 100

🧰 Included functions

Function What it does
slugify(text) Converts text to a URL-friendly slug
word_count(text) Counts whitespace-separated words
reverse_words(text) Reverses the order of words
clamp(value, minimum, maximum) Keeps a number within a range
percentage(part, whole) Calculates a percentage
is_valid_email(email) Performs a basic email-format check
is_strong_password(password) Checks simple password-strength rules

🧪 More examples

from riyakit import reverse_words, percentage
from riyakit import is_valid_email, is_strong_password

print(reverse_words("Python makes learning fun"))
# fun learning makes Python

print(percentage(25, 200))
# 12.5

print(is_valid_email("hello@example.com"))
# True

print(is_strong_password("StrongPass9!"))
# True

🧪 Run tests

python -m pip install --upgrade pytest
python -m pytest

📁 Project structure

riya-utility-kit/
├── pyproject.toml
├── README.md
├── LICENSE
├── .gitignore
├── src/
│   └── riyakit/
│       ├── __init__.py
│       ├── text.py
│       ├── numbers.py
│       └── validators.py
└── tests/
    └── test_riyakit.py

🚀 Publish to official PyPI

  1. Create and verify your account at https://pypi.org/account/register/.

  2. Confirm riya-utility-kit is available.

  3. From the project root, run:

    python -m pip install --upgrade build twine
    python -m build
    python -m twine check dist/*
    
  4. Optionally practise on TestPyPI first:

    python -m twine upload --repository testpypi dist/*
    
  5. Create a PyPI API token and upload to official PyPI:

    python -m twine upload dist/*
    

    Enter your API token when prompted. Do not share it or commit it to your project.

After a successful upload, the expected project URL is: https://pypi.org/project/riya-utility-kit/

ℹ️ Limitations

  • Email validation checks only a simple format; it cannot confirm that an address exists.
  • Password validation is a basic learning example, not a full security assessment.

👩‍💻 Author

Riya
Roll Number: 2432787
Python Programming Assignment

📄 License

MIT License. See LICENSE.

Metadata

Release files for riya-utility-kit 0.1.0

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

Source distribution (sdist)

Source distribution for riya-utility-kit 0.1.0
File Size Uploaded Provenance Actions
riya_utility_kit-0.1.0.tar.gz 4.3 kB Without provenance Details for riya_utility_kit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for riya-utility-kit 0.1.0
File Interpreter ABI Platform Actions
riya_utility_kit-0.1.0-py3-none-any.whl Python 3 none any Details for riya_utility_kit-0.1.0-py3-none-any.whl

Total release size: 9.7 kB

Release files / riya_utility_kit-0.1.0.tar.gz

Download URL riya_utility_kit-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
92f90598389c40230ca69530fe0da2247821624996f637259a10eede51a66da8
BLAKE2b-256 checksum
How to use checksums
3765e9555c4f283c471ee3dfbb8ea69e1ec078dc5c68ccb30e58fcd494881aab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / riya_utility_kit-0.1.0-py3-none-any.whl

Download URL riya_utility_kit-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c104546c4037f1a91455a40c6139d8dcd6f9dcdd653f58e0d55832a02e867210
BLAKE2b-256 checksum
How to use checksums
27ae987a958a4206f507c013250cca2622540eadbf192b97a17ebb2fb05d4657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for riya-utility-kit 0.1.0

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.0 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