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.6.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.6-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreease-0.3.6.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.6.tar.gz
Algorithm Hash digest
SHA256 c98c5062e6803dc9eb83fc321316718aab6cc9e4e927930bf3c8fc019d580712
MD5 1eea612ba29cdad61e431141487fd84c
BLAKE2b-256 82c6be936e41b0411b97eb2a890eacffd4112df4c0848581c8e358007d9d0259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: CoreEase-0.3.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2345643ed8d9464785afd1f059bc282c493806bc2d57739c8204659fe7d8ca67
MD5 c268f1e462a58a999c8b749b4f9df047
BLAKE2b-256 a4a1213ae103fb842e1c66cc215ee5768243eacca9e4449dbb73d27689d6455c

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