Skip to main content

A Python package to standardize my workflows and simplify repetitive tasks.

Project description


CoreEase
Why work harder when you can CoreEase?

What is CoreEase?

CoreEase is a Python package designed to simplify your workflow by automating repetitive tasks, handling threads efficiently, and providing easy utilities for system operations. Whether it's managing files, automating browsers, or working with system resources, CoreEase helps you do more with less effort.


Features:

  1. Thread Management:

    • Execute tasks in parallel with simple threading.
    • Includes an animated load buffer to keep things looking productive.
  2. Browser Automation:

    • Headless browsing, form filling, and button clicking.
    • Easy parsing of links, buttons, and login forms.
  3. File Handling:

    • Check file existence, create files, append content, and overwrite efficiently.
  4. Console Tricks:

    • Clear the console, print centered text, or enumerate lists stylishly.
  5. System Utilities:

    • Get system-related information like the current user, CPU count, console size, and system time.
    • Calculate time differences between current time and a target time (useful for scheduling tasks).

Installation:

You can install CoreEase directly from PyPI using pip:

pip install CoreEase

Alternatively, to get the latest version from GitHub:

pip install git+https://github.com/Casbian/CoreEase.git

After uploading to PyPI, users can easily install the package directly from there.


Quickstart Guide:

  1. Master Multithreading
    Let CoreEase handle thread management for you:

    from CoreEase.threads import SubmitTasktoThreadWITHLoadBuffer
    
    def my_task():  
        print("Doing some important stuff...")
    
    SubmitTasktoThreadWITHLoadBuffer(my_task)
    

    Effortless threading with built-in buffering.

  2. Browser Automation
    Automate web tasks with minimal effort:

    from CoreEase.web import StartBrowser, GoToUrl, ParseforLinks
    
    StartBrowser()  
    GoToUrl("https://example.com")  
    http_links, https_links = ParseforLinks()  
    print("HTTP Links:", http_links)  
    print("HTTPS Links:", https_links)
    
  3. Handle Files
    Simplify file operations:

    from CoreEase.files import CheckFileExistence, CreateFile, AppendtoFile
    
    file_name = "example.txt"
    
    if not CheckFileExistence(file_name):  
        CreateFile(file_name)  
    
    AppendtoFile(file_name, "This is a line of text!")
    
  4. Console Wizardry
    Keep your console clean and professional:

    from CoreEase.console import ClearConsole, CenteredPrint
    
    ClearConsole()  
    CenteredPrint("Welcome to CoreEase!", "*")
    
  5. System Utilities
    Use CoreEase to get current system information or calculate time differences:

    from CoreEase.system import CurrentUser, CPUCount, ConsoleHeight, ConsoleWidth, CurrentSystemTime, CalculateTimeDifferencetoTargetTime24HourFrame
    
    print("Current User:", CurrentUser())  
    print("CPU Count:", CPUCount())  
    print("Console Height:", ConsoleHeight())  
    print("Console Width:", ConsoleWidth())  
    print("Current System Time:", CurrentSystemTime())  
    
    target_time = "14:30"  # 2:30 PM
    time_diff = CalculateTimeDifferencetoTargetTime24HourFrame(target_time)
    if time_diff:
        print(f"Time difference to {target_time}: {time_diff}")
    else:
        print("Target time has already passed.")
    

New Features:

  • Time Management:
    CoreEase provides an easy way to calculate the time difference between the current system time and a target time (in a 24-hour format). Ideal for scheduling tasks or automating time-sensitive workflows.

    from CoreEase.system import CalculateTimeDifferencetoTargetTime24HourFrame
    
    target_time = "23:59"
    time_diff = CalculateTimeDifferencetoTargetTime24HourFrame(target_time)
    if time_diff:
        print(f"Time until target time: {time_diff}")
    else:
        print("The target time has already passed.")
    
  • System Information:
    Quickly get essential system information like the current user, CPU count, console size, and system time:

    from CoreEase.system import CurrentUser, CPUCount, ConsoleHeight, ConsoleWidth, CurrentSystemTime
    
    print("Current User:", CurrentUser())
    print("CPU Count:", CPUCount())
    print("Console Height:", ConsoleHeight())
    print("Console Width:", ConsoleWidth())
    print("Current Time:", CurrentSystemTime())
    

Contributing:

Want to add a feature or fix a bug? Contributing is simple:

  1. Fork the repository.
  2. Clone it:
    git clone https://github.com/Casbian/CoreEase.git
  3. Make your changes.
  4. Submit a pull request.

License:

CoreEase is licensed under the MIT License. Feel free to share, remix, and improve it!


This expansion covers the new utilities you added, focusing on system info retrieval, time management, and enhancements to threading. Let me know if you'd like to add anything else or further refine the README!Based on the new code you've provided, I'll expand your README to include these additional features, such as system-related utilities, time management, and more advanced threading options. Here's the updated README with those enhancements:


CoreEase
Why work harder when you can CoreEase?

What is CoreEase?

CoreEase is a Python package designed to simplify your workflow by automating repetitive tasks, handling threads efficiently, and providing easy utilities for system operations. Whether it's managing files, automating browsers, or working with system resources, CoreEase helps you do more with less effort.


