Check out lolcommits and their project lolcommits. 📷 git -based selfies for software developers
Publishing rhythm
I’m really excited about mask, an amazing project by jacobdeichert. It’s worth exploring! 🎭 A CLI task runner defined by a simple markdown file
Check out pyjanitor-devs and their project pandas_flavor. The easy way to write your own flavor of Pandas
I like tj’s project go-termd. Package termd provides terminal markdown rendering, with code block syntax highlighting support.
Building Cli apps in Python
Packages # Click # Inputs # Click primarily takes two forms of inputs Options and arguments. I think of options as keyword argument and arguments as regular positional arguments. Option # typically aliased with a shorthand (’-v’, ‘–verbose’) **From the Docs To get the Python argument name, the chosen name is converted to lower case, up to two dashes are removed as the prefix, and other dashes are converted to underscores. Argument # positional required no help text supplied by click Yaspin # Click Help Colors # # Colorama # Colorama Example Click DidYouMean #
I recently discovered git-history by pomber, and it’s truly impressive. Quickly browse the history of a file from any git repository
Check out csurfer and their project pypette. Ridiculously simple flow controller for building complex pipelines
Kedro
See all of my kedro related posts in [[ tag/kedro]]. #kedrotips # I am tweeting out most of these snippets as I add them, you can find them all here #kedrotips. 🗣 Heads up # Below are some quick snippets/notes for when using kedro to build data pipelines. So far I am just compiling snippets. Eventually I will create several posts on kedro. These are mostly things that I use In my everyday with kedro. Some are a bit more essoteric. Some are helpful when writing production code, some are useful more usefule for exploration. 📚 Catalog # CSVLocalDataSet # python yaml CSVHTTPDataSet # HDFLocalDataSet # HDFS3LocalDataSet # JSONLocalDataSet # ParquetLocalDataSet # PickleS3DataSet SQLTableDataSet SQLQueryDataSet TextLocalDataSet ExcelLocalDataSet ⏳ Loading Data # Simple Loading # list all datasets # Saving Data # 🔍 Finding data # simple keyword search see on #kedrotips multi keyword serch see on #kedrotips 🐒 monkey patch it _see on #kedrotips 🤙 YOLO # You Only Load Once simple more refined 🍷 r…
Check out requests by psf. It’s a well-crafted project with great potential. A simple, yet elegant, HTTP library.
Check out vscode-git-semantic-commit by nitayneeman. It’s a well-crafted project with great potential. 💬 A Visual Studio Code extension which enables to commit simply by the semantic message conventions
awesome-streamlit by MarcSkovMadsen is a game-changer in its space. Excited to see how it evolves. The purpose of this project is to share knowledge on how awesome Streamlit is and can be
I’m impressed by js13k-2019 from bencoder. xx142-b2.exe. An entry for js13kgames 2019
Just starred death-to-ie11 by gabLaroche. It’s an exciting project with a lot to offer. Countdown for IE11 end of support
📝 Packages to Investigate Notes
jmespath Tabnine Bulwark # |-|-| |github: | https://github.com/zaxr/bulwark | I definitely want to try this out with kedro. Bulwark is a package for convenient property-based testing of pandas dataframes, supported for Python 3.5+. Example #
I came across awesome-data-engineering from igorbarinov, and it’s packed with great features and ideas. A curated list of data engineering tools for software developers
I’m really excited about vscode-python, an amazing project by microsoft. It’s worth exploring! Python extension for Visual Studio Code
Debugging Python
Using pdb #
Just Use Pathlib
Pathlib is an amazing cross-platform path tool. Import # Create path object # Current Directory Users Home Directory module directory Others Let’s create a path relative to our current module. Check if files exist # Make Directories # rename files # List files # Glob Files # recursively Write #
Custom Python Exceptions
Custom Exceptions #
Filtering Pandas
query # Good for method chaining, i.e. adding more methods or filters without assigning a new variable. masking # general purpose, this is probably the most common method you see in training/examples isin # capable of including multiple strings to include contains # Good For partial matches MASKS # anything that we put inside of square brackets can be set as a variable then passed in. Operators # & - and ~ - not | - or AVAILABLE and NAME # AVAILABLE or NAME # AVAILABLE and not NAME #