Forum Archive

Generate Lorem Ipsum

techteej

I just purchased Editorial, and have been messing around. I found the built in Lorem Ipsum Generator (as I was working on my own) and wondered why no one had converted it over to Pythonista, so I did. The only thing missing is the insert feature, because I couldn't quite figure out why it had to be in the script.

lorem.py

lorem.pyui

(Downloading the repo is a lot easier ;) )

Omega0

There's already a Lorem Ipsum module in Python's standard library. You may not have seen it because it is called faker. faker provides a lot of functionality that a simple Lorem Ipsum module doesn't in terms of code testing so I'd recommend you check it out.

ccc

Yes. The above code imports and uses faker.

dgelessus

Faker isn't part of the Python standard library, it's a third-party module that is included by default in Pythonista. Just saying, in case you want to use it outside Pythonista.