Skip to main content

A common utils Python library. Don't write that one little function again!

Project description

Latest Version Downloads Tests
PyPI version Downloads cov

epicure

epicure | ˈɛpɪkjʊə, ˈɛpɪkjɔː |

noun

a person who takes particular pleasure in fine food and drink.

What?

epicure is a collection of useful python methods and utils I tend to use in my personal projects.

Why?

I like to keep my projects as clean as possible, and I don't like to add dependencies unless strictly necessary. I usually end up writing the same little utils over and over again, so I decided to create a centralized place where I can keep them.

Installation

Plug & Play:

# Install via pipx
pipx install epicure-utils

# Install via pip
pip install epicure-utils

Install for development:

Clone the repository:

git clone https://github.com/dvitto/epicure.git
cd epicure

Install the dependencies and the package:

make install

# or manually:

python -m venv venv
source venv/bin/activate
pip install -e .

System Requirements

Before using epicure, ensure you have the following installed:

  • Python >= 3.10

Usage

Once installed you can import the package and use the methods as you would with any other python package.

Simple example:

from epicure.output import colored_print

colored_print("Hello, World!", fg_color="magenta", bg_color="black")

# this will print a "Hello, World!" in your terminal
# foreground color will be magenta and background color will be black (if supported by your terminal)

To see an interactive example of all the things available, run the following command:

python -m demo.demo

Features

  • Simple and useful methods for everyday use.
  • The package is organized in modules, so you can import only the methods you need.
  • Customizable output with colored print.
  • Input validation for the classic "yes/no" questions.
  • Simple and Mulit-choice questions.
  • Interactive multi-choice questions using curses (works on Linux and macOS).
  • And more to come...

Known Issues

multi_choice_question_interactive does not work on Windows by default. You need to install the windows-curses package to use it on Windows.

Acknowledgments

  • Python community, for the amazing libraries and tools they provide.

Contributing

Contributions are welcome!

If you have a feature request, bug report, or a pull request, please open an issue or submit a PR.

License

epicure is released under GNU GENERAL PUBLIC LICENSE Version 3.

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

epicure_utils-0.0.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

epicure_utils-0.0.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file epicure_utils-0.0.1.tar.gz.

File metadata

  • Download URL: epicure_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for epicure_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e8852b3fb6480a411517072f7d37507e18aee6babb2978847de2745fd9dcaeba
MD5 9cd5300a1efd7bf61611976dfbc721a7
BLAKE2b-256 60164edd53cb61e4bf36ea060929fd7356dad10f4cddf4e3ce11b95ee6916182

See more details on using hashes here.

File details

Details for the file epicure_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for epicure_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d53214cf8e022efbb08059ef9b69bd6d05b86e1d7b12a5cdcd07ca7f8468e298
MD5 3a3fcf0e83fef6c3a29fbab1f53aabef
BLAKE2b-256 476189cbf20e2efb7f5590e3ffd2bf749d0a081fdb91f7e8a1f4010bcb23b9f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page