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

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreease-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e2d3e541592eafd59e90bc310f6b35d27837e3940616b9a7bee202dcfac38144
MD5 c3c0f7afc22c5006b6d202c343572f41
BLAKE2b-256 445b8ac1a8bd8dbfb5a54b59d6c5cd2a1bd6e5a15bc127f411191f162c02015f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: CoreEase-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8ce75bb42b995d423ab55e7bcb9cbda69cfac3afda29cff3f24ece32cf03da
MD5 843bc6abc6da2b41ba20bece0109981b
BLAKE2b-256 2ceecd85c4e661cea0e9c59700c4e41cb08f8b0a174a63ca0cb6a076d5b17c3b

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