Skip to main content

A Python library for my codes.

Project description

Rupi - 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 rupi library via pip.

Via pip (from PyPI)

pip install rupi

From source

To install rupi directly from the GitHub repository:

git clone https://github.com/TanujairamV/rupi.git
cd rupi
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 rupi import flames

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

Example 2: Interactive CLI

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

python -m rupi.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 rupi 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 rupi, 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.24.tar.gz (5.0 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.24-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rupi-0.1.24.tar.gz
  • Upload date:
  • Size: 5.0 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.24.tar.gz
Algorithm Hash digest
SHA256 925bd10896002c955674621aead0320160405795824e32a090809aa6489da935
MD5 358bb7d8d2e3c0e4f326ae1a676b95a2
BLAKE2b-256 bf6806fff1a944c4b4ce847e1805aa2f8fea7aa89f41b2ea5ebca7ec6f53c007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rupi-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 60f03418ac72e575852f822e8b3ba73418cfd6743d2ff87753372b3e98a57360
MD5 67dcbf6235e983ab5817625ced5a40fd
BLAKE2b-256 09181c13dc4bb5e692224cab860d705490c9666d74aa69a61d152a28327d4ece

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