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-gener

How to use

from word_gen.word_gen import Word

random_drawing(shapes) #This function generates a random picture from geometric shapes shapes- shapes of figures
get_table() #This function generates a random fixed-sized table of numbers
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

Word.random_drawing('circle''rectangle''ellipse''line) 
Word.get_table() 
Word.random_string(12) 
Word.merge(r"C:\Users\Cherloy\Desktop\testing\result.docx") 
Word.trash_clean() 

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

word_gener-1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

word_gener-1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file word_gener-1.2.tar.gz.

File metadata

  • Download URL: word_gener-1.2.tar.gz
  • Upload date:
  • Size: 3.7 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_gener-1.2.tar.gz
Algorithm Hash digest
SHA256 7a9b5bffb1c889ba26eb43435f9ce2ab2c92a8b8b3f2e3d1fee1d29883171aea
MD5 6892bea0507416d2477e821d998a6fa3
BLAKE2b-256 d9d19d667faabe359a1830f62882a06446c09f7c9a02c6fb2c4898e0089bdfd2

See more details on using hashes here.

File details

Details for the file word_gener-1.2-py3-none-any.whl.

File metadata

  • Download URL: word_gener-1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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_gener-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ad907181a739c0e9608f1dd8f8f28af7be39ebb83f3164b46b2943e1f89852f
MD5 57d4ad8ca505bd648435bab796b1b0d1
BLAKE2b-256 f933f6b7e2d45aea427b7120f10d8b61d722d3238dd38137d53b06a245dfcd31

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