[](https://drone.shadowmail.co.uk/hintofbasil/Python-Beautifurl)
# BeautifURL
## Installation
BeautifURL can be installed from pip
pip install beautifurl
## Usage
>>> from beautifurl import Beautifurl >>> beautifurl = Beautifurl()>>> beautifurl.get_random_url('aaA') 'BeautifulAdventurousGiraffe'>>> beautifurl.count_permutations('aaA') 9150136>>> for url in beautifurl.get_permutations('aaA', shuffle=True): ... print(url) ...GloriousDeterminedPeafowl NiceSuccessfulJackal DepressedStupidPartridge StormyStrangeGiraffe AngryPleasantMonkey …
### Url format
The examples above have a format string as their first argument. This dictates which types of words the url should be made up of. The examples all use adjective adjective Animal. Any number or combination of keys may be used. A full list of keys is available below.
### Custom dictionaries
The Beautifurl object __init__ function takes an optional parameter dictionaryPath. This allows the default dictionaries to be swapped for user specified dictionaries.
>>> beautifurl = Beautifurl(dictionaryPath='~/dictionaries')
The dictionaries in this folder must be named KEY_… where KEY is a single character. All keys should be unique. Any characters after the underscore are ignored. See dictionaries folder for examples.
## Dictionaries
## Contributing
### Wordlists
Additional words and lists may be submitted in pull requests. Please run the new lists through the organise script located in the dictionaries folder.
Please ensure you have permission to use any lists before submitting a pull request. If a license is required please name the license file license.LIST_NAME.
./organise LIST_NAME [MAX_SIZE] > tmp mv tmp LIST_NAME
### Code
Pull requests are more than welcome.
Metadata
Release files for beautifurl 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| beautifurl-0.1.3.tar.gz | 6.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beautifurl-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / beautifurl-0.1.3.tar.gz
| Download URL | beautifurl-0.1.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c52c9ff4b3ede40e2f237e93057c4b56bf23cf2466ed1c159daf5f25eab90e
|
|
BLAKE2b-256 checksum How to use checksums |
d26e3a169e6b440fb49a66427a5f7e436bd00a491330463b7d7bb370d770f578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / beautifurl-0.1.3-py3-none-any.whl
| Download URL | beautifurl-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63f3e186d3fb4b5d5147b5937b4c58ac4683aca8f8b27f938189e2928b0a6c6d
|
|
BLAKE2b-256 checksum How to use checksums |
eae9ecdd2c2efc8ad5e58f1fb8e5ca2d36f78669fd383e716697f03ab2a4fe93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for beautifurl 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.