Skip to main content

Provider of various starship data for the Faker Python package.

Project description

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

Project details


Download files

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

Files for faker-starship, version 0.0.1a1
Filename, size File type Python version Upload date Hashes
Filename, size faker_starship-0.0.1a1-py2.py3-none-any.whl (30.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page