No project description provided
Project description
friendly_names
A super simple random friendly name generator that creates readable, hyphenated names like "red-loop-bounty".
Table of Contents
Installation
pip install friendly_names
Usage
import friendly_names
# Generate a friendly name like "red-loop-bounty"
name = friendly_names.generate()
# Customize number of words
name = friendly_names.generate(words=4) # e.g., "happy-blue-running-fox"
# Use different separator
name = friendly_names.generate(separator="_") # e.g., "green_swift_river"
Development
To set up the development environment:
pip install hatch
Common development tasks:
# Run tests
hatch run test:test
# Run tests with coverage
hatch run test:coverage
# Run type checking
hatch run types:check
# Check code style
hatch run lint:style
# Format code
hatch run lint:fmt
The project uses:
- Hatch for development environment and build management
- pytest for testing
- mypy for type checking
- Ruff for linting and formatting
- Black style rules (via Ruff)
Release Process
To release a new version:
- Update version in
src/friendly_names/__about__.py - Commit the change:
git add src/friendly_names/__about__.py git commit -m "Bump version to x.y.z"
- Tag the release:
git tag -a vx.y.z -m "Release version x.y.z" - Push changes and tag:
git push origin master git push origin vx.y.z
The GitHub Actions workflow will automatically build and publish to PyPI when the tag is pushed.
License
friendly_names is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file friendly_names-0.1.0.tar.gz.
File metadata
- Download URL: friendly_names-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9edc76d78ff8c014ce16661a9551272239ba4646711dc083c6d5d0cb7cacf3e9
|
|
| MD5 |
27ca7cac3daa5d5449568b87023ca156
|
|
| BLAKE2b-256 |
cac51d85b4528ba0005a1b29054cfa86ae145cafa8346289e2d32fac8379997c
|
File details
Details for the file friendly_names-0.1.0-py3-none-any.whl.
File metadata
- Download URL: friendly_names-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e4ea9fe74993adfcca56491557cd6b5c714036469df82bf245cf6c99de2921c
|
|
| MD5 |
a8a9a3d3cb04161687131f565ff04b0b
|
|
| BLAKE2b-256 |
4c1fd5e89b5b6e51086b2f595849132b5ea92c9886ec6de55844cf96c9435857
|