Skip to main content

Advanced Python utilities and tools by Duc Van Nguyen

Project description

ducvannguyen v6.0.0

Advanced Python utilities and tools by Duc Van Nguyen.

Installation

pip install ducvannguyen

Features

🚀 Advanced Utilities Package

Ducvannguyen v6.0.0 provides comprehensive utilities for:

📝 String Utilities

import ducvannguyen

utils = ducvannguyen.string_utils()
print(utils["reverse"]("hello"))  # "olleh"
print(utils["is_palindrome"]("racecar"))  # True
print(utils["word_count"]("Hello world"))  # 2

🔢 Math Utilities

utils = ducvannguyen.math_utils()
print(utils["factorial"](5))  # 120
print(utils["is_prime"](17))  # True
print(utils["gcd"](48, 18))  # 6

📋 List Utilities

utils = ducvannguyen.list_utils()
print(utils["unique"]([1, 2, 2, 3, 3, 4]))  # [1, 2, 3, 4]
print(utils["chunk"]([1, 2, 3, 4, 5], 2))  # [[1, 2], [3, 4], [5]]

📁 File Utilities

utils = ducvannguyen.file_utils()
print(utils["get_extension"]("test.txt"))  # ".txt"
print(utils["is_file"]("test.txt"))  # True/False

📅 DateTime Utilities

utils = ducvannguyen.datetime_utils()
print(utils["now"]())  # "2024-01-15 14:30:00"
print(utils["add_days"](7))  # "2024-01-22"

🌐 Web Utilities

utils = ducvannguyen.web_utils()
print(utils["get_domain"]("https://example.com/path"))  # "example.com"
print(utils["is_valid_url"]("https://example.com"))  # True

🎲 Random Utilities

utils = ducvannguyen.random_utils()
print(utils["random_string"](10))  # "aB3dE7fG9h"
print(utils["uuid4"]())  # "550e8400-e29b-41d4-a716-446655440000"

✅ Validation Utilities

utils = ducvannguyen.validate_utils()
print(utils["is_email"]("user@example.com"))  # True
print(utils["is_strong_password"]("Passw0rd!"))  # True

🎯 All-in-One Access

# Get all utilities at once
all_utils = ducvannguyen.all_utils()

# Access any utility
print(all_utils["string"]["reverse"]("hello"))
print(all_utils["math"]["factorial"](5))
print(all_utils["validate"]["is_email"]("test@example.com"))

📊 Package Information

import ducvannguyen

print(ducvannguyen.hello())  # "Hello from ducvannguyen package v6.0.0!"
print(ducvannguyen.get_info())  # Package details

🚀 Quick Start

import ducvannguyen

# String operations
string_utils = ducvannguyen.string_utils()
text = "Hello World"
print(f"Original: {text}")
print(f"Reversed: {string_utils['reverse'](text)}")
print(f"Uppercase: {string_utils['uppercase'](text)}")
print(f"Word count: {string_utils['word_count'](text)}")

# Math operations
math_utils = ducvannguyen.math_utils()
print(f"Is 17 prime? {math_utils['is_prime'](17)}")
print(f"GCD of 48 and 18: {math_utils['gcd'](48, 18)}")

# Validation
validate_utils = ducvannguyen.validate_utils()
email = "user@example.com"
print(f"Is '{email}' valid? {validate_utils['is_email'](email)}")

🛠️ Installation Requirements

  • Python 3.7+
  • No external dependencies (uses only Python standard library)

📄 License

This project is licensed under the MIT License.

🔗 Links


Made with ❤️ by Duc Van Nguyen

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

ducvannguyen-6.0.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

ducvannguyen-6.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ducvannguyen-6.0.0.tar.gz.

File metadata

  • Download URL: ducvannguyen-6.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for ducvannguyen-6.0.0.tar.gz
Algorithm Hash digest
SHA256 d7b1f8fefb430ba29863e4e0b58910aa24bdf6eb1cedfda2b01d0fa8a099ad5f
MD5 8a5aa245827f68813ec3130eb34d2d3a
BLAKE2b-256 1876a3dfa918a1eda7c316d0a6a1037bf01638ed2c8db1c36d51d039e2514646

See more details on using hashes here.

File details

Details for the file ducvannguyen-6.0.0-py3-none-any.whl.

File metadata

  • Download URL: ducvannguyen-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for ducvannguyen-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce475dc1214bd0767070dc1a91c5d1686ad695b17f5d2cf0c9c9a86d211193c
MD5 9615c94b18a8219a10012cf5c27f48cd
BLAKE2b-256 2f046a30d31b5646f1541a9acaea30f794cdf84fd92c172ab7d6cfb709e99767

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