lipsum-cpp 0.5.4
A basic library written in C++ for generating placeholder Lorem Ipsum text.
Loading...
Searching...
No Matches
lipsum_cpp.Generator Class Reference

Public Member Functions

 __init__ (self, str source_name="lorem", seed=None)
 __del__ (self)
 load_source (self, str source_name)
 load_seed (self, int seed)
 change_setting (self, str setting_name, int min_, int max_)
 toggle_lazy (self)
 word (self, int num=1)
 fragment (self)
 sentence (self, int num=1, bool use_lipsum=True)
 paragraph (self, int num=1, bool use_lipsum=True)
 text (self, bool use_lipsum=True)
 scramble (self, int length=16, str min_char=" ", str max_char="~")
 url (self)
 plain_url (self)
 email (self)
 slug (self, str separator="-")
 case_slug (self, int case=CaseSlugCase.SnakeCase)
 code (self, int lang=CodeLanguage.Python)
 ip_addr (self, bool use_ipv6=False, bool use_port=False)
 phone_number (self)
 fmt_paragraph (self, int num=1, bool use_lipsum=True, bool use_html=False)
 fmt_text (self, int numElements=15, bool use_html=False)
 fmt_header (self, int level=1, bool use_html=False)
 fmt_emphasis (self, bool is_bold=True, bool use_html=False)
 fmt_link (self, bool use_html=False)
 fmt_list (self, bool ordered=False, bool use_html=False)
 xml (self, int choices=30)
 json (self, int max_depth=3, bool is_object=True)
 json_value (self, int max_depth=3)
 csv (self)

Private Attributes

 __gen = native_lib.lpsm_Generator(bytes(source_name, "utf-8"))

The documentation for this class was generated from the following file:
  • src/lipsumpy/lipsum_cpp/__init__.py