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
Wing 7.2.1 has been released. This update fixes debug process group
termination, avoids failures seen when pasting some Python code,
prevents crashing in vi browse mode when the first line of the file is
blank, and fixes some other usability issues. For details see the
change log: https://wingware.com/pub/wingpro/7.2.1.0/CHANGELOG.txt
== Auto-Reformatting with Black and YAPF (Wing Pro) ==
Wing 7.2 adds support for Black and YAPF for code reformatting, in
addition to the previously available built-in autopep8 reformatting. To
use Black or YAPF, they must first be installed into your Python with
pip, conda, or other package manager. Reformatting options are available
from the Source > Reformatting menu group, and automatic reformatting
may be configured in the Editor > Auto-reformatting preferences group.
Details: https://wingware.com/doc/edit/auto-reformatting
== Improved Support for Virtualenv ==
Wing 7.2 improves support for virtualenv by allowing the command that
activates the environment to be entered in the Python Executable in
Project Properties, Launch Configurations, and when creating new
projects. The New Project dialog now also includes the option to create
a new virtualenv along with the new project, optionally specifying
packages to install. Details: https://wingware.com/doc/howtos/virtualenv
== Support for Anaconda Environments ==
Similarly, Wing 7.2 adds support for Anaconda environments, so the conda
activate command can be entered when configuring the Python Executable
and the New Project dialog supports using an existing Anaconda
environment or creating a new one along with the project. Details:
https://wingware.com/doc/howtos/anaconda
== And More ==
Wing 7.2 also makes it easier to debug modules with python -m,
simplifies manual configuration of remote debugging, allows using a
command line for the configured Python Executable, and fixes a number of
usability issues.
For a complete list of new features in Wing 7, see What's New in Wing 7:
https://wingware.com/wingide/whatsnew
== Downloads ==
Wing Pro: https://wingware.com/downloads/wing-pro/7.2/binaries
Wing Personal: https://wingware.com/downloads/wing-personal/7.2/binaries
Wing 101: https://wingware.com/downloads/wing-101/7.2/binaries
Compare products: https://wingware.com/downloads
See https://wingware.com/doc/install/upgrading for details on upgrading
from Wing 6 and earlier, and https://wingware.com/doc/install/migrating
for a list of compatibility notes.
pytest 5.3.5 has just been released to PyPI.
This is a bug-fix release, being a drop-in replacement. To upgrade::
pip install --upgrade pytest
The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.
Thanks to all who contributed to this release, among them:
* Daniel Hahler
* Ran Benita
Happy testing,
The pytest Development Team
Hello all,
Apologies for crossposting. I hope this is appropriate an useful for
members of this group.
=====
SciPy 2020, the 19th annual Scientific Computing with Python conference,
will be held July 6-12, 2020 in Austin, Texas. The annual SciPy Conference
brings together over 900 participants from industry, academia, and
government to showcase their latest projects, learn from skilled users and
developers, and collaborate on code development. The call for SciPy 2020
talks, posters, and tutorials is now open through February 11, 2020.
Talks and Posters (July 8-10, 2020)
In addition to the general track, this year will have the following
specialized tracks, mini symposia, and sessions:
Tracks
High Performance Python
Machine Learning and Data Science
Mini Symposia
Astronomy and Astrophysics
Biology and Bioinformatics
Earth, Ocean, Geo and Atmospheric Science
Materials Science
Special Sessions
Maintainers Track
SciPy Tools Plenary Session
For additional details and instructions, please see the conference website.
<https://www.scipy2020.scipy.org/>
Tutorials (July 6-7, 2020)
Tutorials should be focused on covering a well-defined topic in a hands-on
manner. We are looking for awesome techniques or packages, helping new or
advanced Python programmers develop better or faster scientific
applications. We encourage submissions to be designed to allow at least 50%
of the time for hands-on exercises even if this means the subject matter
needs to be limited. Tutorials will be 4 hours in duration. In your
tutorial application, you can indicate what prerequisite skills and
knowledge will be needed for your tutorial, and the approximate expected
level of knowledge of your students (i.e., beginner, intermediate,
advanced). Instructors of accepted tutorials will receive a stipend.
For examples of content and format, you can refer to tutorials from past
SciPy tutorial sessions (SciPy 2018
<https://na-admin.eventscloud.com/emarketing/go.php?i=735095&e=amlsbGNAZW50a…>,
SciPy2019
<https://na-admin.eventscloud.com/emarketing/go.php?i=735095&e=amlsbGNAZW50a…>
) and some accepted submissions
<https://na-admin.eventscloud.com/emarketing/go.php?i=735095&e=amlsbGNAZW50a…>.
For additional details and instructions see the conference website
<https://na-admin.eventscloud.com/emarketing/go.php?i=735095&e=amlsbGNAZW50a…>
.
Submission page: https://easychair.org/conferences/?conf=scipy2020
Submission Deadline: February 11, 2020
-
Melissa Weber Mendonça
Diversity Committee Co-Chair
--
Melissa Weber Mendonça
--
"Knowledge is knowing a tomato is a fruit; wisdom is knowing you don't put
tomato in fruit salad."
I’d like to announce the release of PyData/Sparse 0.9.1. PyData/Sparse is available on conda-forge and PyPI.
PyData/Sparse is a package that provides sparse arrays conforming to the NumPy API, along with a subset of NumPy operations on sparse arrays.
The changelog from the last release is available at: https://sparse.pydata.org/en/0.9.1/changelog.html
Hi everyone,
I'm pleased to announce the release of berserk v0.7.0!
What's New?
-----------
It's been a while since the last slew of commits and _lots_ has happened since v0.3.2:
**Features**
* Add ``ApiError`` for all other request errors
* Add ``ResponseError`` for 4xx and 5xx responses with status code, reason, and cause
* Add a utility for easily converting API objects into update params
* Add logging to the ``berserk.session`` module
* Add new ``Teams`` client: join, get members, kick member, and leave
* Add simuls
* Add studies export and export chapter
* Add support for the broadcast endpoints
* Add tests for all utils
* Add tournament results, games export, and list by creator
* Add user followers, users following, rating history, and puzzle activity
**Deprecations**
* Deprecated ``Users.get_by_team`` - use ``Teams.get_members`` instead
**Bugfixes**
* Fix bug in ``Broadcasts.push_pgn_update``
* Fix exception message when no cause
* Fix multiple bugs with the tournament create endpoint
* Fix py36 issue preventing successful build
* Fix test case broken by 0.4.0 release
* Fix multiple bugs in ``Tournaments.export_games``
**Misc**
* Update development status classifier to 4 - Beta
* Update documentation and tweak the theme
* Update the travis build to include py37
* Update the Makefile
What is berserk?
----------------
berserk is the Python client for the Lichess API. It supports JSON and PGN,
provides pluggable session auth, and implements most if not all of the API.
License: GNU General Public License v3
* Read the **docs**: https://berserk.readthedocs.io/
* Install from **PyPI**: https://pypi.org/project/berserk/
* Contribute **source**: https://github.com/rhgrant10/berserk
Example
-------
.. code-block:: python
>>> import berserk
>>> session = berserk.TokenSession('my-api-token')
>>> client = berserk.Client(session)
>>> my = client.account.get()
>>> games = list(client.games.export_by_player(my['username'], as_pgn=True))
>>> len(games)
18
Enjoy!
-- Rob
MicceriRD 0.2 is a Python module of the 8 real distributions identified by
Ted
Micceri in his 1989 article "The Unicorn, The Normal Curve, and Other
Improbable Creatures", which has been cited 1608 times as of now.
This module can be used for invoking these distributions during a Monte
Carlo
simulation where one wants to test the robustness of a statistical
procedure
given assumption violations, such as normality.
A similar module has previously been published in Fortran 77 (by R.C.
Blair)
and Fortran 90 (by S. Sawilowsky, R.C. Blair, & T. Micceri, 1990) as
REALPOPS.lib.
The license is free and open-source under the python packaging authority.
Michael Lance
michael.lance(a)gmail.com
<P><A HREF="https://pypi.org/project/MicceriRD">MicceriRD 0.2</A> - Ted
Micceri's (1989) 8 real distributions. (25-Jan-20)
Go get it here: https://www.python.org/downloads/release/python-390a3/ <https://www.python.org/downloads/release/python-390a3/>
This is an early developer preview of Python 3.9
Python 3.9 is still in development. This releasee, 3.9.0a3 is the third of six planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process. During the alpha phase, features may be added up until the start of the beta phase (2020-05-18) and, if necessary, may be modified or deleted up until the release candidate phase (2020-08-10). Please keep in mind that this is a preview release and its use is not recommended for production environments.
Major new features of the 3.9 series, compared to 3.8
Many new features for Python 3.9 are still being planned and written. Among the new major new features and changes so far:
PEP 602 <https://www.python.org/dev/peps/pep-0602/>, Python adopts a stable annual release cadence
BPO 38379 <https://bugs.python.org/issue38379>, garbage collection does not block on resurrected objects;
BPO 38692 <https://bugs.python.org/issue38692>, os.pidfd_open added that allows process management without races and signals;
A number of standard library modules (audioop, ast, grp, _hashlib, pwd, _posixsubprocess, random, select, struct, termios, zlib) are now using the stable ABI defined by PEP 384 <https://www.python.org/dev/peps/pep-0384/>.
(Hey, fellow core developer, if a feature you find important is missing from this list, let Łukasz know <mailto:lukasz@python.org>.)
The next pre-release of Python 3.9 will be 3.9.0a4, currently scheduled for 2020-02-17.
- Ł