Skip to content

Repo to store code for the project of creating printable random objects

Notifications You must be signed in to change notification settings

Mahdiazhari/printable-random-objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printable Random Objects

This Python Application creates printable random objects of four categories, writes them into a txt file and then parses/categorizes them. There are two main python scripts: generator.py and main.py. generator.py contains the Generator class. The Generator class will generate 4 kinds of alphanumeric strings:

  1. Alphabets
  2. Alphanumerics
  3. Integers
  4. Real Numbers

These strings will be appended to a file called test.txt. It is possible to set the size of the txt file depending on our requirements. Just put in the target filesize in the target_size parameter (set the size in Megabytes) of the generate_file method. The Generator also comes with a unittest which we can use with the command "python -m unittest".

The main driver for the whole package of applications is available in main.py. To run the whole app, run command with 2 extra arguments filename and target file size (in MB). Example: "python3 main.py [filename][target_file_size]"

About

Repo to store code for the project of creating printable random objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages