Skip to main content

motif - Python module written by Wu Fuheng

Project description

  • motif is a Python module written by Wu Fuheng

  • OS: Linux Ubuntu 15.04 64bit

  • Installation:

    sudo easy_install https://pypi.python.org/packages/2.7/m/motif/motif-0.0.11-py2.7.egg
  • Run:

    $python
    Python 2.7.9 (default, Apr  2 2015, 15:33:21)
    [GCC 4.9.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from motif import Motif
    >>> m = Motif()
    >>> m.test()
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    PASS
    >>> m.display_keypad()
    1 2 3
    4 5 6
    7 8 9
    * 0 #
    >>> print m.run(10)
    326862
    >>> print m.run(100)
    8346333168977851537223946938790914315535720036672688
    >>>
    >>> # customize keypad
    ... m.set_keypad([[1, 2, 3],
    ...                [4, 5, 6],
    ...                [7, 8, 9],
    ...                [0, '*', '#']])
    >>> m.display_keypad()
    1 2 3
    4 5 6
    7 8 9
    0 * #
    >>> m.construct_map()
    >>> print m.run(1)
    10
    >>> print m.run(2)
    28
    >>>

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

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

motif-0.0.11-py2.7.egg (7.0 kB view details)

Uploaded Egg

File details

Details for the file motif-0.0.11-py2.7.egg.

File metadata

  • Download URL: motif-0.0.11-py2.7.egg
  • Upload date:
  • Size: 7.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motif-0.0.11-py2.7.egg
Algorithm Hash digest
SHA256 419290d099b19afab0b78407e3cdb12288bb802e02b4ee111cbe40d082a47040
MD5 60d11e81c54f18ee45b2fba4f3aea554
BLAKE2b-256 dfa2800f016c5a375cf49858a458c1450520648a9fe0960bc85ac751a07b8023

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