Skip to main content

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:

  1. logic: Base conversions (Bin, Oct, Hex)
  2. academic: Grading and GPA calculations
  3. crypto: Hashing and basic encryption
  4. storage: Byte conversions and download time estimation
  5. color: RGB and HEX color tools
  6. randomizer: Password generators and coin flips
  7. time_utils: Timestamps and formatting
  8. network: Local IP fetching
  9. file_ops: File extension extraction
  10. utils: Cross-platform console clearing

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

comsci_tools-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

comsci_tools-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for comsci_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a46175af7e27f2ab283509863f6345bf40d648035f72d856d2a52f1e4396c7d
MD5 87f58c2dce3a8ba6c56e9ec95af5edef
BLAKE2b-256 22cb2251a4b10475883b4b9238d3475790819fc91a428ac4f38497979ba7d0e9

See more details on using hashes here.

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

Hashes for comsci_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 949c2b958f703a72cd226b271569a29468090e9a27e4c06bf17f9dcd8d44446d
MD5 92ed0bd66237aede3abad59aedf12c3d
BLAKE2b-256 d1be397ecf01ae3f5897126597c3ac1fb3662028aa32f176c0eaa244bedaf516

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