Skip to main content

A Python library for my codes.

Project description

Pali - The FLAMES Game in Python

Pali is a simple Python library to play the classic FLAMES game, where you calculate the relationship between two names based on the number of remaining letters after eliminating common ones. The result provides a relationship status like Friends, Love, Marriage, Enemies, etc.

Features

  • FLAMES Calculation: Determines the relationship between two names.
  • Interactive CLI: Optionally play the game directly via command line.
  • Simple API: Easy to integrate into your Python projects.

Installation

You can install the pali library via pip.

Via pip (from PyPI)

pip install pali

From source

To install pali directly from the GitHub repository:

git clone https://github.com/<your-username>/pali.git
cd pali
python setup.py install

Usage

After installing, you can use the flames function to determine the relationship between two names.

Example 1: Using the library in Python

from pali import flames

# Example names
result = flames("Alice", "Bob")
print(result)  # Output: 'Enemies'

Example 2: Interactive CLI

You can also run the pali package directly from the command line for an interactive FLAMES game.

python -m pali.flames

This will prompt you to enter two names and will print the relationship result.

Example Output:

Welcome to the FLAMES Game!
Enter the first name: Alice
Enter the second name: Bob
The relationship between Alice and Bob is: Enemies

Contributing

We welcome contributions to the pali library! Here’s how you can help:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to your branch (git push origin feature-branch).
  5. Open a pull request on GitHub.

Guidelines

  • Write clear commit messages.
  • Ensure all new features or fixes have tests.
  • Follow PEP 8 style guidelines.

Running Tests

To run the tests for pali, make sure you have pytest installed:

pip install pytest

Then, run the tests:

pytest tests/

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

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

rupi-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

rupi-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rupi-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for rupi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5967e61732b55e3884b13030af9f60df5935b4b5742a682cd71cbef1deb348dd
MD5 13115419fe4e5f9fc24b41b036c06a88
BLAKE2b-256 83ba19c017d31b729606ef670110a07723f40792264ca7f177faeb1c6ace0b9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rupi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for rupi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89558a78dd5b17f597c3a09db9fac5f76c3680023bbd74f2ec35883fd17def27
MD5 72f3128490cab86b55df9ef50f67bf6c
BLAKE2b-256 7b109032c5b5e340186ea5db347bb4ae86b16e3141a691dc7378b372fa9a275e

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