Skip to main content

Display a randomly selected quote about Richard M. Stallman.

Project description


A port of the R package rmsfact by Dirk Edelbuettel.

Display a randomly selected quote about Richard M. Stallman based on the collection in the 'GNU Octave' function 'fact()' which was aggregated by Jordi Gutiérrez Hermoso based on the (now defunct) site (which is accessible only via


pip install rmsfact


The package exports a single function rmsfact() which returns a single randomly-chosen "fact" as a str.

import rmsfact


You can also run python -m rmsfact from a shell.

Building from source

In the event you want to build the package from source, clone the repository...

git clone

... cd into the project directory...

cd rmsfact

...and install with make

make install

This builds the package and then runs python -m pip install .

Making changes

To add a new fact you can edit rmsfact/data/rmsfact.txt.

echo "A new fact" >> rmsfact/data/rmsfact.txt

The Makefile provides a couple of useful targets, one of which is make build_binary_data which executes the script rmsfact/data/ to convert rmsfact/data/rmsfact.txt into a .dat file using pickle. This .dat file is then read when the package is loaded.

Executing make build will rebuild the data file and produce the source and binary packages under a dist/ directory. You may need to python -m pip install build first.

make build

Other makefile targets

  • make install_dev: Install with pip -e

Project details

Download files

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

Source Distribution

rmsfact-0.4.0.tar.gz (15.4 kB view hashes)

Uploaded Source

Built Distribution

rmsfact-0.4.0-py3-none-any.whl (31.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page