Generate short, simple text codes
Project description
About this repository
Simple Code Generator
Description
Generate string codes for django or flask or any web development python framework or any python project generally
Use this script as an extension of your project whenever you want to generate random codes.
Usage
Follow the following: ! They are very important
1. call the function generate()
2. pass in the arguments, they are: [
'length_minimal', 'length_maximal', 'int_min_length',
'int_max_length'
], they are optional and the default values will be given to them. So the
output will be like
generate_code_simple(length_minimal=int, length_maximal=int,
int_min_length=int, int_max_length=int).
3. then leave the rest to the packge to generate the type of code for you
4. then make a variable like the example
`code = generate_code_simple()` | don't add the the symbol `|` just write the
what is inside the variables backticks.
5. then at runtime the generated code will be run
This written in python code
Obviously use the statement from text_generator import generate for the 1st line
Code without parameters
code = generate()
print(f"Generated code is -> {code}")
>>> Generated code is -> 552405550765069469025
The result is not fixed it changes at the next runtime
Code with parameters
code = generate(length_minimal=10, length_maximal=50,
int_min_length=1, int_max_length=99999)
print(f"Generated code is -> {code}")
>>> Generated code is -> 6051772282112626082611874181
? Don't rely on this code is not yet fully tested and results may differ.
Working on it
Configuration
To configure the project all you need to do is pass in params to the generate() function
Changelog
Authors
Contributing
Folder Structure Structure
DIR +----------------------|> dist
DIR +----------------------|> tests
DIR +----------------------|> text_generator
FILE +----------------------|> __init.py__
FILE +----------------------|> .gitignore
FILE +----------------------|> LICENSE
FILE +----------------------|> README.md
FILE +----------------------|> setup.py
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
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 random-text-generator-1.1.0.tar.gz.
File metadata
- Download URL: random-text-generator-1.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c746b979f9a95adb293790d51df2133794c5c6274c028fa997a4f5c0759ddbf0
|
|
| MD5 |
da39f0af330051c2f53626bbf7cebb35
|
|
| BLAKE2b-256 |
6034feb22169b41cd278f84eb97d92560323f57586bd7462c7c09626197a80a5
|
File details
Details for the file random_text_generator-1.1.0-py3-none-any.whl.
File metadata
- Download URL: random_text_generator-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcbe49a5f5873dd5eea37ecf62361fda6e86ad1abbce4881354614ddc6bdb1d9
|
|
| MD5 |
5409ec6640b59d1e741fdb76c0d02486
|
|
| BLAKE2b-256 |
fdca4f6e59c08b7b42d28ef10b8fafe02d2941d29e7c625a1e9a3078a921e326
|