Metadata-Version: 1.0
Name: funny-codes
Version: 1.0.1
Summary: Generate randoms strings of a given pattern
Home-page: https://bitbucket.org/kmike/funny-codes/
Author: Mikhail Korobov
Author-email: kmike84@gmail.com
License: MIT license
Description: ===========
        funny-codes
        ===========
        
        This is a small module for generating randoms strings of a given pattern.
        It is also capable of estimating various metrics for this pattern
        (probability of collision, estimated collision count and total variants count).
        
        Installation
        ============
        
        ::
        
            $ pip install funny-codes
        
        Usage
        =====
        
        ::
        
            >>> from funny_codes import FunnyCodes
            >>> my_codes = FunnyCodes('TATAN-76')
            >>> my_codes.next() # the following is a random code matching the pattern
            HIPAS-12
        
            >>> my_codes.next()
            MOVER-87
        
            >>> my_codes.variants_count()
            20000844
        
            >>> my_codes.collision_prob(1000)
            0.024664677603280283
        
            >>> my_codes.expected_collisions(10000)
            2.499235797673464
        
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
