Name | singular-wrap-text JSON |
Version |
1.0.1
JSON |
| download |
home_page | https://github.com/CleberPereiraAnalista/WrapText.git |
Summary | A sample Python project |
upload_time | 2024-01-19 23:17:04 |
maintainer | |
docs_url | None |
author | Cleber Almeida Pereira |
requires_python | >=3.7, <4 |
license | MIT License Copyright (c) 2018 Yan Orestes 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: ... |
keywords |
wrap
quebra-de-linha
quebra
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# singular_wrap_text
**singular_wrap_text** é um simples quebrador de texto para qualquer ocasião escrito em Python.
Insere quebras de linha.
## Funções
* `WrapText` - **construtor** que recebe o texto a ser quebrado.
Pode receber 2 (dois) valores:
**length_wrap** quantidade de caracteres a contar para inserir a quebra de linha (trecho). Por padrão quebra o texto a cada **50** caracteres.
**break_type** indica o tipo de quebra a ser inserida. Por padrão insere **'\n'**. Para html, recomendo setar este argumento com **'\<br>'**.
* `get()` - Retorna o texto contendo as quebras de linha.
## Exemplos:
from singular_wrap_text.wraptext import WrapText
meu_texto = "Escrevendo um código numa única linha para testá-lo com a função WrapText."
# Exemplo 1
wt = WrapText(meu_texto, length_wrap=38)
print(wt.get())
>>Escrevendo um código numa única linha
para testá-lo com a função WrapText.
# Exemplo 2
wt = WrapText(meu_texto, length_wrap=38, break_type="<br>")
print(wt.get())
>>Escrevendo um código numa única linha<br>para testá-lo com a função WrapText.
Raw data
{
"_id": null,
"home_page": "https://github.com/CleberPereiraAnalista/WrapText.git",
"name": "singular-wrap-text",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7, <4",
"maintainer_email": "Cleber Almeida Pereira <cleber.ap.ads@gmail.com>",
"keywords": "wrap,quebra-de-linha,quebra",
"author": "Cleber Almeida Pereira",
"author_email": "Cleber Almeida Pereira <cleber.ap.ads@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/dd/bb/dfeb5c4e23f3ffa9d4f8a2302abe72973e6646b3fafc89293890c59a8f13/singular_wrap_text-1.0.1.tar.gz",
"platform": null,
"description": "\r\n# singular_wrap_text\r\n\r\n**singular_wrap_text** \u00e9 um simples quebrador de texto para qualquer ocasi\u00e3o escrito em Python.\r\nInsere quebras de linha.\r\n\r\n## Fun\u00e7\u00f5es\r\n\r\n* `WrapText` - **construtor** que recebe o texto a ser quebrado.\r\nPode receber 2 (dois) valores:\r\n**length_wrap** quantidade de caracteres a contar para inserir a quebra de linha (trecho). Por padr\u00e3o quebra o texto a cada **50** caracteres.\r\n**break_type** indica o tipo de quebra a ser inserida. Por padr\u00e3o insere **'\\n'**. Para html, recomendo setar este argumento com **'\\<br>'**. \r\n\r\n* `get()` - Retorna o texto contendo as quebras de linha.\r\n\r\n\r\n## Exemplos:\r\n\t\r\n\tfrom singular_wrap_text.wraptext import WrapText\r\n\t\r\n\tmeu_texto = \"Escrevendo um c\u00f3digo numa \u00fanica linha para test\u00e1-lo com a fun\u00e7\u00e3o WrapText.\"\r\n\t\r\n\t# Exemplo 1\r\n\twt = WrapText(meu_texto, length_wrap=38)\r\n\tprint(wt.get())\r\n\t\r\n\t>>Escrevendo um c\u00f3digo numa \u00fanica linha\r\n\tpara test\u00e1-lo com a fun\u00e7\u00e3o WrapText.\r\n\t\r\n\t# Exemplo 2\r\n\twt = WrapText(meu_texto, length_wrap=38, break_type=\"<br>\")\r\n\t\r\n\tprint(wt.get())\r\n\t\r\n\t>>Escrevendo um c\u00f3digo numa \u00fanica linha<br>para test\u00e1-lo com a fun\u00e7\u00e3o WrapText.\r\n\t\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2018 Yan Orestes 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: ...",
"summary": "A sample Python project",
"version": "1.0.1",
"project_urls": {
"C\u00f3digo fonte": "https://github.com/CleberPereiraAnalista/WrapText.git",
"Homepage": "https://github.com/CleberPereiraAnalista/WrapText.git"
},
"split_keywords": [
"wrap",
"quebra-de-linha",
"quebra"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0441d4ee55be2e8ff99939e546d63aac6fcb52e8232f551be9a9ec246ff58ff4",
"md5": "8f5268a6d7652a5137f3135902013057",
"sha256": "034f806e691ea07eb056d3224d1bd5a94a34df04e7d6bf7bdd4f95e01f70ae77"
},
"downloads": -1,
"filename": "singular_wrap_text-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8f5268a6d7652a5137f3135902013057",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7, <4",
"size": 3690,
"upload_time": "2024-01-19T23:17:03",
"upload_time_iso_8601": "2024-01-19T23:17:03.353388Z",
"url": "https://files.pythonhosted.org/packages/04/41/d4ee55be2e8ff99939e546d63aac6fcb52e8232f551be9a9ec246ff58ff4/singular_wrap_text-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ddbbdfeb5c4e23f3ffa9d4f8a2302abe72973e6646b3fafc89293890c59a8f13",
"md5": "6f04e8d88f1b2dd6811956a548a94bb9",
"sha256": "b4303dc9933b7a8928980a11007bac9a22fa0bfb920567049de6f3bc82959a28"
},
"downloads": -1,
"filename": "singular_wrap_text-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "6f04e8d88f1b2dd6811956a548a94bb9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7, <4",
"size": 3292,
"upload_time": "2024-01-19T23:17:04",
"upload_time_iso_8601": "2024-01-19T23:17:04.464000Z",
"url": "https://files.pythonhosted.org/packages/dd/bb/dfeb5c4e23f3ffa9d4f8a2302abe72973e6646b3fafc89293890c59a8f13/singular_wrap_text-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-19 23:17:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "CleberPereiraAnalista",
"github_project": "WrapText",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "singular-wrap-text"
}