Skip to main content

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


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)

Uploaded Source

Built Distribution

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

cc_toolkit-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for cc_toolkit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 563799eb515f28232fed340481efb6bed616a6a4ee57b38b75befc0a16a2e35e
MD5 3162cd06665e149c5bb1ffefd6e2ff62
BLAKE2b-256 3e13d5f5799c05582bc7320fcbcc9ea6acd6494805470fc7dd78dfe3fa954bb8

See more details on using hashes here.

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

Hashes for cc_toolkit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 573ce1ca544a5d2be845dfaecf54dad3980fe9287122d52aa4d15339e899c253
MD5 e423be8fbec27785642d50f2b88dc845
BLAKE2b-256 293b4f059a87e0604f7ddffab8a215cbf8707b89ac24db72846ce09adc1d0dde

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