Git Product home page Git Product logo

poetry-demo's Introduction

Poetry demo

Poetry - инструмент для управления зависимостями в Python проектах (аналог встроенного pip).

Install

pip install poetry

Instal dependencies

# для первичной установки
poetry install
# для обновления
poetry update

Run project

poetry run demo

Usage:

usage: demo [-h] [--random {int,real}] [--output OUTPUT] [a] [b] [n] [k]

Dynamic histogram work demo

positional arguments:
  a                     The left boundary of the uniform distribution of a random variable
  b                     The right boundary of the uniform distribution of a random variable
  n                     Number of histogram intervals
  k                     The number of points per one interval of the dynamic histogram

options:
  -h, --help            show this help message and exit
  --random {int,real}, -r {int,real}
                        Set type of random variable: integer(int) or real(real)
  --output OUTPUT, -o OUTPUT
                        The name of the file in which information about the difference between normal and dynamic histograms will be placed

Run checks

Tests

poetry run pytest

Check stryle

poetry run black --check ./trasil
poetry run isort --check ./trasil

Install

Build

# Create package
poetry build

# Install
pip install dist/poetry_demo-<version>-py3-none-any.whl

Use

Run in terminal

demo

Use in python project

from trasil.dynamichistogram import ClassicHistogram

Doit demo

Doit - менеджер заданий. Действия задаются в файле dodo.py в корне проекта

Основные действия

Если пишет bash: doit: command not found - запускать через poetry run doit

List of actions

doit list

Check style of source codes

doit check-style

Run tests

doit test

Build package

doit build

Deploy package

doit publish

poetry-demo's People

Contributors

trasil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.