Website URL:
   Skip to content
   
   Sign up  (BUTTON)
   (BUTTON)
     * Why GitHub?
       Features →
          + Code review
          + Project management
          + Integrations
          + Actions
          + Packages
          + Security
          + Team management
          + Hosting
          + Customer stories →
          + Security →
     * Team
     * 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 

   (BUTTON)

chubin / pyphoon

     * Watch  23 
     * Star  722 
     * Fork  59 

   🌖 ASCII Art Phase of the Moon (Python version)
   wttr.in/moon
   MIT License 
   722 stars  59 forks 
   Star 
   Watch 
     * Code 
     * Issues 5 
     * Pull requests 0 
     * Actions 
     * Projects 0 
     * Security 
     * Insights 

   More
     * Code 
     * Issues 
     * Pull requests 
     * Actions 
     * Projects 
     * Security 
     * Insights 

   (BUTTON) Dismiss

Join GitHub today

   GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
   Sign up
   Branch: master
   Go to file  Code

Clone with HTTPS 

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

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

   @chubin 
   chubin committed 1a3e475 Jun 24, 2020
   (BUTTON) …
   Merge pull request #28 from Resisty/master
Adding setup.py to create console entrypoints and scripts.

Git stats

     * 56 commits 
     * 1 branch 
     * 0 tags 

Files

   Permalink
   Failed to load latest commit information.
   Type
   Name
   Latest commit message
   Commit time
   src


   .gitignore


   LICENSE


   README.md


   requirements-developer.txt


   requirements.txt


   setup.py


   (BUTTON) View code

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)

About

   🌖 ASCII Art Phase of the Moon (Python version)
   wttr.in/moon

Resources

   Readme 

License

   MIT License 

Releases 

   No releases published

Contributors 16 

     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *

   + 5 contributors 

Languages

     * Python 99.6% 
     * Shell 0.4% 

     * © 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)