Easydev

0.14.0 · active · verified Fri Apr 17

Easydev (v0.14.0) is a Python library offering a collection of common utilities to streamline the development of Python packages. It includes tools for shell interaction, system path management, console output, and decorators. The library is actively maintained with releases addressing Python version compatibility and dependency updates, typically on an irregular but consistent basis.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates basic usage of `easydev` to interact with the shell, retrieve the home directory, create a directory, and print colored console output.

from easydev.tools import Shell
from easydev import get_home
from easydev.console import purple
from easydev.misc import mkdir
import os

s = Shell()
print(f"Current directory: {s.pwd().strip()}")

home_dir = get_home()
print(f"Home directory using easydev: {home_dir}")

# Create a temporary directory
temp_dir = os.path.join(home_dir, 'easydev_temp_test')
mkdir(temp_dir)
print(f"Created directory: {temp_dir}")
os.rmdir(temp_dir) # Clean up

purple("Hello from Easydev!")

view raw JSON →