Skip to main content

A package that incorporates kaomojis for the user.

Project description

facedbook

Build Status

Project Description

facedBook is a fun Python package for transforming text with cute and eerie keyboard faces, generating scary stories, and displaying emotions with expressive faces.

Its features include:

  • Replacing words in a sentence with expressive keyboard faces
  • Generating creepy horror stories with random actions and spooky characters
  • Displaying emotions with keyboard keys based on how a user is feeling
  • Encoding words into emotion-based faces

Installation

You can install facedbook directly from PyPI using:

pip install facedbook

facedbook on PyPI

Usage and Examples

Once installed, you can easily use its functions in your Python code.

Replace words with faces: replace_with_faces()

from facedbook.faces import replace_with_faces

sentence = "This project is so cool and fun to use!"
print(replace_with_faces(sentence))

Example output:

This (づ ᴗ _ᴗ)づ♡ project (๑♡⌓♡๑) is fun ( ´͈ ᗨ `͈ )!

Generate a spooky story: face_story()

from facedbook.stories import face_story

print(face_story(3))  # Generates a 3-sentence scary story

Example output:

(ノωヽ) saw something move in the shadows behind (/。\).
Σ(°△°|||)︴ was trapped in a haunted house with (つ﹏⊂).
(☉_☉’) was cursed by (ᗒᗣᗕ)՞.

Get a face based on emotion: ask_user_feeling()

from facedbook.feelings import ask_user_feeling

print(ask_user_feeling("happy"))  # Returns a happy face

Example output:

(⌒▽⌒)☆

Encode words into faces: face_encoder()

from facedbook.encoder import face_encoder

print(face_encoder("happy", 3))  # Returns 3 happy faces

Example output:

(* ^ ω ^)
╰(▔ ∀ ▔)╯
(✯◡✯)

Developer Setup & Contribution

  1. Clone the Repository
git clone https://github.com/software-students-spring2025/3-python-package-everything.git
cd 3-python-package-everything
  1. Create a Virtual Environment
pipenv install
pipenv shell
  1. Install Dependencies
pipenv install --dev
  1. Run Tests
pytest
  1. Build and Publish the Package
python -m build
python -m twine upload dist/*

Contributors

Configuration & Running Instructions

This package is compatible with Python 3.6+ and works on Windows, macOS, and Linux. Simply install with pip install facedbook and use the functions as demonstrated above!

For additional environment configurations, create a .env file:

# Example .env
DEBUG=True
LOG_LEVEL=INFO

Then load environment variables using:

from dotenv import load_dotenv
load_dotenv()

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

facedbook-0.1.4.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

facedbook-0.1.4-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file facedbook-0.1.4.tar.gz.

File metadata

  • Download URL: facedbook-0.1.4.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for facedbook-0.1.4.tar.gz
Algorithm Hash digest
SHA256 66d6e8ac568f028aa6abc9d4fa96ff8562bc1cbd095065fdac2224082b6534f3
MD5 5bf4c0489c0108ff02e855e5b0266938
BLAKE2b-256 117fc9fdf0a7effca557f04c79c02ac70c44bd05972cd7b9763aa90f96d1d86e

See more details on using hashes here.

File details

Details for the file facedbook-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: facedbook-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for facedbook-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 65930de4fdbfbda2dbca6917749c8755450845f46d3d2179a575232db476af2f
MD5 176864396cb24d79b9006e8a79aceec9
BLAKE2b-256 2dad348294e44a73fdda8973bbf1e9aeec3d4c518b053a22004e5a8f1efae29f

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