A Python toolkit for common tasks, including Redis operations
Project description
cc-toolkit
A Python toolkit for common tasks.
Installation
You can install cc-toolkit using pip:
pip install cc-toolkit
Usage
Greeting Function
from cc_toolkit import greet
# Generate a greeting message
message = greet("World")
print(message) # Output: Hello, World! Welcome to cc_toolkit.
Calculator Function
from cc_toolkit import calculate
# Addition
result = calculate(5, 3, "add")
print(f"5 + 3 = {result}") # Output: 5 + 3 = 8
# Subtraction
result = calculate(5, 3, "subtract")
print(f"5 - 3 = {result}") # Output: 5 - 3 = 2
# Multiplication
result = calculate(5, 3, "multiply")
print(f"5 * 3 = {result}") # Output: 5 * 3 = 15
# Division
result = calculate(6, 3, "divide")
print(f"6 / 3 = {result}") # Output: 6 / 3 = 2
Features
- Simple greeting function
- Basic arithmetic operations
- Easy to extend with new functionality
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
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
cc_toolkit-0.2.0.tar.gz
(6.1 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 cc_toolkit-0.2.0.tar.gz.
File metadata
- Download URL: cc_toolkit-0.2.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
563799eb515f28232fed340481efb6bed616a6a4ee57b38b75befc0a16a2e35e
|
|
| MD5 |
3162cd06665e149c5bb1ffefd6e2ff62
|
|
| BLAKE2b-256 |
3e13d5f5799c05582bc7320fcbcc9ea6acd6494805470fc7dd78dfe3fa954bb8
|
File details
Details for the file cc_toolkit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cc_toolkit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573ce1ca544a5d2be845dfaecf54dad3980fe9287122d52aa4d15339e899c253
|
|
| MD5 |
e423be8fbec27785642d50f2b88dc845
|
|
| BLAKE2b-256 |
293b4f059a87e0604f7ddffab8a215cbf8707b89ac24db72846ce09adc1d0dde
|