Code Monkey home page Code Monkey logo

pyphoon's Introduction

pyphoon

ASCII Art Phase of the Moon (Python version)

Screenshots

Based on the original version of Jef Poskanzer [email protected] written in Pascal in 1979 (and later translated by himself into C, and now by me into Python).

Usage

$ pyphoon --help
usage: pyphoon [-h] [-n LINES] [-x] [-l [LANGUAGE]] [date]

Show Phase of the Moon

positional arguments:
  date                  Date for that the phase of the Moon must be shown.
                        Today by default

optional arguments:
  -h, --help            show this help message and exit
  -n LINES, --lines LINES
                        Number of lines to display (size of the moon)
  -x, --notext          Print no additional information, just the moon
  -l [LANGUAGE], --language [LANGUAGE]
                        locale for that the phase of the Moon must be shown.
                        English by default

By default the number of lines is 30 and the date is today.

The Moon is (at the moment) shown only for the northern hemisphere.

Supported dateformats:

  • 2016-Mar-01
  • 2016-03-01
  • 03-01-2016
  • 03/01/2016
  • etc.

Displayed information:

  • time after the previous state (-)
  • time to the next state (+)

Dependencies

  • dateutil

Own changes

There are several changes in PyPhoon that were not present in the original Jef Pokazner's version of 1979:

  • Localization: pyphoon is translated into many languages; language is configured using the system locale ($LANG)

pyphoon's People

Contributors

alexmerkel avatar cclauss avatar chibihokage avatar chubin avatar dhoomakethu avatar ibmibmibm avatar ivuorinen avatar stigok avatar techcavy avatar wireheadmech avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.