Building TA-Lib with Github Actions

TA-Lib and Github Actions TA-Lib is a popular C-based technical analysis library, often used with a Python wrapper. GitHub Actions is a CI/CD platform to automate workflows. This blog uses it for automation. CI Steps for TA-Lib Add the following steps to your CI workflow: - name: Cache TA-Lib id: cache-talib uses: actions/cache@v2 with: path: ta-lib key: ${{ runner.os }}-talib - name: Build TA-Lib if: steps.cache-talib.outputs.cache-hit != 'true' run: | curl -L http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -o ta-lib-0.4.0-src.tar.gz tar -xzf ta-lib-0.4.0-src.tar.gz cd ta-lib ./configure --prefix=/usr make - name: Install TA-Lib run: | cd ta-lib sudo make install Summary Cache TA-Lib: Speeds up builds by avoiding redundant downloads. Build TA-Lib: Downloads and compiles the source if not cached. Install TA-Lib: Installs the compiled library. This setup reduces CI runtime by caching and reusing builds. ...

January 10, 2022 · Florent Clairambault

Some good reasons for learning python

President Obama thinks required programming language learning in high school is a great idea. So do I, and I think we should all start with python. Writing code with it is very fast. When software engineers tell you “I can do it in 10 minutes”, in C/C++ they mean 4h, in java they mean 2h and in python they mean it. You can really do anything. I’ve done some serial communication, bit level manipulation, network level event-based servers, multithreading, webservice providing and consuming, SQL and cassandra client faster than what I’ve been doing in any other language. It’s easy to learn. You can start your first program right now and be good at it in 2 weeks. It comes “batteries included”. You don’t have to install third-party libraries. Contrary to ruby, you don’t have to choose between the thousands of gems available, there’s almost always one official way to do things. Which leads to the next point: It’s simple to read someone else’s code. This is because it’s high level language and you quickly know all the librairies. It now has some IDEs. I know some people like to code in vi, but this is ugly and unproductive. Pydev is simple to install and supports a pretty good (or not so bad) auto-completion. This leads me to two opposing ideas (but you’ll understand where I stand): ...

February 21, 2013 · Florent Clairambault