Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antazo/automation-toolbox
Placeholder for Python, Bash and PowerShell material, and other CLI snippets that I want to keep track of, for future reference and educational purposes.
https://github.com/antazo/automation-toolbox
Last synced: 29 days ago
JSON representation
Placeholder for Python, Bash and PowerShell material, and other CLI snippets that I want to keep track of, for future reference and educational purposes.
- Host: GitHub
- URL: https://github.com/antazo/automation-toolbox
- Owner: antazo
- Created: 2024-07-15T18:28:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T18:09:28.000Z (4 months ago)
- Last Synced: 2024-09-09T22:09:04.919Z (4 months ago)
- Language: Python
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automation Toolbox
### Python · Bash · PowerShell · AnsiblePlaceholder for Python, Bash and PowerShell material, and other CLI snippets that I want to keep track of, for future reference and educational purposes.
Some of the resources were used for:
* Google IT Automation with Python Professional Certificate.
* Network Automation Professional Certificate by Arista Networks.## Pythonic modules cheat sheet:
Multiprocessing (CPU-bound tasks):```
from multiprocessing import Pool
```Thread and process pool executors:
```
from concurrent import futures
```Asynchronous I/O:
```
import asyncioasync def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')asyncio.run(main())
```Guppy:
```
from guppy import hpy
h = hpy()
print h.heap()
```Beautiful Soup:
```
from bs4 import BeautifulSoup
```MSTICPy (>v3.8, if working on local, create a virtual environment first):
```
import msticpy as mp
```NumPy ("pip3 install matplotlib" on virtual environment):
```
import numpy as np
```PyTorch (>v3.8, if CUDA support is needed with NVIDIA GPUs, check the Tensors documentation):
```
import torch
torch.cuda.is_available()
```Pandas (>v3.9, use Anaconda to install the PyData stack. This includes Matplotlib, NumPy, SciPy, etc):
* https://pandas.pydata.org/Pandas_Cheat_Sheet.pdfOthers:
```
from memory_profiler import profile # Memory profiler
@profile # Don't forget the decoratorfrom tqdm import tqdm # "Te quiero demasiado" progression bars
import zimply # RIM reader, for Wikipedia
import zimply.zimply```