{"id":29007740,"url":"https://github.com/devvyyxyz/lorem_gen","last_synced_at":"2026-03-09T18:42:45.487Z","repository":{"id":296596810,"uuid":"993913151","full_name":"devvyyxyz/lorem_gen","owner":"devvyyxyz","description":"A simple Python package to generate Lorem Ipsum-style placeholder text.","archived":false,"fork":false,"pushed_at":"2025-05-31T20:37:04.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T14:10:56.645Z","etag":null,"topics":["python","python-library","python-script","python2","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/lorem-gen/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devvyyxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-31T19:43:19.000Z","updated_at":"2025-06-10T15:00:27.000Z","dependencies_parsed_at":"2025-06-01T07:32:15.045Z","dependency_job_id":"61dc4152-2366-469b-9a23-6eb700f0d8f4","html_url":"https://github.com/devvyyxyz/lorem_gen","commit_stats":null,"previous_names":["devvyyxyz/lorem_gen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devvyyxyz/lorem_gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvyyxyz%2Florem_gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvyyxyz%2Florem_gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvyyxyz%2Florem_gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvyyxyz%2Florem_gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devvyyxyz","download_url":"https://codeload.github.com/devvyyxyz/lorem_gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvyyxyz%2Florem_gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30307569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-library","python-script","python2","python3"],"created_at":"2025-06-25T13:38:26.011Z","updated_at":"2026-03-09T18:42:45.449Z","avatar_url":"https://github.com/devvyyxyz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lorem_gen\n\n`lorem_gen` is a lightweight Python package and command-line tool that generates Lorem Ipsum placeholder text. It supports generating a specified number of words, sentences, or paragraphs. This package can be used both as a CLI and as an importable library in other Python projects.\n\n## Features\n\n* Generate a custom number of Lorem Ipsum words, sentences, or paragraphs.\n* Simple, dependency-free implementation (built-in Python standard library only).\n* CLI interface via the `lorem-gen` command.\n* Programmatic API through the `LoremGenerator` class.\n\n## Installation\n\nInstall `lorem_gen` in editable (development) mode or as a regular package. It requires Python 3.8 or newer.\n\n```bash\n# (Optional) Create and activate a virtual environment\npython3 -m venv .venv\nsource .venv/bin/activate\n\n# Upgrade packaging tools\npip install --upgrade pip setuptools wheel\n\n# Install lorem_gen in editable mode\npip install -e .\n```\n\nAfter installation, the package is importable via `import lorem_gen` and the CLI command `lorem-gen` is registered on your PATH.\n\n## Usage\n\n### Command-Line Interface (CLI)\n\nThe tool is exposed as `lorem-gen`. Run the following for help:\n\n```bash\nlorem-gen --help\n```\n\nOutput:\n\n```\nusage: lorem-gen [-h] [--words WORDS | --sentences SENTENCES | --paragraphs PARAGRAPHS]\n\nGenerate Lorem Ipsum text.\n\noptional arguments:\n  -h, --help           show this help message and exit\n  --words WORDS        Number of words to generate (e.g., --words 50).\n  --sentences SENTENCES\n                       Number of sentences to generate (e.g., --sentences 5).\n  --paragraphs PARAGRAPHS\n                       Number of paragraphs to generate (e.g., --paragraphs 2).\n```\n\nExamples:\n\n* Generate 50 words of Lorem Ipsum:\n\n  ```bash\n  lorem-gen --words 50\n  ```\n\n* Generate 5 sentences of Lorem Ipsum:\n\n  ```bash\n  lorem-gen --sentences 5\n  ```\n\n* Generate 2 paragraphs of Lorem Ipsum:\n\n  ```bash\n  lorem-gen --paragraphs 2\n  ```\n\n* Default (no flags) generates a single paragraph:\n\n  ```bash\n  lorem-gen\n  ```\n\n### Programmatic API\n\nYou can also use `lorem_gen` in your own Python code by importing the `LoremGenerator` class.\n\n```python\nfrom lorem_gen.generator import LoremGenerator\n\n# Generate 20 words:\ngen_words = LoremGenerator(words=20)\nprint(gen_words.generate())\n\n# Generate 3 sentences:\ngen_sentences = LoremGenerator(sentences=3)\nprint(gen_sentences.generate())\n\n# Generate 2 paragraphs:\ngen_paragraphs = LoremGenerator(paragraphs=2)\nprint(gen_paragraphs.generate())\n```\n\n#### API Reference\n\n* **`LoremGenerator(words: int = 0, sentences: int = 0, paragraphs: int = 0)`**\n\n  * Constructor. Specify exactly one of `words`, `sentences`, or `paragraphs` to control output. If none provided, defaults to 1 paragraph.\n\n* **`LoremGenerator.generate() -\u003e str`**\n\n  * Returns the generated Lorem Ipsum text as a string.\n\n* **`--words \u003cint\u003e`**\n\n  * CLI flag to generate a certain number of words.\n\n* **`--sentences \u003cint\u003e`**\n\n  * CLI flag to generate a certain number of sentences.\n\n* **`--paragraphs \u003cint\u003e`**\n\n  * CLI flag to generate a certain number of paragraphs.\n\n## Development \u0026 Testing\n\n### Running Tests\n\nA basic pytest-based test suite is provided in the `tests/` directory. To run tests:\n\n```bash\npip install pytest         # If not already installed\npytest\n```\n\n### Linting \u0026 Formatting\n\nYou can add `flake8` or other linters to your development dependencies. A sample `requirements-dev.txt` may include:\n\n```\npytest\u003e=7.0\nflake8\u003e=5.0\n```\n\nInstall with:\n\n```bash\npip install -r requirements-dev.txt\n```\n\nThen run:\n\n```bash\nflake8 src/lorem_gen\ntests\n```\n\n## Contributing\n\n1. Fork the repository.\n2. Create a new branch: `git checkout -b feature/my-new-feature`.\n3. Make your changes and commit: `git commit -am 'Add new feature'`.\n4. Push to the branch: `git push origin feature/my-new-feature`.\n5. Open a Pull Request.\n\nPlease follow the existing code style, include tests for new features, and update this README as needed.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvyyxyz%2Florem_gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevvyyxyz%2Florem_gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvyyxyz%2Florem_gen/lists"}