Skip to main content

A final function for your constant variables

Project description

Constant

Whenever I think about to make that thing (intenger,float, dataframe , array) constant. it works mostly on all the languages but not in python. So, I decided to create a package for constant numbers like pi and etc. That should be easy. So, here it is.

How to use it!

First install library - pip install constant_nums

after that, from constant_nums import final

basic syntax should be like this only

<constant_name> = final.cons(,<constant_name>)

Now here unit means anything, like int,str,dataframe and array anything. The name of the constant should be same on both the sides. Otherwise it won't be a constant anymore.

Example : pi = final.cons(3.14, "pi") and voila it works.

Now, there is already a module available for some default constants like PI, Euler's number etc but not for custom. You can create your own constants here.

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

constant_nums-0.4.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

constant_nums-0.4-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

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