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.13.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyanimalconverter-1.13.tar.gz
Algorithm Hash digest
SHA256 3f58d0e8a9035e4e2106fb97085984b3e4a15a346854580c1be82c1fd1f99022
MD5 7f6184cd3336e0712beda8a3ae53f7d1
BLAKE2b-256 172592502048dd02a597af603de00f17f79f7ef729f92cb926165be2555ad35b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyanimalconverter-1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a389aab6030bfb4eb6cbe5cfe0f8edaddfdd0f676a9947fecc679dbbc6aea2c9
MD5 b635dfb77507ff21339acb69746940da
BLAKE2b-256 ab4b221a0b5f6e0567f9afb4fde6f48e4ae4f597551d1ffc09463cbe68d8fa7b

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