Metadata-Version: 2.1
Name: IsDigit
Version: 0.0.8
Summary: Simple, mainly useless, python package that checks if a string, int, or float is a digit.
Home-page: https://github.com/editid0/IsDigit
Author: editid
License: MIT
Description: # Installing
        
        ## From source:
        - `pip install git+https://github.com/editid0/IsDigit`
        
        ## From pypi:
        - `pip install -U IsDigit`
        
        <br />
        
        # Examples
        ```python
        from isdigit import IsDigit
        
        digits = IsDigit(allow_floats=True, allow_ints=True)
        
        print(digits.is_digit('1')) # returns True
        print(digits.is_digit('1.0')) # returns True
        print(digits.is_digit('1.0.0')) # returns False
        print(digits.is_digit('x')) # returns False
        ```
        Or, alternatively:
        ```python
        from isdigit import IsDigit
        
        digits = IsDigit()
        
        print(digits.is_digit('1')) # returns True
        print(digits.is_digit('1.0')) # returns False
        print(digits.is_digit('1.0.0')) # returns False
        print(digits.is_digit('x')) # returns False
        ```
        
        # Using `discord.py` with IsDigit
        
        <br />
        
        ## Install
        <br />
        
        ### pip install
        ```
        pip install -U IsDigit[discord]
        ```
        
        ### Install from repo
        ```
        pip install git+https://github.com/editid0/IsDigit[discord]
        ```
        
        
        ## Basic Usage
        ##### Please do not use this code when making a bot. Read the `discord.py` [docs](http://discordpy.readthedocs.io/) instead.
        ###### This package is not affiliated with the `discord.py` library.
        ```python
        from isdigit import IsDigit
        from discord.ext import commands
        
        bot = commands.Bot(command_prefix='prefix')
        digits = IsDigit()
        
        @bot.command()
        async def test(ctx, arg: digits):
            await ctx.send(type(arg))
        
        @test.error
        async def test_error(ctx, error):
            await ctx.send(error)
        
        bot.run('token')
        ```
Keywords: python isdigit float int string
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
Provides-Extra: discord
