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.0.tar.gz (8.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.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreease-0.3.0.tar.gz
  • Upload date:
  • Size: 8.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.0.tar.gz
Algorithm Hash digest
SHA256 c05da2152201ea5e95f18fdfb5d5f5c6f514ae74ee041adc98bd78dcb1d43667
MD5 337af5335387f097e71b905f2bad0820
BLAKE2b-256 4c9b8a224544b015210915cc5f6b6705dc71c48aed57c926eb209f7986529d7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: CoreEase-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eae77d6d3f87282b19ef56f3c72d0471c9311cb42136f05e97d27d4d5bac2601
MD5 6ac87d2e5807ef1cb0f83634bb5f53b9
BLAKE2b-256 ff215aab9bc5976e5aba406ed46b707363904f48d81bce20dafdf76c4af5bc07

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