Skip to main content

No project description provided

Project description

friendly_names

PyPI - Version PyPI - Python Version

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:

  1. Update version in src/friendly_names/__about__.py
  2. Commit the change:
    git add src/friendly_names/__about__.py
    git commit -m "Bump version to x.y.z"
    
  3. Tag the release:
    git tag -a vx.y.z -m "Release version x.y.z"
    
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

friendly_names-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

friendly_names-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for friendly_names-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9edc76d78ff8c014ce16661a9551272239ba4646711dc083c6d5d0cb7cacf3e9
MD5 27ca7cac3daa5d5449568b87023ca156
BLAKE2b-256 cac51d85b4528ba0005a1b29054cfa86ae145cafa8346289e2d32fac8379997c

See more details on using hashes here.

File details

Details for the file friendly_names-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for friendly_names-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e4ea9fe74993adfcca56491557cd6b5c714036469df82bf245cf6c99de2921c
MD5 a8a9a3d3cb04161687131f565ff04b0b
BLAKE2b-256 4c1fd5e89b5b6e51086b2f595849132b5ea92c9886ec6de55844cf96c9435857

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page