A small beginner-friendly Python utility library for numbers and text.
Project description
memona-tools
memona-tools is a small Python library created for an IDS Python library and PyPI deployment task.
It contains two simple modules:
memona_tools.numbers: useful number and calculation helpersmemona_tools.text: useful text processing helpers
Installation
After publishing to PyPI:
pip install memona-tools
For local testing before publishing:
pip install -e .
Quick Examples
from memona_tools.numbers import average, is_even
from memona_tools.text import word_count, title_case
print(average([10, 20, 30]))
print(is_even(12))
print(word_count("Python library project"))
print(title_case("my first python package"))
Expected output:
20.0
True
3
My First Python Package
Build and Publish
Install build tools:
pip install build twine
Build the package:
python -m build
Upload to TestPyPI first:
python -m twine upload --repository testpypi dist/*
Upload to real PyPI:
python -m twine upload dist/*
Note: PyPI requires an account and an API token.
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
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 memona_tools-0.1.0.tar.gz.
File metadata
- Download URL: memona_tools-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adee14afde507fa9471481e9c20d77334bb3606a9a15507c63ca626f26f70315
|
|
| MD5 |
b301d84c32170c58f33df05fe2763095
|
|
| BLAKE2b-256 |
c345452daa4a2a7eaab36687d2cbdadfb9ac2b810caa17af153149a2a96cec7d
|
File details
Details for the file memona_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: memona_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43550623939acbd54146b3925f9fa1345120e9efeb0054ca5fca142d9fc01287
|
|
| MD5 |
01be0201ba3d33ea6b1be5a2c71834a3
|
|
| BLAKE2b-256 |
ef26266696941ce77cbde6952b324851e964360b1db4a9a1152734efbc07310e
|