Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Lorem ipsum generator.
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.
The lorem
module provides a generic access to generating the lorem ipsum text
from its very original text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Usage of the lorem
module is rather simple. Depending on your needs, the
lorem
module provides generation of words, sentences, and
paragraphs.
The lorem
module provides two different ways for getting random words.
word
-- generate a list of random words
word(count=1, func=None, args=[], kwargs={}) -> Iterable[str]
get_word
-- return random words
get_word(count=1, sep=' ', func=None, args=[], kwargs={}) -> str
The lorem
module provides two different ways for getting random sentences.
sentence
-- generate a list of random sentences
sentence(count=1, comma=(0, 2), word_range=(4, 8)) -> Iterable[str]
get_sentence
-- return random sentences
get_sentence(count=1, comma=(0, 2), word_range=(4, 8), sep=' ') -> Union[str]
The lorem
module provides two different ways for getting random paragraphs.
paragraph
-- generate a list of random paragraphs
paragraph(count=1, comma=(0, 2), word_range=(4, 8), sentence_range=(5, 10)) -> Iterable[str]
get_paragraph
-- return random paragraphs
get_paragraph(count=1, comma=(0, 2), word_range=(4, 8), sentence_range=(5, 10), sep=os.linesep) -> Union[str]
FAQs
Lorem ipsum generator.
We found that python-lorem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.