Website URL:
   Skip to content
   
   (BUTTON)
     * Why GitHub?
       Features →
          + Code review
          + Project management
          + Integrations
          + Actions
          + Packages
          + Security
          + Team management
          + Hosting
          + Customer stories →
          + Security →
     * Enterprise
     * Explore
          + Explore GitHub →

Learn & contribute
          + Topics
          + Collections
          + Trending
          + Learning Lab
          + Open source guides

Connect with others
          + Events
          + Community forum
          + GitHub Education
     * Marketplace
     * Pricing
       Plans →
          + Compare plans
          + Contact Sales
          + Nonprofit →
          + Education →

   Sign in  Sign up 

chubin / pyphoon

     * Watch  23 
     * Star  643 
     * Fork  53 

   
   Code  
   Issues 4  
   Pull requests 0  
   Actions  
   Projects 0  
   Security  
   Insights 
   (BUTTON) Dismiss

Join GitHub today

   GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
   Sign up
   🌖 ASCII Art Phase of the Moon (Python version) http://wttr.in/Moon
     * 47 commits 
     * 1 branch 
     * 0 packages 
     * 0 releases 
     * Fetching contributors 
     * MIT 

   Python Shell
    1. Python 99.5% 
    2. Shell 0.5% 

   Branch: master
   (BUTTON) New pull request
   Find file
   Clone or download

Clone with HTTPS 

   Use Git or checkout with SVN using the web URL.
   https://github.com/c
   Open in Desktop Download ZIP

Downloading

   Want to be notified of new releases in chubin/pyphoon?
   Sign in Sign up

Launching GitHub Desktop

   If nothing happens, download GitHub Desktop and try again.

   (BUTTON) Go back

Launching GitHub Desktop

   If nothing happens, download GitHub Desktop and try again.

   (BUTTON) Go back

Launching Xcode

   If nothing happens, download Xcode and try again.

   (BUTTON) Go back

Launching Visual Studio

   If nothing happens, download the GitHub extension for Visual Studio and try again.

   (BUTTON) Go back

Latest commit

   Fetching latest commit…
   Cannot retrieve the latest commit at this time.

Files

   Permalink
   Type                                                     Name                                                                                                                     Latest commit message                                                                  Commit time
        Failed to load latest commit information.
        bin               added bin/pyphoon-lolcat   Oct 20, 2018
        lib               gr => el                   Apr 18, 2019
        .gitignore added .gitignore           Oct 20, 2018
        LICENSE       Initial commit             Mar 5, 2016
        README.md   Added Jef's Twitter handle Oct 6, 2019

README.md

pyphoon

   ASCII Art Phase of the Moon (Python version)

   Screenshots 

   Based on the original version of Jef Poskanzer jef@mail.acme.com (Twitter: @jef_poskanzer) 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)

     * © 2020 GitHub, Inc.
     * Terms
     * Privacy
     * Security
     * Status
     * Help

   
     * Contact GitHub
     * Pricing
     * API
     * Training
     * Blog
     * About

   (BUTTON) You can’t perform that action at this time.

   You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

   (BUTTON)