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

Uploaded Python 3

File details

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

File metadata

  • Download URL: facedbook-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fcfeca3bce8214ba99b968d0c0e86d0fbe7fb92ca7b40c17b2e764dc8a4caba8
MD5 3821e5c0467e58cadd437aa85b8de029
BLAKE2b-256 184efc010dc22fff2ad4748de1c71d060e7b1e9e44de57a0ea94952145e04677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: facedbook-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1047bf769b0fc5d5c9b9833e34e05ab136d0bb3b0f67568e9ad22a1da410fbbd
MD5 1edcd4b9b2738d8762538778885dbf98
BLAKE2b-256 d411c212736b6b29cd5231e762bfe48ad9a0bde2414499bc9b246ba305f44c23

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