Skip to main content

lotodice

lotodice é uma ferramenta em Python para gerar e verificar jogos da Mega Sena e Quina.

Requisitos

  • Python 3.x

Instalação

Para instalar o lotodice basta rodar o seguinte comando:

pip install lotodice

Instalando através do código fonte

Clone o repositório:

git clone https://github.com/calebe94/lotodice

Entre no diretório criado:

cd lotodice/

E rode o seguinte comando:

pip install .

Buildando o pacote

Se você está contribuindo com o projeto e vai testar a distribuição do pacote, siga os seguintes passos:

Com o repositório já clonado e no diretório raiz do projeto, crie um ambiente virtual Python:

virtualenv venv
source venv/bin/activate

Instale o pacote build:

pip install --upgrade build

Agora rode o comando a seguir na pasta raiz do projeto:

$ python3 -m build

Agora para instalar o lotodice através do pacote gerado, basta rodar o seguinte comando:

pip install dist/lotodice_*.tar.gz

Uso

lotodice -t [mega|quina] -q [quantidade] [--export caminho_para_arquivo.csv]
  • -t, --tipo: Especifica o tipo de jogo (mega ou quina).
  • -q, --quantidade: Especifica a quantidade de jogos a serem gerados.
  • -e, --export: Exporta os jogos gerados para um arquivo CSV.

Para verificar se os jogos contidos em um arquivo CSV ganharam, use:

lotodice -c arquivo.csv "numeros_sorteados"
  • -c, --check: Verifica se os jogos contidos no arquivo CSV ganharam, onde "numeros_sorteados" é uma string separada por vírgula com os números sorteados.

Exemplos

Gerar 10 jogos da Mega Sena e imprimir no console:

lotodice -t mega -q 10

Exportar 20 jogos da Quina para um arquivo CSV:

lotodice -t quina -q 20 --export jogos_quina.csv

Verificar se os jogos contidos em jogos_mega.csv ganharam com os números sorteados 4,11,46,48,52:

lotodice -c jogos_mega.csv "4,11,46,48,52"

Licença

Este projeto está licenciado sob a GPL3.

Metadata

Release files for lotodice 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 lotodice 0.1.0
File Size Uploaded
lotodice-0.1.0.tar.gz 18.9 kB Details

Built distribution (wheel)

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

Total release size: 37.8 kB

Release files / lotodice-0.1.0.tar.gz

Download URL lotodice-0.1.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0479ae71f090d9a3caee44205d008fd2aca44d5b93fbf5377ae51e5d0e87b7ed
BLAKE2b-256 checksum
How to use checksums
e35fa528050d29f7640ec6080f87b1d0b926e9f43a00334ebc37d0e838f6a636
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

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

Download URL lotodice-0.1.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1ff16d94d8c7c6ffa4fa5b5b42c4ce180b5d05692a1424b2fdf5ba16a8145f
BLAKE2b-256 checksum
How to use checksums
c4ff2ce0903fa814453ee9eb6db53efa1120d14a1ca1583cf36688de1da9b201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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