HaikunatorPY alternatives and similar packages
Based on the "Text Processing" category.
Alternatively, view HaikunatorPY alternatives based on common mentions on social networks and blogs.
-
Lark
Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity. -
ftfy
Fixes mojibake and other glitches in Unicode text, after the fact. -
TextDistance
📐 Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage. -
jellyfish
🪼 a python library for doing approximate and phonetic matching of strings. -
shortuuid
A generator library for concise, unambiguous and URL-safe UUIDs. -
python-user-agents
A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings. -
Data Profiler
What's in your data? Extract schema, statistics and entities from datasets -
Levenshtein
The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity -
pyparsing
Python library for creating PEG parsers [Moved to: https://github.com/pyparsing/pyparsing] -
Construct
Construct: Declarative data structures for python that allow symmetric parsing and building -
python-nameparser
A simple Python module for parsing human names into their individual components -
Charset Normalizer
Truly universal encoding detector in pure Python -
json-streamer
A fast streaming JSON parser for Python that generates SAX-like events using yajl -
simplematch
Minimal, super readable string pattern matching for python. -
nider
Python package to add text to images, textures and different backgrounds -
Efficient keyword mining with regular expressions
Efficient string matching with regular expressions
Write Clean Python Code. Always.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of HaikunatorPY or a related project?
README
HaikunatorPY
Generate Heroku-like random names to use in your python applications.
Installation
pip install haikunator
Usage
Haikunator is pretty simple. There is nothing to configure and it only has a single method, haikunate
:
from haikunator import Haikunator
haikunator = Haikunator()
# haikunator = Haikunator(seed='random seed') # optional seed
# default usage
haikunator.haikunate() # => "wispy-dust-1337"
# custom length (default=4)
haikunator.haikunate(token_length=6) # => "patient-king-887265"
# use hex instead of numbers
haikunator.haikunate(token_hex=True) # => "purple-breeze-98e1"
# use custom chars instead of numbers/hex
haikunator.haikunate(token_chars='HAIKUNATE') # => "summer-atom-IHEA"
# don't include a token
haikunator.haikunate(token_length=0) # => "cold-wildflower"
# use a different delimiter
haikunator.haikunate(delimiter='.') # => "restless.sea.7976"
# no token, space delimiter
haikunator.haikunate(token_length=0, delimiter=' ') # => "delicate haze"
# no token, empty delimiter
haikunator.haikunate(token_length=0, delimiter='') # => "billowingleaf"
Options
The following options are available:
from haikunator import Haikunator
haikunator = Haikunator(
adjectives=['custom', 'adjectives'],
nouns=['custom', 'nouns'],
seed='random seed'
)
haikunator.haikunate(
delimiter='-',
token_length=4,
token_hex=False,
token_chars='0123456789'
)
If token_hex
is true, any tokens specified in token_chars
are ignored
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
Other Languages
Haikunator is also available in other languages. Check them out:
- Node: https://github.com/Atrox/haikunatorjs
- PHP: https://github.com/Atrox/haikunatorphp
- .NET: https://github.com/Atrox/haikunator.net
- Java: https://github.com/Atrox/haikunatorjava
- Go: https://github.com/Atrox/haikunatorgo
- Perl: https://github.com/Atrox/haikunatorperl
- Dart: https://github.com/Atrox/haikunatordart
- Ruby: https://github.com/usmanbashir/haikunator