Python

Python PIP3

Python PIP https://pip.pypa.io/en/stable/cli/pip_list/ https://blog.stoege.net/posts/pip/ OpenBSD 7.1 # python3 --version Python 3.9.12 # python3 -m pip --version pip 22.0.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) List installed python3 -m pip list List Outated python3 -m pip list --outdated --format columns sha256: 6ada0942bc4d02ee477ab233571e893547049a379479b61910541e561d2f053a

Little Mail Validator in Python

wrote a little Mail Adresse Validator in Python. use it, modify it, like it … best practice for python is to use a virtual env like Poetry (or virtualenv) and add the “email-validator” module like this: poetry add email-validator Code few lines of code … #!/usr/bin/env python3 from email_validator import validate_email, EmailNotValidError ok=[] nok=[] emails = [ "my+address@mydomain.tld", "hans@dampf.ch", "gott@welt.net", "adsf@asdf.com", "asf.asdf", "franz!mueller@abc.com", "asdf@asdf.adf" ] print ("\nMy Little Mail Validator\n") for email in emails: try: # Validate.

Poetry

Intro Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Links https://python-poetry.org/ https://www.infoworld.com/article/3527850/how-to-manage-python-projects-with-poetry.html Install OpenBSD … and update path pip install --user poetry cat <<'EOF'>> ~/.profile # Poetry export PATH=$PATH:~/.local/bin EOF . ~/.profile ev install as root ? doas pip install --user poetry cat <<'EOF'>> ~/.profile # Poetry export PATH=$PATH:/root/.

Cheatsheet

Bash Convention and Libraries Assembler 80186 and higher HTTP Status Codes Python Cheatsheet - Olivier La Flamme Data Wrangling with pandas Cheat Sheet OWASP Key Management Cheat Sheet Python Cheatsheet SQL Stuff by @yosracodes Security Infographics Kubectl Cheat Sheet for Kubernetes Admins SED Oneliners Boll PaloAlto THC’s favourite Tips, Tricks & Hacks (Cheat Sheet) Bash scripting cheatsheet Serious Shell Programming Vim cheatsheet MySQL cheatsheet FortiOS 6.2 FortiAnalyzer PHPStorm KeyMap sha256: ad72a87fe96318464cfde45c8d92e0d517aae0f1730ac69cc6c39cf09785f9d4

Python Pip

Python PIP https://pip.pypa.io/en/stable/cli/pip_list/ how to PIP with OpenBSD … Already Installed ? doas pkg_info -Q py3-pip py3-pip-20.1.1p0 (installed) Install pip3 doas pkg_add py3-pip-- doas ln -sf /usr/local/bin/pip3.8 /usr/local/bin/pip Search doas pip search csvkit Install csvkit doas pip install wheel csvkit Upgrade pip doas pip install --upgrade pip Upgrade pip packages for i in $(pip list -o | awk 'NR > 2 {print $1}'); do doas pip install -U $i; done or doas pip install pip-review doas pip-review --interactive sha256: 39b0c97b5063483f3d42fd6ac5515f679180cb454d35cff5ee487a19f0fb5343