Archive 2021

Managing Environments with Conda and pip

Published at April 25, 2021 ·  4 min read

Heya fellows, When dealing with dependencies the Python world offers several tools to manage these. It’s important to deal with Python as well as non-Python packages, to handle different Python versions and to ensure a good isolation. Tools like pipenv and poetry are pretty popular for these purposes but conda has proven to be the tool of choice within the scientific community over the years. 💪 Conda im combination with pip is what I like to use on a daily basis....


Turning a Website into an API

Published at March 31, 2021 ·  10 min read

Heya fellows, The amount of interesting data which can be found on websites is increasing from day to day. These data are scraped by search engines to improve search results, they're collected to create machine learning models or just processed and other services/apps are recreated from them. The latter can be achieved by scraping data and then exposing them as RESTful API to other developers so they can build their services/apps around it....


Publishing at Anaconda and Automating the Process - 9/9

Published at February 25, 2021 ·  3 min read

Heya fellows, This is part 9 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda When a setup.py file was already created, it’s pretty simple to go a step further and create an Anaconda package....


Releasing a Python App at Github/PyPI and Automate it - 8/9

Published at February 23, 2021 ·  5 min read

Heya fellows, This is part 8 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda As stated in previous posts our tiny HTTP client can now be downloaded from Github and installed via pip....


Documentation - 7/9

Published at February 19, 2021 ·  5 min read

Heya fellows, This is part 7 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda In this post I wanna talk about a few dimensions of how to document a project in the python world....


Testing and CI - 6/9

Published at February 16, 2021 ·  4 min read

Heya fellows, This is part 6 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda When projects grow a good test suite gives you confidence that new code you add don’t cause parts of the application to break....


Distribution via Setup File - 5/9

Published at February 11, 2021 ·  2 min read

Heya fellows, This is part 5 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda We have seen that it’s tedious and unclear how to distribute a project with a bash script....


Distribution via Installation Script - 4/9

Published at February 6, 2021 ·  3 min read

Heya fellows, This is part 4 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda We created a useful tool, but wouldn’t it be nice if we could make it accessible to others?...


Argparse Module - 3/9

Published at February 1, 2021 ·  3 min read

Heya fellows, This is part 3 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda One of the big benefits of using argparse is that it generates a usage help (a --help flag) automatically....


Sys Module - 2/9

Published at January 26, 2021 ·  4 min read

Heya fellows, This is part 2 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda The sys modules sys.argv is a list that gives us access to all command line arguments passed to the Python script....


The Evolution of a Script - 1/9

Published at January 21, 2021 ·  4 min read

Heya fellows, This is part 1 of the multi-part series “The Evolution of a Script”. The code of this post can be found on Github (see here). Contents A Simple Script Sys Module Argparse Module Distribution via Installation Script Distribution via Setup File Testing and Continuous Integration Documentation Publishing at PyPI Publishing at Anaconda When I started out my Journey of learning to code I went through dozens of tutorials, I rewrote many algorithms and played with several kinds of topics....