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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

faker_starship-0.0.1a1-py2.py3-none-any.whl (30.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file faker_starship-0.0.1a1-py2.py3-none-any.whl.

File metadata

  • Download URL: faker_starship-0.0.1a1-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for faker_starship-0.0.1a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02b40e432907e2be4a6efc2c8a228b3a958f2a6203f5c111f118733a98043b01
MD5 a2b3d04a111cd6af66fc4d5f332e009c
BLAKE2b-256 307ba5e5e81afed1388a77aae8cf246f06043719e79d8329bd24eb308cfe3cda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page