Skip to main content

generate word file with random data

Project description

Word generator package

This project generates a random picture, typing a table and puts it in a word file.

You can specify a clear length of the generated text and the path where the generated file will be saved.


Installing

pip install word_gen

How to use

from word_gen.word_gen import word

random_drawing() #This function generates a random picture from geometric shapes
get_table() #This function generates a random fixed-sized table of numbers
generate_random_string(length) #length- number of letters of random text. This function generates a random set of letters of a given length
merge(path) #path- selected save path. This function combines several word files into one single file at the specified path. Possibly can be used as a standalone helper library or smth idk ВЇ\_(гѓ„)_/ВЇ
trash_clean() #This function cleans up intermediate files

Example

from word_gen.word_gen import word

random_drawing() 
get_table() 
generate_random_string(12) 
merge(r"C:\Users\Cherloy\Desktop\testing\result.docx") 
trash_clean() 

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

word_gen.py-1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

word_gen.py-1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file word_gen.py-1.0.tar.gz.

File metadata

  • Download URL: word_gen.py-1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for word_gen.py-1.0.tar.gz
Algorithm Hash digest
SHA256 c2800661b95f8ba090e30cfaf6cab196beff79620f562bd741b6575dac18aa58
MD5 24b79f2e03af29980f258f69311fa27c
BLAKE2b-256 d3388d7806c768046221388378d8ca3ba9399dea44560e76819fc3f854605831

See more details on using hashes here.

File details

Details for the file word_gen.py-1.0-py3-none-any.whl.

File metadata

  • Download URL: word_gen.py-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for word_gen.py-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa34cf8e731f3d907412a116daf7234c40f922a943c979f4f664d3a44e8026e9
MD5 e4d87978fc0e990b901df0a2394c6658
BLAKE2b-256 1266b2987cb9daea177f0b826077723687cb57bc0ad7cd4440d31ab1a9b27091

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page