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.4.tar.gz (16.0 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.4-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreease-0.3.4.tar.gz
  • Upload date:
  • Size: 16.0 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.4.tar.gz
Algorithm Hash digest
SHA256 28242d6703fbf2a98a1240a712c4a153d2a846312e2db498fd780de863d85827
MD5 15c34989a919cd0dae12a7e5d9aee5b3
BLAKE2b-256 c1ff53b6d70b0a50b7926ecae63562d1df31034e8070a9f78c10a7c25dde9ec0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: CoreEase-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1a77d1ff712b252432b2ded0671d070fcf23b604dc8b6d4cc4991c00e1ae3bcc
MD5 2b3358cf89401baaa4fc5e82b7b5596f
BLAKE2b-256 fd2d61e9ece1728d9fb5d4182b042551d5475c7c2ea87e01e8d1a77fdd4ca41e

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