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


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.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_gener-1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: word_gener-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_gener-1.0.tar.gz
Algorithm Hash digest
SHA256 2db35301ad0fb30c0a9896c0d71f22648dcdb94d830173c76c5d06ca76c71bc7
MD5 825d58dc839d91b744e6a9688e974b4b
BLAKE2b-256 c14983c66013593025aac5ff19ffced28df72279be263ed2c85a01dce0262629

See more details on using hashes here.

File details

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

File metadata

  • Download URL: word_gener-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_gener-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c58f44b1c4f562d17cc64c205391487791515a9550a187a9a280c248e35b3660
MD5 d735546399023f4f10ea5aec65a8d64e
BLAKE2b-256 e98ea23f6334489b0098f3ac0e436178489a541068e884da80abee19d59eda91

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