Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Generate randoms strings of a given pattern

Project Description

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).


$ pip install funny-codes


>>> from funny_codes import FunnyCodes
>>> my_codes = FunnyCodes('TATAN-76')
>>> # the following is a random code matching the pattern


>>> my_codes.variants_count()

>>> my_codes.collision_prob(1000)

>>> my_codes.expected_collisions(10000)
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
funny-codes-1.0.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Mar 22, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting