Skip to main content

This package returns the airspeed velocity of an unladen swallow.

Project description

Release v0.2 by Karl Saint Lucy.

Documentation Status

Installation

$ pip install UnladenSwallow

Features

Returns the airspeed velocity of an unladen swallow. You have to know these sorts of things when you’re a king, you know.

Usage

It’s very easy to find the airspeed velocity of an unladen swallow:

>>> from unladen_swallow.unladen_swallow import AirSpeedVelocityOfAnUnladenSwallow
>>> a = AirSpeedVelocityOfAnUnladenSwallow()
<unladen_swallow.AirSpeedVelocityOfAnUnladenSwallow object at 0x123456789>
>>> a.what_is_the_airspeed_velocity_of_an_unladen_swallow()
'The airspeed velocity of a European swallow is 11 meters per second or 24
miles per hour. See http://style.org/unladenswallow/ for more information.'

Codebase

"""A class for the airspeed velocity of an unladen swallow."""


class AirSpeedVelocityOfAnUnladenSwallow:
    """Class for the airspeed velocity of an unladen swallow."""

    species = 'European'
    meters_per_second = 11
    miles_per_hour = 24
    source = 'http://style.org/unladenswallow/'

    def what_is_the_airspeed_velocity_of_an_unladen_swallow(self):
        """Return the airspeed velocity of an unladen swallow."""
        answer = (
            'The airspeed velocity of a {0} swallow is {1} meters per '
            'second or {2} miles per hour. See {3} for more information.'
        ).format(
            self.species,
            self.meters_per_second,
            self.miles_per_hour,
            self.source)

        return answer

License

This project is licensed under the BSD License.

Read the Docs

See the Sphinx documentation at Read the Docs.

Project details


Download files

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

Source Distribution

UnladenSwallow-0.2.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

UnladenSwallow-0.2.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file UnladenSwallow-0.2.1.tar.gz.

File metadata

  • Download URL: UnladenSwallow-0.2.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for UnladenSwallow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3c9381c69a4fc2b39bd6d8808a22e9604fc03a88af0e246b4b8de9552ef6c0e7
MD5 ef36144bc86630e2fe3bf34895915fb0
BLAKE2b-256 c30d5576c8e41ca0b728b9e125cdf2dde58313fa545ac7868955a3b421366b02

See more details on using hashes here.

File details

Details for the file UnladenSwallow-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: UnladenSwallow-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for UnladenSwallow-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a9913fc93c463d7246d7de5e79fd0b56d6f11ed436860424947858fbc239fae
MD5 346e7b90342f656bba7333faf668fc1b
BLAKE2b-256 14a5b09c063c33d6411c87ef0f07c302bfc32a4354f44bdb891d98306a165223

See more details on using hashes here.

Supported by

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