Skip to main content

ResultWriter

O ResultWriter é uma biblioteca leve e direta para a persistência de resultados de execução em arquivos. Desenvolvida para simplificar o processo de gravação de logs e saídas de sistemas sem a necessidade de configurações complexas.

Instalação

Você pode instalar o pacote localmente utilizando o pip a partir da raiz do diretório do projeto:

'''python pip install resultwriter

Como usar

A biblioteca foi projetada para ser intuitiva. Primeiro, instancie o ResultWriter, configure os parâmetros e defina o conteúdo antes de salvar.

'''python from resultwriter import ResultWriter

Inicialização

rw = ResultWriter()

Configuração do nome do arquivo

rw.coderesultname("resultado_teste")

Configuração da extensão

rw.logextension("md")

Definição do conteúdo

rw.set_content("# Relatório de Execução\nO processo foi concluído com êxito.")

Gravação do arquivo

rw.SaveResult()

Métodos Disponíveis

coderesultname(name: str): Define o nome do arquivo que será gerado (sem a extensão).

logextension(extension: str): Define a extensão do arquivo (ex: txt, md, json). Não é necessário incluir o ponto inicial.

set_content(content: str): Define a string que será escrita dentro do arquivo.

SaveResult(): Executa a operação de escrita no sistema de arquivos utilizando as configurações atuais.

Metadata

Release files for resultwriter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resultwriter 0.1.0
File Size Uploaded Provenance Actions
resultwriter-0.1.0.tar.gz 2.1 kB Without provenance Details for resultwriter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resultwriter 0.1.0
File Interpreter ABI Platform Actions
resultwriter-0.1.0-py3-none-any.whl Python 3 none any Details for resultwriter-0.1.0-py3-none-any.whl

Total release size: 4.5 kB

Release files / resultwriter-0.1.0.tar.gz

Download URL resultwriter-0.1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
45e81885efd3020170a95aa7f77a07f14646f7bc907482e635a0c84a287eb1e0
BLAKE2b-256 checksum
How to use checksums
01c683e329484300605ff5be279c306aa55865b11ebb7af837acdc563371a50b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / resultwriter-0.1.0-py3-none-any.whl

Download URL resultwriter-0.1.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10ad675209edef9571809dc454fa62cb6e0cc84fb1b6614af28240d138447a21
BLAKE2b-256 checksum
How to use checksums
249a122ab95350ca25adfb2bc11c2a537317cfddba69c69e26e04670c2ade17e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for resultwriter 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page