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.
Setup / Usage
Follow the following: ! They are very important
1. call the function generate_code_simple()
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
Thia written in python code
Obviously use the statement from simple_code_generator.src.main import generate_code_simple
for the 1st line
Code without parameters
code = generated_code_simple()
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 = generated_code_simple(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.
Configuration
To configure the project all you need to do is pass in params
to the generate_code_simple()
function
Directory Structure
DIR +----------------------|> project
DIR +----------------------|> project-without-input
DIR +----------------------|> project-linux
DIR +----------------------|> project-linux-without-input
DIR +----------------------|> pip-package
Code Preview
Sorry GitHub doesn't support cloud systems shared viewing, so I provided a shareable link on Google Drive for you to see the source code https://drive.google.com/file/d/1FO9_8yDuGPlTi_HB3nFT_9g2Sldaza2n/view?usp=sharing
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
Hashes for random-text-generator-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c489943c2c869caf510c63f20e6bb952a4dc4bedaf52be0fc4f39e282c99a45e |
|
MD5 | c3077a55c1d524cff8dec1291762c9a8 |
|
BLAKE2b-256 | bed6b08be4a1e3f227cfcd2cec0ed7a8b7fc6cee54ded08d7eadbbb149a776ba |
Hashes for random_text_generator-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b92d6d74b7f9437dba4abe7797b3ad1a8702e653454b69a26cf52f43984181 |
|
MD5 | 7cac9c59df56f28fdc67210608211c5b |
|
BLAKE2b-256 | 16bef2723880ba9d02691fdac9eec4cc7642fe688f519424a075a5bec2ac498b |