Skip to main content

Generate random slugs using basic sentence structure

Project description

sentenceslug

a module to generate relatively easy to remember slugs

Installation

pip install sentenceslug

Usage

In [1]: from sentenceslug import *

In [2]: sentence_slug()
Out[2]: 'Improve_That_Last_Day'

In [3]: sentence_slug_digits()
Out[3]: 'Start_His_National_Town_377'

In [4]: simple_slug()
Out[4]: 'NationalCar'

In [5]: simple_slug_digits()
Out[5]: 'LegalSystem305'

In [6]: nsa_codeword()
Out[6]: 'POORUSE'

In [7]: make_slug(simple=True, digits=5, delimiter="-")
Out[7]: 'Short-Good-83933'

Changelog

V1.1 2018-12-05

- Python 3 Changes

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 sentenceslug, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size sentenceslug-1.1-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sentenceslug-1.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page