A comprehensive utility toolkit for Computer Science students and developers.
Project description
comsci-tools
A comprehensive utility toolkit designed to make the lives of Computer Science students and developers easier. Whether you are calculating GPA, converting number bases for Digital Logic class, or generating secure passwords, this package has you covered!
Installation
You can easily install this package via pip:
pip install comsci-tools
Quick Start & Examples
Here are some real-world examples of how to use the modules included in this package:
1. Base Converter (Digital Logic & Architecture)
Perfect for computer science math and architecture calculations.
from comsci_tools import dec_to_bin, dec_to_hex
print(dec_to_bin(255)) # Output: 11111111
print(dec_to_hex(255)) # Output: FF
2. Academic Tools
Easily calculate your exact GPA using standard university formats.
from comsci_tools import gpa_calculator
# Format: [(Grade Point, Credits), ...]
my_grades = [
(4.0, 3), # Programming (A)
(3.5, 3), # Mathematics (B+)
(3.0, 3) # English (B)
]
print(f"My GPA is: {gpa_calculator(my_grades)}")
# Output: My GPA is: 3.5
3. Web Development Tools (HTML/CSS)
Quickly convert RGB colors to HEX codes for web design.
from comsci_tools import rgb_to_hex
color = rgb_to_hex(255, 99, 71)
print(f"Tomato color hex: {color}")
# Output: Tomato color hex: #FF6347
4. Cryptography & Security
Generate secure passwords or use basic encryption.
from comsci_tools import generate_password, hash_md5
# Generate a 16-character secure password
print(generate_password(16))
# Hash a string using MD5
print(hash_md5("my_secret_data"))
Available Modules Included
This package contains 10 powerful modules:
logic: Base conversions (Bin, Oct, Hex)academic: Grading and GPA calculationscrypto: Hashing and basic encryptionstorage: Byte conversions and download time estimationcolor: RGB and HEX color toolsrandomizer: Password generators and coin flipstime_utils: Timestamps and formattingnetwork: Local IP fetchingfile_ops: File extension extractionutils: Cross-platform console clearing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comsci_tools-0.1.0.tar.gz.
File metadata
- Download URL: comsci_tools-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a46175af7e27f2ab283509863f6345bf40d648035f72d856d2a52f1e4396c7d
|
|
| MD5 |
87f58c2dce3a8ba6c56e9ec95af5edef
|
|
| BLAKE2b-256 |
22cb2251a4b10475883b4b9238d3475790819fc91a428ac4f38497979ba7d0e9
|
File details
Details for the file comsci_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: comsci_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
949c2b958f703a72cd226b271569a29468090e9a27e4c06bf17f9dcd8d44446d
|
|
| MD5 |
92ed0bd66237aede3abad59aedf12c3d
|
|
| BLAKE2b-256 |
d1be397ecf01ae3f5897126597c3ac1fb3662028aa32f176c0eaa244bedaf516
|