Skip to main content

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

Project description

โš™๏ธ CoreEase โ€” Simplify Your Workflow

CoreEase is a robust Python package designed to automate repetitive tasks, manage threads efficiently, and provide easy utilities for system operations. Whether you are handling files, automating browsers, or working with system resources, CoreEase helps you streamline your workflow with powerful, ready-to-use functions.


๐Ÿš€ What's New in Version 0.3.0

  • ๐Ÿ†• Compiler Support: Convert your .py scripts into .exe files easily.
  • ๐Ÿ†• Streamlined Code Formatting: Compact and efficient module structures.
  • ๐Ÿ†• Enhanced Thread Management: Improved load-buffer animations and task submission.

๐Ÿ“Œ Key Features

๐Ÿงต Thread Management

  • Submit tasks to threads with automatic CPU-based worker allocation.
  • Built-in animated load buffer to indicate progress.
  • Non-blocking and blocking task submission options.

๐ŸŒ Browser Automation

  • Start and control web browsers for form filling, button clicking, and link scraping.
  • Headless browsing option for fast, invisible automation.
  • Automatic detection and interaction with login fields and buttons.

๐Ÿ“‚ File and Directory Operations

  • Perform essential file operations: check existence, create, read, append, and delete.
  • Manage directories: list contents, create nested structures, and remove folders.
  • Simplified path joining for cross-platform compatibility.

๐Ÿ’ป Compiler Support (New in v0.3.0)

  • Build .exe files from your .py scripts for easy sharing.
  • Supports multiple compilers with automatic detection and installation prompts.

๐Ÿ–ฅ๏ธ Console and System Utilities

  • Retrieve system information such as CPU count, console size, and current time.
  • Display centered output or enumerated lists directly in the terminal.
  • Execute console commands and clear the terminal easily.

๐Ÿ› ๏ธ Installation

From PyPI:

pip install CoreEase

From GitHub:

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

๐Ÿ“– Quickstart Guide

๐Ÿงต Run Tasks with Threads

from CoreEase.executor import INIT, SUBMIT_WB

def my_task():
    print("Processing task...")

INIT()  
SUBMIT_WB(my_task)

๐ŸŒ Automate Browser Actions

from CoreEase.webdriver import BROWSER_START, BROWSER_GOURL, PARS_LINKS, BROWSER_CLOSE

BROWSER_START(hidden=True)  
BROWSER_GOURL("https://example.com")  
http_links, https_links = PARS_LINKS()  
print("HTTP Links:", http_links)  
print("HTTPS Links:", https_links)  
BROWSER_CLOSE()

๐Ÿ“‚ Manage Files

from CoreEase.explorer import FILE_EXIST, FILE_CREATE, FILE_APPEND

file_name = "data.txt"

if not FILE_EXIST(file_name):
    FILE_CREATE(file_name)

FILE_APPEND(file_name, "Appending new line to the file.")

๐Ÿ’ป Compile Python Scripts (New in v0.3.0)

python -m compiler --onefile script.py

๐Ÿ–ฅ๏ธ Get System Information

from CoreEase.system import ENV_CPUCOUNT, TIME_CURRENT

print("CPU Cores:", ENV_CPUCOUNT())  
print("Current Time:", TIME_CURRENT())

๐Ÿ“‚ File Structure Overview

CoreEase/
โ”œโ”€โ”€ CoreEase/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ compiler.py
โ”‚   โ”œโ”€โ”€ executor.py
โ”‚   โ”œโ”€โ”€ explorer.py
โ”‚   โ”œโ”€โ”€ output.py
โ”‚   โ”œโ”€โ”€ system.py
โ”‚   โ””โ”€โ”€ webdriver.py
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ setup.py

๐Ÿ’พ Dependencies

CoreEase requires:

  • Python >= 3.7

๐Ÿงฉ Contributing

Contributions are welcome! Follow these steps to contribute:

  1. Fork the repository.
  2. Clone it:
    git clone https://github.com/Casbian/CoreEase.git
    
  3. Create a new branch for your feature.
  4. Commit and push your changes.
  5. Submit a pull request.

๐Ÿ“œ License

CoreEase is released under the MIT License.

  • You are free to use, modify, and distribute this software.
  • We are not liable for any damages resulting from the use of this software.

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.3.5.tar.gz (16.2 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.3.5-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coreease-0.3.5.tar.gz
Algorithm Hash digest
SHA256 7c4c1eb5b9de174d68ac584bb380cbeb7820194935ffb020dc98bac2f60ee78e
MD5 d20d28538a20ea33ee5405fb2ec9530f
BLAKE2b-256 21b6041dc8956fb685a8783b69a4f0a5a9672f3bdac668b73b6f5d3c1f9ebd21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: CoreEase-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 27.9 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.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d69213f5d4e9d76d6c41841a24f7d43ac53e25e014e1bb42867c82e0d2901343
MD5 fff42037413cf506ec63b4c6f0aa3c67
BLAKE2b-256 f42bfc71b0c383af0ead0ca50fb7f9b792090b517a47759643a0726e95eee72f

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