faker-starship

Provider of various starship data for the Faker Python package.


Keywords
faker, provider, starship, test, data
License
MIT
Install
pip install faker-starship==0.0.1a1

Documentation

faker-starship is a provider of various starship data for the Faker Python package. faker-starship pulls randomly from a static library of thousands of fictional starship names, classes, and registry numbers spanning multiple sci-fi universes.

Installation

Install with pip (or pipenv):

pip install faker-starship

Usage

Python

Add the faker_starship.Provider to your faker.Faker instance:

import faker
import faker_starship
fake = faker.Faker()
fake.add_provider(faker_starship.Provider)

To get a starship name, class, or registry number from across the multiverse:

print(fake.starship_name())  # prints "Colonial One" or similar
print(fake.starship_class())  # prints "K't'inga" or similar
print(fake.starship_registry())  # prints "ECS-222" or similar

Or to limit to a specific source universe:

print(fake.starship_name("starwars"))  # prints "Millennium Falcon" or similar
print(fake.starship_class("eveonline"))  # prints "Nyx" or similar
print(fake.starship_registry("theorville"))  # prints "ECV-197" or similar

Command Line

faker starship_name -i faker_starship
faker starship_class -i faker_starship
faker starship_registry -i faker_starship

Additional Information