Hello,
I am happy to inform you about a new release of makepackage (v0.1.8). The
new version comes with
- `--cli` being the main flag for a package with the command-line
inference; the `-cli` will work, too, and even the `cli` flag will work,
the latter for backward compatibility;
- bug fix: after
The perftester package enables you to run performance tests of Python
functions/callables. Performance is understood in terms of both execution
time and memory usage. In addition, perftester enables you to run
benchmarks, an important functionality when you need to set limits for your
tests.
You h
Packaging code is a frequent approach in both open-source and business
Python development. You can use various tools, such as Cookiecutter, or you
can package your package manually.
Now, you also have a much simpler solution, a makepackape Python package,
with which it takes just one simple shell
Hi all!
When you work with numbers and need to print them, more often than not you
want to round them. You can use the built-in round() function:
>>> round(1.123, 2)
1.12
>>> x = [1.123, 44.32, 12.11234]
>>> [round(x_i, 2) for x_i in x]
[ 1.12, 44.32, 12.11]
However, when you want to round number
We all know that the assert statement should not be used in production
code. Instead, you can use assertion-like functions from the easycheck
package.
Consider the following example. You have a function that fits a statistical
model that requires sample size (n) to be at least 20. So,
>>> assert n