I am please to announce the availability of the "baseline" package.
This tool streamlines creation and maintenance of tests which compare string
output against a baseline. It offers a mechanism to compare a string against
a baselined copy and update the baselined copy to match the new value when a
mismatch occurs. The update process includes a manual step to facilitate a
review of the change before acceptance. The tool uses multi-line string
format
for string baselines to improve readability for human review.
Docs: https://baseline.readthedocs.io/en/latest/
PyPi: https://pypi.org/project/baseline/
Repo: https://github.com/dmgass/baseline
License: MIT
With Regards,
Dan Gass
(dan.gass at gmail)
***********
Quick Start
***********
Create an empty baseline with a triple quoted multi-line string. Place
the ending triple quote on a separate line and indent it to the level
you wish the string baseline update to be indented to. Add a compare of
the string being tested to the baseline string. Then save the file as
``fox.py``:
.. code-block:: python
from baseline import Baseline
expected = Baseline("""
""")
test_string = "THE QUICK BROWN FOX\n JUMPS\nOVER THE LAZY DOG."
assert test_string == expected
Run ``fox.py`` and observe that the ``assert`` raises an exception since
the strings are not equal. Because the comparison failed, the tool located
the triple quoted baseline string in the source file and updated it with the
miscompared value. When the interpretter exited, the tool saved the updated
source file but changed the file name to ``fox.update.py``:
.. code-block:: python
from baseline import Baseline
expected = Baseline("""
THE QUICK BROWN FOX
JUMPS
OVER THE LAZY DOG.
""")
test_string = "THE QUICK BROWN FOX\n JUMPS\nOVER THE LAZY DOG."
assert test_string == expected
After reviewing the change with your favorite file differencing tool,
accept the change by either manually overwriting the original file or use
the ``baseline`` command line tool to scan the directory for updated
scripts and accept them:
.. code-block:: shell
$ python -m baseline *
Found updates for:
fox.py
Hit [ENTER] to update, [Ctrl-C] to cancel
fox.update.py -> fox.py
Run ``fox.py`` again and observe the ``assert`` does not raise an exception
nor is a source file update generated. If in the future the test value
changes, the ``assert`` will raise an exception and cause a new source file
update to be generated. Simply repeat the review and acceptance step and you
are back in business!
<P><A HREF="https://baseline.readthedocs.io/en/latest/">
baseline 0.2.1</A> - Easy String Baseline (07-Jun-18)
This course will help you to expertise the usage of Python in Data Science world.
Carter your Python Knowledge so that it can be utilized to get the Insights of Data using Methodologies and Techniques of Data Science...
Objective:
Understand the concepts of Data science and Python
You will be able to use Python in Discovering Data.
You will have an idea of Statistical and Analytical methods to deal with huge data sets.
You will gain an expertise on Regular Expressions, looping functions and concepts of Object Oriented Programming.
You will be able to create business algorithms and data models using Python and it's techniques.
Work on Real-life Projects will help you to get a practical experience of real scenarios of IT Industry.
Start learning Python for Data Science from basics to advance levels here...
https://goo.gl/070wXw
Vulture - Find dead code
========================
Vulture finds unused code in Python programs. This is useful for
cleaning up and finding errors in large code bases. If you run Vulture
on both your library and test suite you can find untested code.
Due to Python's dynamic nature, static code analyzers like Vulture are
likely to miss some dead code. Also, code that is only called
implicitly may be reported as unused. Nonetheless, Vulture can be a
very helpful tool for higher code quality.
Download
========
https://github.com/jendrikseipp/vulturehttp://pypi.python.org/pypi/vulture
Features
========
* fast: uses static code analysis
* tested: tests itself and has complete test coverage
* complements pyflakes and has the same output syntax
* sorts unused classes and functions by size with ``--sort-by-size``
* supports Python 2.7 and Python >= 3.4
News
====
* Add ``--ignore-names`` flag for ignoring names matching the given glob
patterns (thanks @RJ722).
Cheers
Jendrik
The pytest team is proud to announce the 3.7.0 release!
pytest is a mature Python testing tool with more than a 2000 tests
against itself, passing on many different interpreters and platforms.
The highlight of this release is support for package-scoped fixtures (still
experimental). Please try it out and give us feedback!
Changelog:
http://doc.pytest.org/en/latest/changelog.html
For complete documentation, please visit:
http://docs.pytest.org
As usual, you can upgrade from pypi via:
pip install -U pytest
Thanks to all who contributed to this release, among them:
* Alan
* Alan Brammer
* Ammar Najjar
* Anthony Sottile
* Bruno Oliveira
* Jeffrey Rackauckas
* Kale Kundert
* Ronny Pfannschmidt
* Serhii Mozghovyi
* Tadek Teleżyński
* Wil Cooley
* abrammer
* avirlrma
* turturica
Happy testing,
The Pytest Development Team
On behalf of ECMWF I'm pleased to announce the first public release
of `cfgrib`, a Python interface to map GRIB files to the NetCDF Common
Data Model following the CF Conventions using ECMWF ecCodes for
decoding. Included in the package is a GRIB driver for xarray.
https://pypi.org/project/cfgrib/0.8.4
Please note that the development stage of this project is **Alpha**.
Features:
- provisional GRIB driver for xarray,
- support all modern versions of Python 3.7, 3.6, 3.5 and 2.7, plus
PyPy and PyPy3,
- read the data lazily and efficiently in terms of both memory usage
and disk access,
- map a GRIB 1 or 2 file to a set of N-dimensional variables following
the NetCDF Common Data Model,
- add CF Conventions attributes to known coordinate and data variables,
- no write support (yet).
The main repository is hosted on GitHub, testing, bug report and
contributions are highly welcomed and appreciated. Every little help
counts, so do not hesitate!
https://github.com/ecmwf/cfgrib
User support questions are best asked on StackOverflow:
https://stackoverflow.com/search?q=cfgrib
The project is free and open source software distributed under the
terms of the Apache License, Version 2.0, the development is led by
B-Open <http://bopen.eu> on behalf of ECMWF <https://ecmwf.int>.
Cheers,
Alessandro
On behalf of ECMWF I'm pleased to announce the first public release of
`cfgrib`, a Python interface to map GRIB files to the NetCDF Common Data
Model following the CF Conventions using ECMWF ecCodes for decoding.
Included in the package is a GRIB driver for xarray.
https://pypi.org/project/cfgrib/0.8.4
Please note that the development stage of this project is **Alpha**.
Features:
- provisional GRIB driver for xarray,
- support all modern versions of Python 3.7, 3.6, 3.5 and 2.7, plus PyPy
and PyPy3,
- read the data lazily and efficiently in terms of both memory usage and
disk access,
- map a GRIB 1 or 2 file to a set of N-dimensional variables following the
NetCDF Common Data Model,
- add CF Conventions attributes to known coordinate and data variables,
- no write support (yet).
The main repository is hosted on GitHub, testing, bug report and
contributions are highly welcomed and appreciated. Every little help
counts, so do not hesitate!
https://github.com/ecmwf/cfgrib
User support questions are best asked on StackOverflow:
https://stackoverflow.com/search?q=cfgrib
The project is free and open source software distributed under the terms of
the Apache License, Version 2.0, the development is led by B-Open <
http://bopen.eu> on behalf of ECMWF <https://ecmwf.int>.
Cheers,
Alessandro
Hi All,
On behalf of the NumPy team I'm pleased to announce the release of NumPy
1.15.0rc2.
This release has an unusual number of cleanups, many deprecations of old
functions,
and improvements to many existing functions. A total of 438 pull reguests
were merged
for this release, please look at the release notes
<https://github.com/numpy/numpy/releases/tag/v1.15.0>for details. Some
highlights are:
- NumPy has switched to pytest for testing.
- A new `numpy.printoptions` context manager.
- Many improvements to the histogram functions.
- Support for unicode field names in python 2.7.
- Improved support for PyPy.
- Fixes and improvements to `numpy.einsum`.
The Python versions supported by this release are 2.7, 3.4-3.7. The wheels
are linked with
OpenBLAS v0.3.0, which should fix some of the linalg problems reported for
NumPy 1.14.
Wheels for this release can be downloaded from PyPI
<https://pypi.org/project/numpy/1.15.0/>, source archives are available
from Github <https://github.com/numpy/numpy/releases/tag/v1.15.0>.
*Contributors*
A total of 133 people contributed to this release. People with a "+" by
their
names contributed a patch for the first time.
* Aaron Critchley +
* Aarthi +
* Aarthi Agurusa +
* Alex Thomas +
* Alexander Belopolsky
* Allan Haldane
* Anas Khan +
* Andras Deak
* Andrey Portnoy +
* Anna Chiara
* Aurelien Jarno +
* Baurzhan Muftakhidinov
* Berend Kapelle +
* Bernhard M. Wiedemann
* Bjoern Thiel +
* Bob Eldering
* Cenny Wenner +
* Charles Harris
* ChloeColeongco +
* Chris Billington +
* Christopher +
* Chun-Wei Yuan +
* Claudio Freire +
* Daniel Smith
* Darcy Meyer +
* David Abdurachmanov +
* David Freese
* Deepak Kumar Gouda +
* Dennis Weyland +
* Derrick Williams +
* Dmitriy Shalyga +
* Eric Cousineau +
* Eric Larson
* Eric Wieser
* Evgeni Burovski
* Frederick Lefebvre +
* Gaspar Karm +
* Geoffrey Irving
* Gerhard Hobler +
* Gerrit Holl
* Guo Ci +
* Hameer Abbasi +
* Han Shen
* Hiroyuki V. Yamazaki +
* Hong Xu
* Ihor Melnyk +
* Jaime Fernandez
* Jake VanderPlas +
* James Tocknell +
* Jarrod Millman
* Jeff VanOss +
* John Kirkham
* Jonas Rauber +
* Jonathan March +
* Joseph Fox-Rabinovitz
* Julian Taylor
* Junjie Bai +
* Juris Bogusevs +
* Jörg Döpfert
* Kenichi Maehashi +
* Kevin Sheppard
* Kimikazu Kato +
* Kirit Thadaka +
* Kritika Jalan +
* Kyle Sunden +
* Lakshay Garg +
* Lars G +
* Licht Takeuchi
* Louis Potok +
* Luke Zoltan Kelley
* MSeifert04 +
* Mads R. B. Kristensen +
* Malcolm Smith +
* Mark Harfouche +
* Marten H. van Kerkwijk +
* Marten van Kerkwijk
* Matheus Vieira Portela +
* Mathieu Lamarre
* Mathieu Sornay +
* Matthew Brett
* Matthew Rocklin +
* Matthias Bussonnier
* Matti Picus
* Michael Droettboom
* Miguel Sánchez de León Peque +
* Mike Toews +
* Milo +
* Nathaniel J. Smith
* Nelle Varoquaux
* Nicholas Nadeau, P.Eng., AVS +
* Nick Minkyu Lee +
* Nikita +
* Nikita Kartashov +
* Nils Becker +
* Oleg Zabluda
* Orestis Floros +
* Pat Gunn +
* Paul van Mulbregt +
* Pauli Virtanen
* Pierre Chanial +
* Ralf Gommers
* Raunak Shah +
* Robert Kern
* Russell Keith-Magee +
* Ryan Soklaski +
* Samuel Jackson +
* Sebastian Berg
* Siavash Eliasi +
* Simon Conseil
* Simon Gibbons
* Stefan Krah +
* Stefan van der Walt
* Stephan Hoyer
* Subhendu +
* Subhendu Ranjan Mishra +
* Tai-Lin Wu +
* Tobias Fischer +
* Toshiki Kataoka +
* Tyler Reddy +
* Unknown +
* Varun Nayyar
* Victor Rodriguez +
* Warren Weckesser
* William D. Irons +
* Zane Bradley +
* cclauss +
* fo40225 +
* lapack_lite code generator +
* lumbric +
* luzpaz +
* mamrehn +
* tynn +
* xoviat
Cheers,
Charles Harris