Skip to main content

CuboUtils

Este repositório contém utilitários compartilhados pelos produtos CUBO:

  • license/: emissão, instalação e validação de licenças;
  • update_checker/: consulta da versão mais recente de um produto.

Licenças

A diferença entre os programas está somente nas operações utilizadas:

  • o consumidor chama verify_installed_license();
  • o instalador chama current_machine_id() e save_license();
  • o emissor chama issue_license() e fornece sua chave privada.

A chave pública fictícia está incorporada em license/public_key.py. Durante este teste de conceito, a chave privada correspondente está em private-key.pem, na raiz do repositório.

As duas chaves atuais são apenas para desenvolvimento. Antes de qualquer distribuição real, remova private-key.pem do repositório e substitua o par por chaves mantidas em um ambiente seguro.

A licença instalada usa o caminho fixo C:\ProgramData\CUBO\-. save_license() grava o arquivo com os atributos Hidden e System, enquanto os programas consumidores usam somente a interface de validação.

O formato compartilhado está descrito em LICENSE_FORMAT.md, e os exemplos de cada operação estão em license/README.md.

Verificação de versão

O endpoint retorna um único objeto JSON que relaciona cada produto à sua versão mais recente:

{
  "TQSVigas": "v1.0.0",
  "TQSFormas": "v1.0.0"
}

O utilitário retorna True quando a versão informada é igual ou posterior à versão publicada:

from update_checker import is_latest_version

updated = is_latest_version(
    endpoint="https://leonardopbatista.github.io/versions/versions.json",
    product="TQSVigas",
    version="2027.2.0",
)

Versões aceitas são sequências numéricas separadas por pontos, com um v inicial opcional. A consulta possui timeout padrão de cinco segundos e lança UpdateCheckError quando a rede ou a resposta do servidor falha.

Metadata

Release files for cuboutils 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 cuboutils 0.1.0
File Size Uploaded Provenance Actions
cuboutils-0.1.0.tar.gz 13.0 kB Without provenance Details for cuboutils-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.3 kB

Release files / cuboutils-0.1.0.tar.gz

Download URL cuboutils-0.1.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c24c60c34b200e12893a377aea688f0fc91ecbf5ea31a847f24021388f02a97a
BLAKE2b-256 checksum
How to use checksums
192b6102a2767964fee136e0e637e410f32403e76da1fd944d0d8e08b9a966ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

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

Download URL cuboutils-0.1.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4894f6490d741c97025d16e32f1f0691ccdc3aa749e179b5f2ace67e429a1878
BLAKE2b-256 checksum
How to use checksums
aa41764618c8a46b229ce4aeae418cfa1bd34e6d78a77e4362ca6c81a48ce0d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for cuboutils 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