Skip to main content

Professional Python toolkit with advanced utilities and DucVanNguyen class

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-7.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

ducvannguyen-7.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ducvannguyen-7.0.0.tar.gz
Algorithm Hash digest
SHA256 5e0b9988a508a2ba63465c670a88143a0b87fd6eaae4d6d81f489169cef28728
MD5 0e9e741f74d08569ec67ed95b326b5f8
BLAKE2b-256 8a86d9fdaf66f78a97ed1fad2cf229cbd021942c497d08c920051a9a79dfcbd9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ducvannguyen-7.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63204ca589e68ae8d8a46d4a3e86848165ce8105e2d6a9b0468f17e66a4d5723
MD5 1c4adea7531a669ef46ba6edc8f6b1ed
BLAKE2b-256 da63bb8213ca9dea19fa66a690c4f1b5f2a8f11454f53b00e971771d9c2857b1

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