Provider of various starship data for the Faker Python package.
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.
Install with pip (or pipenv):
pip install faker-starship
faker_starship.Provider to your
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
faker starship_name -i faker_starship faker starship_class -i faker_starship faker starship_registry -i faker_starship
- License: MIT
- Releases: https://pypi.org/project/faker-starship/
- Code: https://gitlab.com/infinitewarp/faker-starship
- Test status: https://gitlab.com/infinitewarp/faker-starship/pipelines/?scope=branches
- Test coverage: https://codecov.io/gl/infinitewarp/faker-starship/branch/master