Package and deploy a Python module in PyPI with Poetry, tox and Travis

I’ve been working for the last couple of days in a small command line tool in Python, and I took the opportunity to check out a little bit Poetry, which seems to help in package and distribute Python modules. Enter pyproject.toml A very promising development in the Python ecosystem are the new pyproject.toml files, presented in PEP 518. This file aims to replace the old with a config file, to avoid executing arbitrary code, as well as clarify the usage. Poetry generates a new project, and includes the corresponding pyproject.toml. Most… Read More

Python Automation Cookbook

So, great news, I wrote a book and it’s available! It’s called Python Automation Cookbook, and it’s aimed to people that already know a bit of Python (not necessarily developers only), but would like to use it to automate common tasks like search files, creating different kind of documents, adding graphs, sending emails, text messages, etc. It’s written in the cookbook format, so it’s a collection of recipes that can be read independently, though there’s always references to show how to combine them to create more complex flows. The book is available… Read More