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.1.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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file cc_toolkit-0.2.1.tar.gz.

File metadata

  • Download URL: cc_toolkit-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7269dbe5ee99d1825c4f9fa942dbc131b0b0b0eeca22ee43c8ac4922b5a1a738
MD5 cb21ad68be261d8ed71aa454a3720529
BLAKE2b-256 fe5ec97d0494e664490effcba75f526b764df2a196aed53226baff0e0a5da5b1

See more details on using hashes here.

File details

Details for the file cc_toolkit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cc_toolkit-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57ab4607c2ae43fa552e46e472ded96661d4e53898b0d3d77633a65e5389d392
MD5 60f583ea2ec235618aa24c7d406ffced
BLAKE2b-256 d24309c195ca985a1f6118130457460cca5bd7e75f76d232b46d9a299ac8a7d5

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