Skip to main content

A pure Python CLI tool for generating structured semi-random domain names.

Project description

structured-domain-generator

A pure Python, zero-dependency CLI tool for generating structured semi-random domain names.

Quick Start

# Install as a tool
uv tool install .

# Generate a domain sdg thingy --prefix ff123556 --suffix .net
https://ff123556-transparency-harvesting-investment.net

Features

  • Pure Python (0 dependencies).
  • CLI-based interface.
  • Structured generation using seed strings.
  • Support for optional prefixes and suffixes.
  • Weighted selection favoring shorter words (≤ 4 chars).

How it Works

The generator uses the first three characters of a seed string to pick three random words from available lists. Words starting with the corresponding character are prioritized; if none exist, a random word from the pool is used. Words with 4 characters or fewer are given double the selection weight.

Installation

This project uses uv. You can install the tool globally:

uv tool install .

Usage

Run the tool using the sdg or structured-domain-generator command:

sdg <seed_word> [options]

Options

  • --prefix <string>: Adds a prefix to the domain.
  • --suffix <string>: Adds a suffix (e.g., .com, .net) to the domain.
  • --lists <list...>: Specify word lists to use (business, energy, short). Defaults to all.

Development

  • Project Management: uv
  • Linting & Formatting: ruff

To format and lint the code:

uv run ruff format .
uv run ruff check .

Contributing

Pull requests for bug fixes and improvements are welcome.

License

This project is licensed under 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

structured_domain_generator-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

structured_domain_generator-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file structured_domain_generator-0.1.0.tar.gz.

File metadata

File hashes

Hashes for structured_domain_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48c342e6724e7c78450ea49fdedf4dfdb5164cbdc9406169fe80e49938cbd84c
MD5 a0c3eead4633e5d7aad116a233d9ee8d
BLAKE2b-256 deca0688526c72cd3d87f14e053f1ecdc34a3e420497f22ecf5cda9f94d2a1be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for structured_domain_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f85cd4790bbf5756df72de39379fa611950f20774943260dba43b40cf9c58855
MD5 0eed91d84ded5f089a32e9194455803b
BLAKE2b-256 ffdf1c1b13fc466f5188a1183b3c1d56ce7ffa24ac812eb8159ecce7df4d8251

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