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
Hi All,
On behalf of the NumPy team I am pleased to announce the release of NumPy
1.17.0rc1. The 1.17 release contains a number of new features that should
substantially improve its performance and usefulness. The Python versions
supported are 3.5-3.7, note that Python 2.7 has been dropped. Python 3.8b1
should work with the released source packages, but there are no guarantees
about future releases. Highlights of this release are:
- A new extensible random module along with four selectable random
numbe5 generators and improved seeding designed for use in parallel
processes has been added. The currently available bit generators are
MT19937, PCG64, Philox, and SFC64.
- NumPy's FFT implementation was changed from fftpack to pocketfft,
resulting in faster, more accurate transforms and better handling of
datasets of prime length.
- New radix sort and timsort sorting methods. It is currently not
possible to choose which will be used, but they are hardwired to the
datatype and used when either ``stable`` or ``mergesort`` is passed as the
method.
- Overriding numpy functions is now possible by default
Downstream developers should use Cython >= 0.29.10 for Python 3.8 support
and OpenBLAS >= 3.7 (not currently out) to avoid problems on the Skylake
architecture. The NumPy wheels on PyPI are built from the OpenBLAS
development branch in order to avoid those problems. Wheels for this
release can be downloaded from PyPI
<https://pypi.org/project/numpy/1.17.0rc1/>, source archives and release
notes are available from Github
<https://github.com/numpy/numpy/releases/tag/v1.17.0rc1>.
*Contributors*
A total of 142 people contributed to this release. People with a "+" by
their
names contributed a patch for the first time.
- Aaron Voelker +
- Abdur Rehman +
- Abdur-Rahmaan Janhangeer +
- Abhinav Sagar +
- Adam J. Stewart +
- Adam Orr +
- Albert Thomas +
- Alex Watt +
- Alexander Blinne +
- Alexander Shadchin
- Allan Haldane
- Ander Ustarroz +
- Andras Deak
- Andreas Schwab
- Andrew Naguib +
- Andy Scholand +
- Ankit Shukla +
- Anthony Sottile
- Antoine Pitrou
- Antony Lee
- Arcesio Castaneda Medina +
- Assem +
- Bernardt Duvenhage +
- Bharat Raghunathan +
- Bharat123rox +
- Bran +
- Bruce Merry +
- Charles Harris
- Chirag Nighut +
- Christoph Gohlke
- Christopher Whelan +
- Chuanzhu Xu +
- Daniel Hrisca
- Daniel Lawrence +
- Debsankha Manik +
- Dennis Zollo +
- Dieter Werthmüller +
- Dominic Jack +
- EelcoPeacs +
- Eric Larson
- Eric Wieser
- Fabrice Fontaine +
- Gary Gurlaskie +
- Gregory Lee +
- Gregory R. Lee
- Hameer Abbasi
- Haoyu Sun +
- He Jia +
- Hunter Damron +
- Ian Sanders +
- Ilja +
- Isaac Virshup +
- Isaiah Norton +
- Jaime Fernandez
- Jakub Wilk
- Jan S. (Milania1) +
- Jarrod Millman
- Javier Dehesa +
- Jeremy Lay +
- Jim Turner +
- Jingbei Li +
- Joachim Hereth +
- John Belmonte +
- John Kirkham
- John Law +
- Jonas Jensen
- Joseph Fox-Rabinovitz
- Joseph Martinot-Lagarde
- Josh Wilson
- Juan Luis Cano Rodríguez
- Julian Taylor
- Jérémie du Boisberranger +
- Kai Striega +
- Katharine Hyatt +
- Kevin Sheppard
- Kexuan Sun
- Kiko Correoso +
- Kriti Singh +
- Lars Grueter +
- Maksim Shabunin +
- Manvi07 +
- Mark Harfouche
- Marten van Kerkwijk
- Martin Reinecke +
- Matthew Brett
- Matthias Bussonnier
- Matti Picus
- Michel Fruchart +
- Mike Lui +
- Mike Taves +
- Min ho Kim +
- Mircea Akos Bruma
- Nick Minkyu Lee
- Nick Papior
- Nick R. Papior +
- Nicola Soranzo +
- Nimish Telang +
- OBATA Akio +
- Oleksandr Pavlyk
- Ori Broda +
- Paul Ivanov
- Pauli Virtanen
- Peter Andreas Entschev +
- Peter Bell +
- Pierre de Buyl
- Piyush Jaipuriayar +
- Prithvi MK +
- Raghuveer Devulapalli +
- Ralf Gommers
- Richard Harris +
- Rishabh Chakrabarti +
- Riya Sharma +
- Robert Kern
- Roman Yurchak
- Ryan Levy +
- Sebastian Berg
- Sergei Lebedev +
- Shekhar Prasad Rajak +
- Stefan van der Walt
- Stephan Hoyer
- SuryaChand P +
- Søren Rasmussen +
- Thibault Hallouin +
- Thomas A Caswell
- Tobias Uelwer +
- Tony LaTorre +
- Toshiki Kataoka
- Tyler Moncur +
- Tyler Reddy
- Valentin Haenel
- Vrinda Narayan +
- Warren Weckesser
- Weitang Li
- Wojtek Ruszczewski
- Yu Feng
- Yu Kobayashi +
- Yury Kirienko +
- @aashuli +
- @euronion +
- @luzpaz
- @parul +
- @spacescientist +
Cheers,
Charles Harris
We are very pleased to have MongoDB as Keystone Sponsor for EuroPython
2019. You can visit them at the most central booth in our exhibit area
on the second floor in the Congress Center Basel (CCB), and take the
opportunity to chat with their staff and learn more about the MongoDB
eco-system.
Please find below a hosted blog post from MongoDB.
Enjoy,
–
EuroPython 2019 Team
https://ep2019.europython.eu/https://www.europython-society.org/
MongoDB ❤ Python
----------------
MongoDB is the leading modern, general-purpose database platform,
designed to unleash the power of software and data for developers and
the applications they build. We have architected our database to cater
to the needs of modern-day applications from the ground-up with
built-in support for high availability through sophisticated
replication with self-healing recovery and horizontal scalability
through native sharding. MongoDB Atlas is our fully-automated
database-as-a-service offering, engineered and run by the same team
that builds the database. At MongoDB, it is our mission to make data
ridiculously easy to work with and we love, love, LOVE Python because
it helps us do exactly that.
To bring the power of MongoDB to the Python ecosystem, we’ve developed
PyMongo - the Python driver for MongoDB. With over 3 million downloads
per month, PyMongo is one of our most popular drivers. Our Driver team
also maintains Motor - an asynchronous Python driver for MongoDB and
PyMODM - our object-document mapper. While Python is an important and
popular tool for our users, it is also an integral part of developer
workflows across our engineering teams. Our Documentation team, for
instance, maintains the Giza library which is used to render the
entire official MongoDB documentation. Our Education team builds
MongoDB University with Django and uses PyMODM and MongoDB Atlas to
store application data. The University site has over 1 million
registered users and over 100,000 active users per month–all powered
by MongoDB. Python is also an integral part of our CI/CD process used
to test our core database and all drivers.
Join us at our workshop where we will teach you how to harness the
power of MongoDB Atlas to build a highly-available CRUD application
using Flask and PyMongo. You will learn more about MongoDB’s document
data model, how we ensure high-availability and best practices for
building applications using MongoDB. We will also showcase how to
build the same application in MongoDB Stitch - our serverless
platform. Bring your laptops!
MongoDB is proud to support the Python community. In the past, we have
sponsored conferences such as PyCon and PyGotham, and also hosted
meetups such as PyLadies. Drop by our booth (#10) to say ‘hi’ to our
awesome team and to learn more about Python at MongoDB! You can also
join the conversation with other MongoDB and Python community members
in our Community Slack Workspace. Register at
http://launchpass.com/mongo-d or login at http://mongo-db.slack.com.
We have had a whole set of updates in the last two days. In order not
to spam you too much with all the blog post texts, we're sending out a
summary.
EuroPython 2019 Keynotes
------------------------
We are proud to announce our keynote lineup for EuroPython 2019:
- AI in Contemporary Art by Luba Elliott
- Are women underrepresented in the High Performance
Computing (HPC) community? by Athina Frantzana
- Getting Your Data Joie De Vivre Back! by Lynn Cherny
- Python Performance: Past, Present and Future by Victor Stinner
- Why You Should Pursue Public Speaking and How to
Get There by Yenny Cheung
Full text:
https://blog.europython.eu/post/185904088457/europython-2019-keynotes
EuroPython 2019: Call for On-site Volunteers
--------------------------------------------
Ever wanted to help out during Europython ? Do you want to *really*
take part in EuroPython, meet new people and help them at the same
time ?
We have just the right thing for you: apply as EuroPython Volunteer
and be part of the great team that is making EuroPython 2019 a reality
this year.
Full text and how to sign up:
https://blog.europython.eu/post/185904252962/europython-2019-call-for-on-si…
EuroPython 2019: Social event tickets available
-----------------------------------------------
After the keynotes and talks on Thursday, July 11th, we’ve organized a
social event at the workshop venue, the FHNW Muttenz. Starting at
19:00 CEST, you can join us for an evening party with finger food,
drinks and music.
Full text:
https://blog.europython.eu/post/185929674552/europython-2019-social-event-t…
EuroPython 2019: SIM cards for attendees
----------------------------------------
Switzerland is often not included in European cell provider’s roaming
packages and also not covered by the EU roaming regulation, so you can
potentially incur significant charges when going online with your
mobile or notebook.
In order to make things easier for you, we have purchased 300 SIM
cards from a local Swiss cell provider, which we will make available
in our ticket shop. After purchase, you can then pick up the cards at
the registration desk (please bring your receipt).
Full text and how to buy:
https://blog.europython.eu/post/185929675562/europython-2019-sim-cards-for-…
Dates and Venues
----------------
EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (CCB) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).
The schedule is available at:
https://ep2019.europython.eu/events/schedule/
Tickets can be purchased on our registration page:
https://ep2019.europython.eu/registration/buy-tickets/
For more details, please have a look at our website and the FAQ:
https://ep2019.europython.eu/faq
Help spread the word
--------------------
Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !
Link to the blog posts:
https://blog.europython.eu/
Tweets:
https://twitter.com/europython/
Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/https://www.europython-society.org/
pytest 4.6.4 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:
* Anthony Sottile
* Bruno Oliveira
* Daniel Hahler
* Thomas Grainger
* Zac Hatfield-Dodds
Happy testing,
The pytest Development Team
The pytest team is proud to announce the 5.0.0 release!
pytest is a mature Python testing tool with more than a 2000 tests
against itself, passing on many different interpreters and platforms.
This release contains a number of bugs fixes and improvements, so
users are encouraged
to take a look at the CHANGELOG:
https://docs.pytest.org/en/latest/changelog.html
**As a special note**: The 5.X series is the first series to drop
support for Python 2 and Python 3.4. For more details, see our Python
2.7 and 3.4 support plan:
https://docs.pytest.org/en/latest/py27-py34-deprecation.html
For complete documentation, please visit:
https://docs.pytest.org/en/latest/
As usual, you can upgrade from pypi via:
pip install -U pytest
Thanks to all who contributed to this release, among them:
* Anthony Sottile
* Bruno Oliveira
* Daniel Hahler
* Dirk Thomas
* Evan Kepner
* Florian Bruhin
* Hugo
* Kevin J. Foley
* Pulkit Goyal
* Ralph Giles
* Ronny Pfannschmidt
* Thomas Grainger
* Thomas Hisch
* Tim Gates
* Victor Maryama
* Yuri Apollov
* Zac Hatfield-Dodds
* curiousjazz77
* patriksevallius
Happy testing,
The Pytest Development Team
If you're new to Python, you should come to our friendly, welcoming
and helpful Beginners' Day Workshop. We cater to new Pythonistas of
all levels: from absolute beginners through to experienced programmers
encountering Python for the first time.
* https://ep2019.europython.eu/events/beginners-day/ *
What is Beginners' Day ?
------------------------
Beginners' day welcomes and supports folks who are new to Python
programming. It takes place on Tuesday 9th July, from 9:30 - 16:00 at
the workshop venue, FHNW Campus Muttenz. Just in time to get you ready
for all the talks which follow on Wednesday, Thursday and Friday !
It's also a great place to make friends with fellow attendees and
figure out how to get the most out of EuroPython.
Bring your laptop, because this will be a hands-on session!
The day will start with workshops to give you the chance to try out
Python in lots of different situations: making a game, creating a
website, programming embedded devices or telling stories with data (in
a Jupyter notebook). Later in the day you'll have an opportunity to
further explore those aspects of Python which appeal to you with the
support of a team of experienced and helpful mentors. We'll end the
day with a question and answer session about Python, EuroPython and
the wider Python ecosystem.
The emphasis will be in creating a fun, supportive and useful path
into the Python programming language and its community.
Sign up for Beginners' Day
--------------------------
You will need a conference pass to attend, but otherwise, it's free,
so if you're thinking of coming to the conference, but you're new to
Python or programming, this could be the session for you:
https://ep2019.europython.eu/registration/buy-tickets/
The session will be presented in English (although our mentors will
typically speak a few other languages as well).
If you'd like to come, please do register in advance for this session,
so that we know how to plan to make it the best yet. We need to know
the numbers for planing the workshop.
Sign up for Beginners' Day here:
https://docs.google.com/forms/d/e/1FAIpQLScBSJ8y--ROBI7HDQ01H1Cn9RI9amC9mRo…
Call for Mentors
----------------
The workshop is being organised by experienced Python programmer and
educator, Nicholas H.Tollervey.
Already know Python? Do you value working in an open, inclusive and
collaborative way? Want to develop your mentorship skills? Fantastic!
We're looking for folks with the technical skills, patience, humour
and empathy to work with beginners who may come from a wide variety of
backgrounds and levels of experience. It's rewarding, fun and a great
way to give back to the community.
We'd especially love to hear from you if you can add an extra language
to help non-English speakers feel comfortable asking questions, or if
you've never mentored before and want to try to share your knowledge
for the first time. This is a supportive environment for both beginner
programmers AND beginner mentors. :-)
Please sign up as a mentor on our mentor registration form:
https://docs.google.com/forms/d/e/1FAIpQLSdkphUVi_vplS7yvxI432R03BJPCapv-K2…
Dates and Venues
----------------
EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (CCB) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).
Tickets can be purchased on our registration page:
https://ep2019.europython.eu/registration/buy-tickets/
For more details, please have a look at our website and the FAQ:
https://ep2019.europython.eu/faq
Help spread the word
--------------------
Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !
Link to the blog post:
https://blog.europython.eu/post/185723885512/europython-2019-beginners-day-…
Tweet:
https://twitter.com/europython/status/1141675177400590336
Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/https://www.europython-society.org/
As you may know, the EuroPython Society (EPS) has extended it's
mission to not only run the EuroPython conference, but also provide
help for the Python community in Europe in general.
* https://www.europython-society.org/ *
As part of this, we would like to get to know, and help create closer
ties between organizers of other European Python events.
Organizers' Lunch
-----------------
We would like to invite representatives of all European Python
conference to EuroPython 2019 to join us for an organizers'
lunch. We're planing the lunch for Thursday or Friday. Details will be
announced closer to the event.
Our aim is to get to know each other, exchange experience in
organizing events and to find out how we, as EPS, can most effectively
help other conferences going forward.
Free Tickets
------------
To support and facilitate this, we are giving out one free conference
ticket per conference team, so that each team can send a
representative to the organizers' lunch.
If your team wants to send someone to join, please write to
board(a)europython.eu, mentioning the conference you're organizing and
some background on your team.
Dates and Venues
----------------
EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (CCB) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).
Tickets can be purchased on our registration page:
https://ep2019.europython.eu/registration/buy-tickets/
For more details, please have a look at our website and the FAQ:
https://ep2019.europython.eu/faq
Help spread the word
--------------------
Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !
Link to the blog post:
https://blog.europython.eu/post/185683241297/europython-2019-inviting-europ…
Tweet:
https://twitter.com/europython/status/1141044706979274752
Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/https://www.europython-society.org/
The EuroPython Society (EPS) does not only run the EuroPython
conference, but also aims to provide help for the Python community in
Europe in general.
* https://www.europython-society.org/ *
Let's all meet at EuroPython
----------------------------
In addition to the Python Organizers Lunch (see previous post), which
focuses on conference organizers, we are also establishing a program
to support attendees of Python user groups and conferences in Europe.
We'd like to invite all of you to EuroPython 2019 this year. Of
course, we cannot give out free tickets to everyone, but we can at
least recognize your participation in the Python community by giving
out discounts for the conference.
* https://ep2019.europython.eu/ *
Discounts for EuroPython Tickets
--------------------------------
If you are running a Python event (conference or user group) in
Europe, please reach out to board(a)europython.eu to request a coupon
code for your group, which you can then pass on to your group members
or attendees.
If you are not running a user group or conference, but a regular
attendee of one, please contact your organizers to have them submit a
request. We can only distribute codes at the user group and conference
organizer level.
The coupon codes are valid for conference tickets bought starting
today and will give you a 10% discount on the ticket price (both
regular and late bird prices). The codes are setup for user group
sizes of between 30-50 members, but we are also extending this to
organizers and attendees of larger conferences. If you need a code
valid for larger groups, please mention this in your email.
Dates and Venues
----------------
EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (CCB) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).
Tickets can be purchased on our registration page:
https://ep2019.europython.eu/registration/buy-tickets/
For more details, please have a look at our website and the FAQ:
https://ep2019.europython.eu/faq
Help spread the word
--------------------
Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !
Link to the blog post:
https://blog.europython.eu/post/185683252247/europython-2019-community-disc…
Tweet:
https://twitter.com/europython/status/1141044869470871553
Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/https://www.europython-society.org/