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
12ᵗʰ Advanced Scientific Programming in Python
==============================================
a Summer School by the G-Node and the University of Camerino
https://python.g-node.org
Scientists spend more and more time writing, maintaining, and debugging
software. While techniques for doing this efficiently have evolved, only few
scientists have been trained to use them. As a result, instead of doing their
research, they spend far too much time writing deficient code and reinventing
the wheel. In this course we will present a selection of advanced programming
techniques and best practices which are standard in the industry, but especially
tailored to the needs of a programming scientist. Lectures are devised to be
interactive and to give the students enough time to acquire direct hands-on
experience with the materials. Students will work in pairs throughout the school
and will team up to practice the newly learned skills in a real programming
project — an entertaining computer game.
We use the Python programming language for the entire course. Python works as
a simple programming language for beginners, but more importantly, it also works
great in scientific simulations and data analysis. We show how clean language
design, ease of extensibility, and the great wealth of open source libraries for
scientific computing and data visualization are driving Python to become
a standard tool for the programming scientist.
This school is targeted at Master or PhD students and Post-docs from all areas
of science. Competence in Python or in another language such as Java, C/C++,
MATLAB, or R is absolutely required. Basic knowledge of Python and of a version
control system such as git, subversion, mercurial, or bazaar is assumed.
Participants without any prior experience with Python and/or git should work
through the proposed introductory material before the course.
We are striving hard to get a pool of students which is international and
gender-balanced.
Date & Location
===============
2–7 September, 2019. Camerino, Italy.
Application
===========
You can apply online: https://python.g-node.org/wiki/applications
Application deadline: 23:59 UTC, 26 May, 2019.
There will be no deadline extension, so be sure to apply on time. Be sure to
read the FAQ before applying: https://python.g-node.org/wiki/faq
Participation is for free, i.e. no fee is charged! Participants however should
take care of travel, living, and accommodation expenses by themselves.
Program
=======
• Version control with git and how to contribute to open source projects with GitHub
• Tidy data analysis and visualization
• Testing and debugging scientific code
• Advanced NumPy
• Organizing, documenting, and distributing scientific code
• Advanced scientific Python: context managers and generators
• Writing parallel applications in Python
• Profiling and speeding up scientific code with Cython and numba
• Programming in teams
Faculty
=======
• Caterina Buizza, Personal Robotics Lab, Imperial College London, UK
• Jenni Rinker, Department of Wind Energy, Technical University of Denmark, Roskilde, Denmark
• Juan Nunez-Iglesias, Bioimage Analysis Research Fellow, Monash University, Australia
• Nelle Varoquaux, Department of Statistics, UC Berkeley, CA, USA
• Pamela Hathway, Neural Reckoning, Imperial College London, UK
• Pietro Berkes, NAGRA Kudelski, Lausanne, Switzerland
• Rike-Benjamin Schuppner, Institute for Theoretical Biology, Humboldt-Universität zu Berlin, Germany
• Stéfan van der Walt, Berkeley Institute for Data Science, UC Berkeley, CA, USA
• Tiziano Zito, Department of Psychology, Humboldt-Universität zu Berlin, Germany
Organizers
==========
For the German Neuroinformatics Node of the INCF (G-Node), Germany:
• Tiziano Zito, Department of Psychology, Humboldt-Universität zu Berlin, Germany
• Caterina Buizza, Personal Robotics Lab, Imperial College London, UK
• Zbigniew Jędrzejewski-Szmek, Red Hat Inc., Warsaw, Poland
• Jakob Jordan, Department of Physiology, University of Bern, Switzerland
For the University of Camerino, Italy:
• Barbara Re, Computer Science Division, School of Science and Technology, University of Camerino Italy
Website: https://python.g-node.org
Contact: python-info(a)g-node.org
PyCA cryptography 2.6.1 has been released to PyPI. cryptography includes
both high level recipes and low level interfaces to common cryptographic
algorithms such as symmetric ciphers, asymmetric algorithms, message
digests, X509, key derivation functions, and much more. We support Python
2.7, Python 3.4+, and PyPy.
Changelog (https://cryptography.io/en/latest/changelog/#v2-6-1):
* Resolved an error in our build infrastructure that broke our Python3
wheels for macOS and Linux.
-Paul Kehrer (reaperhulk)
Hi All,
On behalf of the NumPy team I am pleased to announce the release of NumPy
1.16.2. This is a quick release fixing several problems encountered on
Windows. The Python versions supported are 2.7 and 3.5-3.7. The Windows
problems addressed are:
- DLL load problems for NumPy wheels on Windows,
- distutils command line parsing on Windows.
There is also a regression fix correcting signed zeros produced by divmod,
see the release notes for details. Downstream developers building this
release should use Cython >= 0.29.2 and, if using OpenBLAS, OpenBLAS >
v0.3.4.
If you are installing using pip, you may encounter a problem with older
installed versions of NumPy that pip did not delete becoming mixed with the
current version, resulting in an ``ImportError``. That problem is
particularly
common on Debian derived distributions due to a modified pip. The fix is
to make sure all previous NumPy versions installed by pip have been
removed. See #12736 <https://github.com/numpy/numpy/issues/12736> for
discussion of the issue.
Wheels for this release can be downloaded from PyPI
<https://pypi.org/project/numpy/1.16.2/>, source archives and release notes
are available from Github
<https://github.com/numpy/numpy/releases/tag/v1.16.2>.
*Contributors*
A total of 5 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
* Charles Harris
* Eric Wieser
* Matti Picus
* Tyler Reddy
* Tony LaTorre +
*Pull requests merged*
A total of 7 pull requests were merged for this release.
* #12909: TST: fix vmImage dispatch in Azure
* #12923: MAINT: remove complicated test of multiarray import failure mode
* #13020: BUG: fix signed zero behavior in npy_divmod
* #13026: MAINT: Add functions to parse shell-strings in the
platform-native...
* #13028: BUG: Fix regression in parsing of F90 and F77 environment
variables
* #13038: BUG: parse shell escaping in extra_compile_args and
extra_link_args
* #13041: BLD: Windows absolute path DLL loading
Cheers,
Charles Harris
I packaged another release. Go get it here:
https://www.python.org/downloads/release/python-380a2/
Python 3.8.0a2 is the second of four planned alpha releases of Python 3.8,
the next feature release of Python. During the alpha phase, Python 3.8
remains under heavy development: additional features will be added
and existing features may be modified or deleted. Please keep in mind
that this is a preview release and its use is not recommended for
production environments. The next preview release, 3.8.0a3, is planned
for 2019-03-25.
This time around the stable buildbots were a bit less green than they should have. This early in the cycle, I didn't postpone the release and I didn't use the revert hammer. But soon enough, I will. Let's make sure future changes keep the buildbots happy.
- Ł
Hello!
I wanted to announce here a "new" iOS app for coding Python: Pyto. It's available on the App Store and is open source.
Features
=====================
The app has a file browser with scripts, a code editor with syntax coloring and smart code completion and a console that supports input. It also has a REPL. Themes can be applied for the whole app.
Debugger
=====================
Scripts can be debugged with PDB and breakpoints can be set from the editor.
Apple APIs with Python
=====================
A module is pre-installed for accessing Objective-C class. An 'UIKit' module is written on top of it with all UIKit classes and an 'ui' module allows showing user interfaces created with Apple APIs.
C Extensions
=====================
iOS restrictions make impossible to load dynamic libraries outside the app bundle, so no module with C code can be installed, like NumPy, Pandas and Matplotlib. So, the main goal of this app is to provide latest versions of most popular libraries that have C code and cannot be installed by the user.
The app has NumPy 1.16.1, Pandas 0.24.1 and Matplotlib 0.24.1. Matplotlib supports displaying figures on the console.
Other pure Python modules
=====================
Other pure Python modules can be installed with a minimal version of pip.
Links
=====================
Source code: https://github.com/ColdGrub1384/Pyto
[https://avatars0.githubusercontent.com/u/19255527?s=400&v=4]<https://github.com/ColdGrub1384/Pyto>
ColdGrub1384/Pyto<https://github.com/ColdGrub1384/Pyto>
Python IDE for iOS and macOS with, NumPy, Matplotlib, Pandas and UIKit support - ColdGrub1384/Pyto
github.com
App Store: https://itunes.apple.com/us/app/pyto-python-ide/id1436650069?ls=1&mt=8
Home page: https://develobile.com/pyto/
[https://is3-ssl.mzstatic.com/image/thumb/Purple124/v4/9b/e8/9d/9be89dd6-f54…]<https://itunes.apple.com/us/app/pyto-python-ide/id1436650069?ls=1&mt=8>
Pyto - Python IDE on the App Store - itunes.apple.com<https://itunes.apple.com/us/app/pyto-python-ide/id1436650069?ls=1&mt=8>
Pyto is a Python 3.7 IDE for iPhone an iPad. You can run code directly on your device and offline. Features: - Python 3.7 with all default libraries like "sys"
itunes.apple.com
On behalf of the Nikola team, I am pleased to announce the immediate
availability of Nikola v8.0.2. This is a quality-of-life release
with a handful of bug fixes, two new translations and a few extra features.
What is Nikola?
===============
Nikola is a static site and blog generator, written in Python.
It can use Mako and Jinja2 templates, and input in many popular markup
formats, such as reStructuredText and Markdown — and can even turn
Jupyter Notebooks into blog posts! It also supports image galleries,
and is multilingual. Nikola is flexible, and page builds are extremely
fast, courtesy of doit (which is rebuilding only what has been changed).
Find out more at the website: https://getnikola.com/
Downloads
=========
Install using `pip install Nikola`. (Python 3-only since v8.0.0.)
Changes
=======
* Make ``ARCHIVE_PATH``, ``ARCHIVE_FILENAME`` translatable
(Issue #3234)
* Support configuring Isso via ``GLOBAL_CONTEXT['isso_config']``
(Issue #3225)
* Handle fragments in doc role (Issue #3212)
* Slugify references in doc role.
* Add Interlingua translation by Alberto Mardegan
* Add Afrikaans translation by Friedel Wolff
* Support for docutils.conf (Issue #3188)
Bugfixes
--------
* Avoid random rebuilds with sites whose locales are not fullly
supported, and random rebuilds on multilingual sites using Python
3.4/3.5 (Issue #3216)
* Apply modifications to ``default_metadata`` before copying it to
other languages
* Make Commento comments work (Issue #3198)
* Correctly handle separators in the relative path given to
"ignored_assets" key in theme meta files (Issue #3210)
* Fix error when ``nikola new_post`` receives directory name as
path (Issue #3207)
* Add slashes to paths with query strings in ``nikola serve``
only if there isn’t one before ``?``
* Read listings files as UTF-8
* Set one-file status basing on default language only (Issue #3191)
* Don’t warn if post status is set to ``published`` explicitly
(Issue #3181)
* Remove mention of Twitter cards requiring an opt-in.
This is not true anymore - anyone can use them.
* fancydates now workwith listdate items (eg. archives)
* bootstrap4 and bootblog4 themes no longer load moment.js when
fancydates are off. (Issue #3231)