Skip to main content

A package you can use to do several kinds of unit conversions and comparison, either on their own or with the help of some animal friends.

Project description

Pyanimalconverter Package

Tests

Description

Our package, pyanimalconverter, helps you to fullfill all of your unit conversion needs in convenient and enjoyable ways. You can simply get the conversions, compare two quantities in different units, or even find the minimum or maximum of a list. In addition, you can even choose to perform these conversions and comparisons in a conversation with some animal friends.

Example

Link to example program in repository.

Link to PyPI

Link to PyPI

Instructions for Importing

To import, please install the package with pip install pyanimalconverter. Then you can include import pyanimalconverter at the top of your code to use.

Instructions for Setting Up

To set up the package for contribution, the virtual environment can be set up by simply using pipenv with the dependencies listed in the Pipfile. Then, to build, you can use py -m build with the file pyproject.toml in the directory.

Teammates

How to Use

There are three ways to use the package: through the command line, via importing, and in conversation with animals. Before proceeding with either of these, please install the package with pip install pyanimalconverter as noted above.

Importing

One way to use the package is by importing it, simply including import pyanimalconverter at the top of your code as mentioned above. From there can you call methods from pyanimalconverter.convert, pyanimalconverter.conversation, and pyanimalconverter.minmax. If you know you only want to use a certain function (like convert for example), you can use import pyanimalcoverter.convert as convert, then simply call convert.convert() with required parameters.

Conversation

Another way in which the application can be used is in conversation with a frog friend, who can help you convert as well as compare two quantities. To enter the conversation, simply include import pyanimalcoverter.conversation as conversation and call conversation.askAnimal() to start an interactive conversation with your frog friend. There, you will be asked whether you want to convert or compare as well the specifics of the operation, and your frog friend will give you the results. You can continue this conversation as long as you like.

Command Line

You can also use pyanimalconverter on the command line if you want to quickly use the convert or compare functions. To use convert you can call: pyanimalconverter convert num from_unit to_unit or more concretely: pyanimalconverter convert 1 ft in which will print out 12.

To use compare you can call: pyanimalconverter compare num1 num2 unit1 unit2.

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

pyanimalconverter-1.12.1.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

pyanimalconverter-1.12.1-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file pyanimalconverter-1.12.1.tar.gz.

File metadata

  • Download URL: pyanimalconverter-1.12.1.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for pyanimalconverter-1.12.1.tar.gz
Algorithm Hash digest
SHA256 e8047e2f2e4e84eb02c3605b8c7f87dbb66290a929d177e73c763eb4ff87f6de
MD5 af212daf9ffcc7525c39ef72b2b089b0
BLAKE2b-256 ff70e161d654dde9539d9de524a48965ec4b4e5d531f9dbb9be3317c4279cd21

See more details on using hashes here.

File details

Details for the file pyanimalconverter-1.12.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyanimalconverter-1.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd06a3df740077cd4f66a325423421a8824ae3ed344d0f52e85eda62e888d24
MD5 869e91343415b59eaf892b30120bf40b
BLAKE2b-256 bf1deba8c387ba5e7a29ecdb454ab595773199836ed6db5cafb3f33cc6c9794c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page