Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abeci

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abeci

Find perfect pangrams

  • 1.0.5
  • PyPI
  • Socket score

Maintainers
1

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:

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc