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
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
  1. Install Dependencies
pip install -r requirements.txt
  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.1.tar.gz (48.9 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.1-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for facedbook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 29e179ec7a5d64cfa135292f77f455610e27740b73f6ba141e544d236efd4d4c
MD5 b415612c2dc2345b86d4d8dfffb8833a
BLAKE2b-256 220de21dd02f20657011dedcafd4bb37b808b133b08f006057bf4dae56e3cd97

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for facedbook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82682ff8c5fa3af5dc9d2df4df61bb7e41a4236a69b58e16c710810890a57b5f
MD5 1d4ea5872759361c5c95a22f385ff039
BLAKE2b-256 661b22979b2185e1215f1efd24a148d78ae05dec3e2b1e33d100058c31683326

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