Skip to main content

This library has been created for school CS students so that they can do their assignments easily. This library is currently under development more functions will be added in the next version.

Project description

🛠️ GodKit: Python Multi-Utility Toolkit

GodKit ek comprehensive collection hai Python utility functions ki jo arithmetic, mathematical logic, string analysis, aur data management ko asaan banati hai. Ye toolkit multiple data types ko handle karne aur user-provided data ke detailed insights dene ke liye design kiya gaya hai.


🚀 Features & Usage Examples

1. Arithmetic & Power Operations

Ye functions *args ka use karte hain taaki aap ek saath kai saare inputs handle kar sakein.

Function Description Example Usage Result
addends() Numbers ko jodta hai ya strings ko join karta hai. addends(10, 20) / addends("Py", "thon") 30 / "Python"
minuend() Pehle value se baaki sab ko subtract karta hai. minuend(100, 10, 5) 85
product() Multiply karta hai ya strings ko repeat karta hai. product(5, 4) / product("Go", 3) 20 / "GoGoGo"
divide() Sequence mein division karta hai (with error handling). divide(50, 5) 10.0
cube() Diye gaye numbers ka cube print karta hai. cube(2, 3) Cube of 2 is 8...
squa() Diye gaye numbers ka square print karta hai. squa(4, 5) Square of 4 is 16...

2. Mathematical Logic Checks

Functions jo numbers ki properties aur scientific categories verify karte hain.

  • check_prime(): Check karta hai ki number sirf 1 aur khud se divide hota hai ya nahi.
  • check_armstrong(): Verifies if the sum of digits raised to the power of 3 equals the number.
  • check_perfect(): Check karta hai agar proper divisors ka sum number ke barabar hai.
  • check_palindrome(): Verifies if a string/number reads the same backward.
  • check_leap_year(year): Logic-based check for leap years.

3. Sequences & Calculations

  • factorial(): 1 se lekar n tak ke saare integers ka product calculate karta hai.
  • fibonacci_series(): Fibonacci sequence generate karta hai (e.g., 0, 1, 1, 2, 3).
  • simple_intrest(): Principle, Rate, aur Time ke basis par interest calculate karta hai.
  • sum_integer(): n se 0 tak ka total sum nikalta hai (supports negative input).

4. String & Text Analysis

  • alphabet(): String ka detailed analysis (Vowels, Consonants, Case, Digits).
  • count_frequency(): String mein kisi specific character ki frequency count karta hai.
  • num_to_words(): Digits ko English word equivalents mein badalta hai (e.g., 45"Four Five").

5. Data & Comparison Tools

  • friends_phone() / friends_salary(): Data manage karta hai aur use Tuple, List, ya Dictionary format mein display karta hai.
  • largest_number() / smallest_number(): Multiple numbers ko compare karke max/min aur unki frequency batata hai.
  • count_odd_even(): 1 se n tak ki range mein Odd aur Even numbers count karta hai.
  • traversing(*args): Kisi bhi collection (List, Dict, Tuple) ko iterate karke elements print karta hai.

6. Loop-Based Utilities

  • table(): 1 se lekar number n tak multiplication tables generate karta hai.
  • reverse_counting(): n se 1 tak reverse counting print karta hai.

🛠️ How to Use

  1. Library Import Karein:
    import GodKit
    
  2. Function Call Karein: Aap function ko directly call kar sakte hain. Kuch functions input terminal mein mangenge:
    # Table generator chalane ke liye:
    GodKit.table()
    
    # Prime number check karne ke liye:
    GodKit.check_prime()
    
  3. Terminal Mein Run Karein:
    pip install GodKit
    

📝 License

This toolkit is open-source and free to use for educational purposes.

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

godkit-1.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

godkit-1.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file godkit-1.0.0.tar.gz.

File metadata

  • Download URL: godkit-1.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for godkit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 397ed1e626ca82fbe8d6a1dc77206829710cf9730b7825b9d5a7ccb6491d2830
MD5 f5e4de1900d7c47954c956d0f7785831
BLAKE2b-256 aa3735609ce10c46395a0a1a4a9eba9fd89c7d6028f2634cf2f948ab4e4311a5

See more details on using hashes here.

File details

Details for the file godkit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: godkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for godkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 784fa7a50c130389607f91e381f11b59dd3fe35cccd11aee632efa90ee52aa94
MD5 fb0c8b41c58aca3b5b698d42fda2c206
BLAKE2b-256 5feead37f04a27a7a7da57a926ab76ec4e7a95cd3adf3ccbfcbd08b1f753f546

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