Package: eos-name-generator
EOS Name GeneratorEOS Name Generator- is a python package for generating names according toEOS name rules.This includes 3 ways to generate a name:* Random Generator
* Recurrent Neural Network Generator
* Markov Chain GeneratorGetting startedRequirementsUbuntu 16.04 & 18.04MacOSInstallationAlgorithm descriptionRandom GeneratorRecurrent Neural Network GeneratorMarkov Chain GeneratorEOS Name RulesUsageServiceRandom GeneratorRecurrent Neural Network GeneratorMarkov Chain GeneratorCLIUsageGenerate nameGenerate list of namesDevelopmentProductionContributingRequest pull request's reviewGetting startedRequirementsUbuntu 16.04 & 18.04If you have 16.04 version, install system requirements with the following terminal commands:$sudoaptupdate&&sudoaptinstall-ysoftware-properties-commonbuild-essentialMacOSInstall Python 3.7 (also, we support 3.6):$brewinstallpython3InstallationInstall the package from thePyPithrough pip:$pip3installeos-name-generatorAlgorithm descriptionRandom GeneratorThe algorithm selects a base word from a pre-prepared dictionary, after which an additional word of the appropriate
length is selectedADDITIONAL_WORD_LEN = EOS_NAME_LEN - BASE_WORD_LENif there is no such word, then the additional
word is random numbers.The probability that an additional word will be numbers can be set by the parameternumbers_probabilities.Recurrent Neural Network GeneratorMarkov Chain GeneratorEOS Name RulesCan only contain the characters.abcdefghijklmnopqrstuvwxyz12345.a-z(lowercase),1-5and.(period)Must start with a letterMust be12charactersUsageServiceGet the version of the package —eos-name-generator --version:$eos-name-generator--versionRandom GeneratorGenerate random name:fromeos_name_generatorimportRandomNameGeneratorif__name__=='__main__':generator=RandomNameGenerator()name=generator.generate()print(name)Generate list of random names:fromeos_name_generatorimportRandomNameGeneratorif__name__=='__main__':generator=RandomNameGenerator()names=generator.generate_list(num=1000)fornameinnames:print(name)Recurrent Neural Network GeneratorMarkov Chain GeneratorCLIUsageGenerate nameGenerate eos random name -eos-name-generator generate name:ArgumentsTypeRequiredDescriptionnumpy-random-providerBoolNoUsednumpy.randomas random provider instance for generation name.numbers-probabilitiesFloatNoThe probability of occurrence of numbers in the generated word.seed-data-pathStringNoPath to the data based on which the name will be generated.$eos-name-generatorgeneratename
brakesrollerGenerate withnumpy-random-provider:$eos-name-generatorgeneratename--numpy-random-provider
sightsiliconGenerate withnumbers-probability:$eos-name-generatorgeneratename--numbers-probabilities1barges143525Generate with custom seed data:$eos-name-generatorgeneratename--seed-data-pathdata.txt
tamalecationGenerate list of namesGenerate list of eos random names -eos-name-generator generate names_list:ArgumentsTypeRequiredDescriptionnumIntYesNumber of generated names.numpy-random-providerBoolNoUsednumpy.randomas random provider instance for generation name.numbers-probabilitiesFloatNoThe probability of occurrence of numbers in the generated word.seed-data-pathStringNoPath to the data based on which the name will be generated.$eos-name-generatorgeneratenames_list--num4marblesmeats
seamanhiring
wonderbreast
mosseshealthGenerate withnumpy-random-provider:$eos-name-generatorgeneratenames_list--num4--numpy-random-provider
candyhalibut
strollscales
folklorepink
slaveryrotorGenerate withnumbers-probability:$eos-name-generatorgeneratenames_list--num4--numbers-probabilities1doorbell3321
sycamore1553
chaplain3431
combine25115Generate with custom seed data:$eos-name-generatorgeneratenames_list--num4--seed-data-pathdata.txt
dessertsuede
reboundbrown
heaterssalad
doubterpoachDevelopmentClone the project and move to project folder:$gitclonehttps://github.com/Alladin9393/eos-name-generator.git&&cdeos-name-generatorCreate virtualenv and install requirements:$virtualenvvenv-ppython3&&sourcevenv/bin/activate
$pip3install-rrequirements.txt-rrequirements-dev.txtTo run tests use:$coveragerun-mpytest-vvtestsWhen you have developed new functionality, check it with the following command. This command creates the Python
package from source code instead of installing it from the PyPi:$pip3uninstall-yeos_name_generator&&rm-rfdist/eos_name_generator.egg-info&&\python3setup.pysdist&&pip3installdist/*.tar.gzProductionTo build the package and upload it toPypIto be accessible throughpip, use the following commands.Twinerequires the username and password of the account package is going to be uploaded to.$python3setup.pysdist
$twineuploaddist/*
username:alladin9393
password:******ContributingRequest pull request's reviewIf you want to your pull request to be review, ensure you:If you want to your pull request to be review, ensure you:Branch isn't out-of-date with the base branch.Have written the description of the pull request and have added at least 2 reviewers.Continuous integration has been passed.