Skip to main content

jadlog

Projeto simples para calculo de frete, cubagem e peso real para transportadora Jadlog

Updates Python 3 Build Status Python application codecov GitHub

Como usar

Antes de mais nada você precisa ter uma conta com a Jadlog http://www.jadlog.com.br/

Você vai precisar para calculo do frete e peso de cubagem:

  • Cadastro/Contrato com a Jadlog
    • Usuário (CNPJ)
    • Senha

Instalando o pacote via pip

pip install jadlog

Instalando via git

git clone https://github.com/tiagocordeiro/jadlog.git

Como rodar o projeto (clonando via git)

  • Clone esse repositório.
  • Crie um virtualenv com Python 3.
  • Ative o virtualenv.
  • Instale as dependências.
git clone https://github.com/tiagocordeiro/jadlog.git
cd jadlog
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python contrib/env_gen.py

Alguns exemplos de uso

$ python
>>> from jadlog.calcula import peso_cubagem
>>> peso_cubagem(72, 44, 62)
{'Cubagem Expresso': 32.736, 'Cubagem Rodoviario': 58.93069306930693}

>>> from jadlog.calcula import frete_rodoviario
>>> frete_rodoviario(72, 44, 62, 27, '09220700', '48602575', 2450)
'273,75'

>>> from jadlog.calcula import frete
>>> frete(52, 24, 62, 10, '09220700', '09220-700', 2450)
{'frete': [{'expresso': '69,41'}, {'rodoviario': '81,51'}]}

>>>

Testes, contribuição e dependências de desenvolvimento

Para instalar as dependências de desenvolvimento

pip install -r requirements-dev.txt

Para rodar os testes

pytest -v --doctest-glob='*.md'

Para rodar os testes com relatório de cobertura.

coverage run manage.py test -v 2
coverage html

Verificando o Code style

pycodestyle .
flake8 .

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

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

Built distribution (wheel)

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

Total release size: 12.2 kB

Release files / jadlog-0.1.0.tar.gz

Download URL jadlog-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
022cb3a365ed5b300249f78fcc57cf6df590b960a7d23e28bf6ff045499bd2d0
BLAKE2b-256 checksum
How to use checksums
af69a8dedcfdf8a6d84328ae90c83cf2e7e2109d3f422e5665bafd0a41a0a49c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

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

Download URL jadlog-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7db128840275586bfc79e3dde3ba007f863d223fc59455b8bb30ca43d9761bf2
BLAKE2b-256 checksum
How to use checksums
a295e3c1658e4daa67eb116c8badb93cad2e78ed5507d1efa80ef60e4a0c6819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Security for jadlog 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.

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