Skip to content

Nish251103/Random_Text_Generator-Brython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Text Generator with Brython

Random Text Generator with Python (in Brython script), is a program that generates a random (and usually non-readable, meaningless) text for n number of paragraphs (with n taken as a user input and its ranging is capped from 1-100 paragraphs, for significant performance on every code run).

The tool is available live for direct access here.

Table of Contents

About

This program executes Python script(s) in website (with the help of Brython). It means that the Random Text is generated with a simple Python script (also using random module to ensure fresh, distinguished and unidentical result on every load), and the generated content is loaded on webpage using Brython.

Using the code

The code output for the latest release of the code in the master branch of this repository is also accessible at Github Pages.

To launch the code in local machine, index.html file can be opened. However, the brython file may not get executed successfully on directly opening the index file from the repository source folder (with IOError: can't load external script ... (AJAX calls not supported with protocol file:/// ). Assuming that Python (Python v3, specifically) is already configured on your system, the code can be executed through localhost. One simple way to setup a localhost would be using the following one-liner in command terminal/window:

python -m http.server [port]

where using a custom port number is optional, as port number defaults to 8000 with http.server Python 3. More about it can be read here. For Python 2, SimpleHTTPServer can be used instead.

Contributing Here

Contributions for this repository are welcome. If you can add anything for the betterment of this repository and any of its content(s), get started by reading the contributing file. Every change counts!

About

Random Text Generator with Python and Brython script.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 87.6%
  • CSS 12.4%