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

Uploaded Python 3

File details

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

File metadata

  • Download URL: facedbook-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 028e626fe6db1e345324a3efb46a02fef1af7b6c6556fb66104ab5117fb83fc6
MD5 eb1ef642486e72c5f48c4095b0b0fad0
BLAKE2b-256 26de167e4dcb693b6926e4b56d4ff5cc59da5793ba37cb23401eefa2f0ed360a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: facedbook-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bad6abe338b774fc885c00241171b7bc34359bd324346f8829d3780dc79467b7
MD5 533e6a87b06301ea324d9cb8f8e6148e
BLAKE2b-256 f949f2e291ea43aec2c9802dea33349ab194d0c73c3a691a91d8a3dd4dc71812

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