Giter Club home page Giter Club logo

pyriodic's Introduction

Pyriodic

Periodic table word thinger. In Python.

This is a toy to display the periodic table of the elements, or information about a specific element.

Features

  • Display the standard layout (or wide version) of the Periodic Table of the Elements, with or without grid markings, in mono or in colour.
  • Render a word or phrase using element symbols
  • Provide alternate solutions for rendering a word using only element symbols

Flashy screenies

The table rendered in colour, with grid, produced with periodic.py -tcg

The periodic table of the elements

A selection of words, produced with periodic.py -cp "chocolate bacon counterespionage" --width=100

The words "chocolate", "bacon" and "counterespionage" rendered in colourful element symbols

Help

usage: periodic.py [-h] [-i ELEMENT] [-w WORD] [-v | -p PHRASE] [-g] [-t] [-l {standard,standard32}] [-c] [--width WIDTH]

Periodic table word confabulator

optional arguments:
  -h, --help            show this help message and exit
  -i ELEMENT, --info ELEMENT
                        show more info about a particular element
  -w WORD, --word WORD  a word to render
  -v, --variations      display all variations, rather than just the best match.
  -p PHRASE, --phrase PHRASE
                        a phrase to render
  -g, --grid            show the grid
  -t, --table           display the entire periodic table
  -l {standard,standard32}, --layout {standard,standard32}
                        specify the table layout to render
  -c, --color           display each element using its color
  --width WIDTH         number of character columns to display on one line

Installation

pip install -r requirements.txt

Dependencies

  • Python 3
  • colored

Credits

Element name information was cribbed from Wikipedia.

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.