Skip to main content

Find perfect pangrams

Project description

abeci

Create perfect pangrams, sentences with exactly one of each letter in the English alphabet.

Generate Pangrams

After installing abeci as a package, you can run:

abeci-pangrams

This script makes a text file with this name, in results by default:

./results/std4_max1_has_2x_3x/pangrams_1024_0x1_128x2_512x3_1024x4.txt

If the effects/source.p file is missing,

  • The script uses Google's English Corpus of all books published in 2008.
  • The script will wiret an effects/source.p to speed up future calls to the script.

it also:

  • writes a log file such as 2022-04-07T0200.log.
  • writes intermediate files in an effects directory.

The file is named after the current date and UTC time.

Run the help command for options: abeci-pangrams -h

API Usage

  • No programatic api is documented at this time:
  • Look to src/modules/savePangrams.py for inspiration

Local Installation

Dependencies

Install Miniconda or Anaconda.

conda env create -f environment.yaml

or

conda env update -f environment.yaml

Then, activate the installed environment:

conda activate abeci

After installing dependencies, you can run:

python src/pangrams.py

Run the help command for options: python src/pangrams.py -h

Build Locally w/ pip

Upgrade pip and build with pip

python -m pip install --upgrade pip
pip install build

Install Locally

Using the conda environment, install locally with pip:

VIRTUAL_ENV=$CONDA_PREFIX pip install --src $VIRTUAL_ENV/src -e .

Test

After installing locally, run:

bash run_test.sh

Publish

Publishing happens on release. The following two links were inspirations:

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

abeci-1.0.5.tar.gz (216.9 kB view details)

Uploaded Source

Built Distribution

abeci-1.0.5-py3-none-any.whl (219.9 kB view details)

Uploaded Python 3

File details

Details for the file abeci-1.0.5.tar.gz.

File metadata

  • Download URL: abeci-1.0.5.tar.gz
  • Upload date:
  • Size: 216.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for abeci-1.0.5.tar.gz
Algorithm Hash digest
SHA256 91b0cec132fd64f4f2b9e4251ce0ce551b7a1d53416810c7354161d612402a3b
MD5 6f41f1a731aa4bdc9673900e87da979b
BLAKE2b-256 8314fc5f01da763e269d94264205ef37958b8900c56e7314e17c736adeeeff4b

See more details on using hashes here.

File details

Details for the file abeci-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: abeci-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 219.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for abeci-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6643eb6e480925f91179b9c7929e1d2974dcbd4909d7cca7ede79ca3ad3f7479
MD5 54a344c114852c27e7f1da5b2ef937cd
BLAKE2b-256 fc18b46bfd8372520c1dec620b742ec7f445a5f174a2f84aa021889e78aff5f4

See more details on using hashes here.

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