rand-string
Generates a random string of a specified length.
Usage
Currently there are 5 types:
- uppercase
- lowercase
- upperlower
- alphanumerical
- ascii
You can probably guess what each one would create
The function requires 2 parameters type and length; Type of course is the above.
import rand_string.rand_string as rand
rand.RandString(type, length)
Now lets look at some examples
uppercase:
print(rand.RandString("uppercase", 10))
# Output: TPDROEAVRY
lowercase:
print(rand.RandString("lowercase", 10))
# Output: mdvsewzkwf
upperlower:
print(rand.RandString("upperlower", 10))
# Output: YjHFGzysFx
alphanumerical:
print(rand.RandString("alphanumerical", 10))
# Output: Fy0Nbqno6B
ascii:
print(rand.RandString("ascii", 10))
# Output: jtj-NV<PSV
Release files for rand-string 0.50
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rand-string-0.50.tar.gz | 2.0 kB | Details |
Release files / rand-string-0.50.tar.gz
| Download URL | rand-string-0.50.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39d9da8491aea57666e82ea91e4489d187a49bdfa25b8d2a642e39735ee1e3f0
|
|
BLAKE2b-256 checksum How to use checksums |
6aad4daf29ad0206cc38d0b0d0c440dd3412424944b39e57ad93c9dd218ff368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
|