Features:

  1. Thread Management:

    • Execute tasks in parallel with simple threading.
    • Includes an animated load buffer to keep things looking productive.
  2. Browser Automation:

    • Headless browsing, form filling, and button clicking.
    • Easy parsing of links, buttons, and login forms.
  3. File Handling:

    • Check file existence, create files, append content, and overwrite efficiently.
  4. Console Tricks:

    • Clear the console, print centered text, or enumerate lists stylishly.
  5. System Utilities:

    • Get system-related information like the current user, CPU count, console size, and system time.
    • Calculate time differences between current time and a target time (useful for scheduling tasks).

Installation:

You can install CoreEase directly from PyPI using pip:

pip install CoreEase

Alternatively, to get the latest version from GitHub:

pip install git+https://github.com/Casbian/CoreEase.git

After uploading to PyPI, users can easily install the package directly from there.


Quickstart Guide:

  1. Master Multithreading
    Let CoreEase handle thread management for you:

    from CoreEase.threads import SubmitTasktoThreadWITHLoadBuffer
    
    def my_task():  
        print("Doing some important stuff...")
    
    SubmitTasktoThreadWITHLoadBuffer(my_task)
    

    Effortless threading with built-in buffering.

  2. Browser Automation
    Automate web tasks with minimal effort:

    from CoreEase.web import StartBrowser, GoToUrl, ParseforLinks
    
    StartBrowser()  
    GoToUrl("https://example.com")  
    http_links, https_links = ParseforLinks()  
    print("HTTP Links:", http_links)  
    print("HTTPS Links:", https_links)
    
  3. Handle Files
    Simplify file operations:

    from CoreEase.files import CheckFileExistence, CreateFile, AppendtoFile
    
    file_name = "example.txt"
    
    if not CheckFileExistence(file_name):  
        CreateFile(file_name)  
    
    AppendtoFile(file_name, "This is a line of text!")
    
  4. Console Wizardry
    Keep your console clean and professional:

    from CoreEase.console import ClearConsole, CenteredPrint
    
    ClearConsole()  
    CenteredPrint("Welcome to CoreEase!", "*")
    
  5. System Utilities
    Use CoreEase to get current system information or calculate time differences:

    from CoreEase.system import CurrentUser, CPUCount, ConsoleHeight, ConsoleWidth, CurrentSystemTime, CalculateTimeDifferencetoTargetTime24HourFrame
    
    print("Current User:", CurrentUser())  
    print("CPU Count:", CPUCount())  
    print("Console Height:", ConsoleHeight())  
    print("Console Width:", ConsoleWidth())  
    print("Current System Time:", CurrentSystemTime())  
    
    target_time = "14:30"  # 2:30 PM
    time_diff = CalculateTimeDifferencetoTargetTime24HourFrame(target_time)
    if time_diff:
        print(f"Time difference to {target_time}: {time_diff}")
    else:
        print("Target time has already passed.")
    

New Features:

  • Time Management:
    CoreEase provides an easy way to calculate the time difference between the current system time and a target time (in a 24-hour format). Ideal for scheduling tasks or automating time-sensitive workflows.

    from CoreEase.system import CalculateTimeDifferencetoTargetTime24HourFrame
    
    target_time = "23:59"
    time_diff = CalculateTimeDifferencetoTargetTime24HourFrame(target_time)
    if time_diff:
        print(f"Time until target time: {time_diff}")
    else:
        print("The target time has already passed.")
    
  • System Information:
    Quickly get essential system information like the current user, CPU count, console size, and system time:

    from CoreEase.system import CurrentUser, CPUCount, ConsoleHeight, ConsoleWidth, CurrentSystemTime
    
    print("Current User:", CurrentUser())
    print("CPU Count:", CPUCount())
    print("Console Height:", ConsoleHeight())
    print("Console Width:", ConsoleWidth())
    print("Current Time:", CurrentSystemTime())
    

Contributing:

Want to add a feature or fix a bug? Contributing is simple:

  1. Fork the repository.
  2. Clone it:
    git clone https://github.com/Casbian/CoreEase.git
  3. Make your changes.
  4. Submit a pull request.

License:

CoreEase is licensed under the MIT License. Feel free to share, remix, and improve it!


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

coreease-0.1.9.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

CoreEase-0.1.9-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file coreease-0.1.9.tar.gz.

File metadata

  • Download URL: coreease-0.1.9.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for coreease-0.1.9.tar.gz
Algorithm Hash digest
SHA256 1e2f0037c09d678df63c1fe1f13ba5f1931b55eb56a2da166fac55cb6574914d
MD5 848669f71f2abc8069641f6d44f7debc
BLAKE2b-256 8de81e6cae38383835b6b93cbfbd54a5bf644421dc5f55d135a97fe7ecd20de8

See more details on using hashes here.

File details

Details for the file CoreEase-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: CoreEase-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for CoreEase-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf541bdb24e5e68aa0a19b27ed44a2b79b66bc7725b37e1e824a61ca953f182
MD5 0a68671ee01fadfa726c8ae8c0ba4a57
BLAKE2b-256 d2aa805b9abc9c9417803cf2b66a81c8e4b2e5959ccde0f7f1e6c7bba5838a36

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