- Introduction
- Creational Patterns
- Factory Method
- Abstract Factory
- Builder
- Prototype
- Singleton
| """ | |
| ``` | |
| from . import timefunc, timing_manager | |
| ``` | |
| This module provides a comprehensive and thread-safe toolkit for performance monitoring | |
| in Python applications. It is designed to be both easy to use for quick debugging | |
| and powerful enough for detailed performance analysis. | |
| The module is built around two core components: |
| import sqlite3 | |
| # Connect to the test.db database | |
| conn = sqlite3.connect(":memory:") | |
| cursor = conn.cursor() | |
| # Create the news table | |
| cursor.execute( | |
| """ | |
| CREATE TABLE IF NOT EXISTS news ( |
| # Classic Flex License Manager (lmgrd) | |
| Gory details can be read in | |
| Book Name: License Administration Guide | |
| Part Number: FNP-111411-LAG00 | |
| Product Release Date: March 2017 | |
| ## Daemons | |
| Clearing away the obfuscation around the license manager is fairly simple. | |
| This license management has a vendor independent and vendor provided |
| import pandas as pd | |
| def anti_join(x, y, on): | |
| """Return rows in x which are not present in y""" | |
| ans = pd.merge(left=x, right=y, how='left', indicator=True, on=on) | |
| ans = ans.loc[ans._merge == 'left_only', :].drop(columns='_merge') | |
| return ans | |
| def anti_join_all_cols(x, y): |