faker-blog-provider


Namefaker-blog-provider JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryA Faker provider that generates fake blog content in Brazilian Portuguese as blog titles, blog posts, images, tags, and more.
upload_time2024-01-19 02:43:19
maintainer
docs_urlNone
author
requires_python>=3.8
licenseCopyright (c) 2023 Adaías Magdiel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords faker provider blog content fake blog data fake article content
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Faker Blog Provider

Python Faker Blog Content Provider

## Description

This Python package provides a Faker provider that generates fake blog content in Brazilian Portuguese. It consists of various methods that can be used to create blog-related fake data such as blog titles, blog posts, images, tags, and more.

## Installation

Use pip for install from [source in PyPI](https://pypi.org/project/faker-blog-provider/):

```bash
pip install faker-blog-provider
```

## Tests

Use pytest to test the project:

```bash
pytest -vvsx
```

## Usage

Import the `Faker` class from the `faker` package and initialize an instance of it. Then, import the `BlogProvider` class from the `faker_blog` module. Finally, add the `BlogProvider` to the instance of `Faker`.

```python
from faker import Faker
from faker_blog import BlogProvider

fake = Faker()
fake.add_provider(BlogProvider)

# Generate fake blog content
title = fake.article_title()
image = fake.article_image()
tag = fake.article_tag()
tags = fake.article_tags(nb=5)
category = fake.article_category()
image = fake.article_image()
content_html = fake.article_content_html()

# You can generate a dictionary containing the text and a slugified version using the following methods.
title = fake.article_title_and_slug()
tag = fake.article_tag_and_slug()
tags = fake.article_tags_and_slug(nb=5)
category = fake.article_category_and_slug()

```

## Features

- Generate fake blog titles
- Generate fake blog posts content
- Generate fake blog tag and tags
- Generate fake blog category
- Generate fake URLs for blog image using the [Lorem Picsum](https://picsum.photos/)

## Examples

#### Generate a fake blog title:

```python
title = fake.article_title()
print(title)
```

Output:
```
Os Segredos De Dirigir Um Poderoso Grupo
```

#### Generate fake blog tags:

```python
tags = fake.article_tags(nb=5)
print(tags)
```

Output:
```
['Transformação Pessoal', 'Gestão do Tempo', 'Estratégias de Crescimento', 'Automação', 'Desenvolvimento Sustentável']
```

#### Generate fake blog tags with slug:

```python
tags_and_slug = fake.article_tags_and_slug(nb=3)
print(tags_and_slug)
```

Output:
```
[{'tag': 'Ferramentas para Empreendedores', 'slug': 'ferramentas-para-empreendedores'}, {'tag': 'Transformação Digital', 'slug': 'transformacao-digital'}, {'tag': 'Cultura Empresarial', 'slug': 'cultura-empresarial'}]
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "faker-blog-provider",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "faker,provider,blog content,fake blog data,fake article content",
    "author": "",
    "author_email": "Ada\u00edas Magdiel <eu@adaiasmagdiel.com>",
    "download_url": "https://files.pythonhosted.org/packages/1a/08/51895b9bfec11a1ae5224f933a58b3a22d43bd676a896fc73529e92b1aee/faker_blog_provider-0.0.3.tar.gz",
    "platform": null,
    "description": "# Python Faker Blog Provider\r\n\r\nPython Faker Blog Content Provider\r\n\r\n## Description\r\n\r\nThis Python package provides a Faker provider that generates fake blog content in Brazilian Portuguese. It consists of various methods that can be used to create blog-related fake data such as blog titles, blog posts, images, tags, and more.\r\n\r\n## Installation\r\n\r\nUse pip for install from [source in PyPI](https://pypi.org/project/faker-blog-provider/):\r\n\r\n```bash\r\npip install faker-blog-provider\r\n```\r\n\r\n## Tests\r\n\r\nUse pytest to test the project:\r\n\r\n```bash\r\npytest -vvsx\r\n```\r\n\r\n## Usage\r\n\r\nImport the `Faker` class from the `faker` package and initialize an instance of it. Then, import the `BlogProvider` class from the `faker_blog` module. Finally, add the `BlogProvider` to the instance of `Faker`.\r\n\r\n```python\r\nfrom faker import Faker\r\nfrom faker_blog import BlogProvider\r\n\r\nfake = Faker()\r\nfake.add_provider(BlogProvider)\r\n\r\n# Generate fake blog content\r\ntitle = fake.article_title()\r\nimage = fake.article_image()\r\ntag = fake.article_tag()\r\ntags = fake.article_tags(nb=5)\r\ncategory = fake.article_category()\r\nimage = fake.article_image()\r\ncontent_html = fake.article_content_html()\r\n\r\n# You can generate a dictionary containing the text and a slugified version using the following methods.\r\ntitle = fake.article_title_and_slug()\r\ntag = fake.article_tag_and_slug()\r\ntags = fake.article_tags_and_slug(nb=5)\r\ncategory = fake.article_category_and_slug()\r\n\r\n```\r\n\r\n## Features\r\n\r\n- Generate fake blog titles\r\n- Generate fake blog posts content\r\n- Generate fake blog tag and tags\r\n- Generate fake blog category\r\n- Generate fake URLs for blog image using the [Lorem Picsum](https://picsum.photos/)\r\n\r\n## Examples\r\n\r\n#### Generate a fake blog title:\r\n\r\n```python\r\ntitle = fake.article_title()\r\nprint(title)\r\n```\r\n\r\nOutput:\r\n```\r\nOs Segredos De Dirigir Um Poderoso Grupo\r\n```\r\n\r\n#### Generate fake blog tags:\r\n\r\n```python\r\ntags = fake.article_tags(nb=5)\r\nprint(tags)\r\n```\r\n\r\nOutput:\r\n```\r\n['Transforma\u00e7\u00e3o Pessoal', 'Gest\u00e3o do Tempo', 'Estrat\u00e9gias de Crescimento', 'Automa\u00e7\u00e3o', 'Desenvolvimento Sustent\u00e1vel']\r\n```\r\n\r\n#### Generate fake blog tags with slug:\r\n\r\n```python\r\ntags_and_slug = fake.article_tags_and_slug(nb=3)\r\nprint(tags_and_slug)\r\n```\r\n\r\nOutput:\r\n```\r\n[{'tag': 'Ferramentas para Empreendedores', 'slug': 'ferramentas-para-empreendedores'}, {'tag': 'Transforma\u00e7\u00e3o Digital', 'slug': 'transformacao-digital'}, {'tag': 'Cultura Empresarial', 'slug': 'cultura-empresarial'}]\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023 Ada\u00edas Magdiel  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Faker provider that generates fake blog content in Brazilian Portuguese as blog titles, blog posts, images, tags, and more.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/AdaiasMagdiel/python-faker-blog",
        "Issues": "https://github.com/AdaiasMagdiel/python-faker-blog/issues"
    },
    "split_keywords": [
        "faker",
        "provider",
        "blog content",
        "fake blog data",
        "fake article content"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc8e55a51ca2a86987239c56a4a14c8202fd5f48df2252ddd9da127d782c8b16",
                "md5": "faae2e9194b9ebb08bc0b7faa7ba1759",
                "sha256": "347fa02b6df644e846b27af1d9a859fde0a4521f95cf858793a7466b5ea8b438"
            },
            "downloads": -1,
            "filename": "faker_blog_provider-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "faae2e9194b9ebb08bc0b7faa7ba1759",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10294,
            "upload_time": "2024-01-19T02:43:17",
            "upload_time_iso_8601": "2024-01-19T02:43:17.689294Z",
            "url": "https://files.pythonhosted.org/packages/bc/8e/55a51ca2a86987239c56a4a14c8202fd5f48df2252ddd9da127d782c8b16/faker_blog_provider-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a0851895b9bfec11a1ae5224f933a58b3a22d43bd676a896fc73529e92b1aee",
                "md5": "29dac7bae4f21b1f72a7f928349c1b5e",
                "sha256": "c388a1e1ef6aeaf155402dbe435d957138c6bdb6b1970ab12a9b7e14e55ee904"
            },
            "downloads": -1,
            "filename": "faker_blog_provider-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "29dac7bae4f21b1f72a7f928349c1b5e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11381,
            "upload_time": "2024-01-19T02:43:19",
            "upload_time_iso_8601": "2024-01-19T02:43:19.982003Z",
            "url": "https://files.pythonhosted.org/packages/1a/08/51895b9bfec11a1ae5224f933a58b3a22d43bd676a896fc73529e92b1aee/faker_blog_provider-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-19 02:43:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AdaiasMagdiel",
    "github_project": "python-faker-blog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "faker-blog-provider"
}
        
Elapsed time: 2.53695s