Skip to main content

Command-line interface for OEIS.

Project description

# oeis-cli A command line interface for The On-Line Encyclopedia of Integer Sequences.

## Installation

` $ pip install oeis_cli `

or, if you’re feeling adventurous:

` $ git clone https://github.com/dfbenjamin/oeis_cli/ $ cd oeis_cli $ python3 setup.py install `

## Usage

Use the command oeis. For example:

` $ oeis 2 3 5 7 A000040: The prime numbers. 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89 `

Can also add the –unordered tag, which does the equivalent of searching with spaces instead of commas on OEIS:

` $ oeis --unordered 256 128 4 2048 A000079: Powers of 2: a(n) = 2^n. 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 `

Use –name or -n to search by name:

` $ oeis --name fibonacci A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. 0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765 `

## About OEIS

The author is not affiliated with OEIS in any way. For more information on the website, visit https://oeis.org/

The OEIS is made available under the [Creative Commons Attribution Non-Commercial 3.0 license](https://creativecommons.org/licenses/by-nc/3.0/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oeis-cli, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size oeis_cli-0.2.1-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size oeis_cli-0.2.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page