Skip to main content

rmsfact

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 stallmanfacts.com (which is accessible only via http://archive.org).

Installation

uv pip install rmsfact

Or with pip:

pip install rmsfact

Usage

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

import rmsfact

rmsfact.rmsfact()

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

Building from source

This project uses uv for dependency management and building.

Clone the repository:

git clone https://github.com/lewinfox/rmsfact.git
cd rmsfact

Install uv if you don't have it:

curl -LsSf https://astral.sh/uv/install.sh | sh

Set up the development environment:

make install_dev

This will create a virtual environment, install dependencies, and set up the package for development.

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 several useful targets:

  • make install_dev: Set up development environment with uv
  • make test: Run unit tests with pytest
  • make build: Build the package (creates source and wheel distributions)
  • make clean: Remove build artifacts
  • make format: Format code with ruff
  • make check: Run linter checks

You can build the package with:

make build

Releasing to PyPI

This project uses GitHub Actions to automatically publish to PyPI when you create a new GitHub release.

First-time setup

You need to configure PyPI's Trusted Publishers feature (one-time setup):

  1. Go to PyPI and log in to your account
  2. Navigate to your project's settings (or create the project first if it doesn't exist)
  3. Go to the "Publishing" section
  4. Add a new publisher with these settings:
    • PyPI Project Name: rmsfact
    • Owner: lewinfox (your GitHub username)
    • Repository name: rmsfact
    • Workflow name: publish.yml
    • Environment name: (leave blank)

Creating a release

Once trusted publishing is configured, simply create a new GitHub release:

  1. Update the version in pyproject.toml
  2. Commit and push your changes
  3. Create a new release on GitHub with a tag matching the version (e.g., v0.5.0)
  4. The GitHub Action will automatically build and publish to PyPI

You can also manually publish with:

make upload

Metadata

Release files for rmsfact 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rmsfact 0.5.0
File Size Uploaded Provenance Actions
rmsfact-0.5.0.tar.gz 23.1 kB With provenance Details for rmsfact-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rmsfact 0.5.0
File Interpreter ABI Platform Actions
rmsfact-0.5.0-py3-none-any.whl Python 3 none any Details for rmsfact-0.5.0-py3-none-any.whl

Total release size: 46.7 kB

Release files / rmsfact-0.5.0.tar.gz

Download URL rmsfact-0.5.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c2c9a56cdd8da60634ebd57539e806d0a745884260c24e9525464a614f379582
BLAKE2b-256 checksum
How to use checksums
76a9076d4e4aa14886c87d8d979cfb772d1c12617c427864dcadff566eeebfc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

Release files / rmsfact-0.5.0-py3-none-any.whl

Download URL rmsfact-0.5.0-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b5732e0b2b68767609187c9c99738fe4e98c067d1ca72349abf130e4c903f56
BLAKE2b-256 checksum
How to use checksums
bea8a34ac52c11cd4ba3e0b12f17ba50cba799349654ac672e6c30715522ac99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

Security for rmsfact 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rmsfact-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page