OXL Utils-Collecion
Project description
Utils Collection
Install
pip install oxl-utils
Data States
from oxl_utils.state import is_set
from oxl_utils.state import is_null
Network interaction
# dnspython wrapper
from oxl_utils.net import resolve_dns
# get first IP
from oxl_utils.net import resolve_first_ip
# check if a remote port is reachable
from oxl_utils.net import is_port_open
Validators
# validate email format
from oxl_utils.valid.email import valid_email
from oxl_utils.valid.email import has_mailserver
# ips and networks
from oxl_utils.valid.net import valid_ip
from oxl_utils.valid.net import valid_ip4
from oxl_utils.valid.net import valid_ip6
from oxl_utils.valid.net import valid_net4
from oxl_utils.valid.net import valid_net6
from oxl_utils.valid.net import valid_public_ip
from oxl_utils.valid.net import valid_asn
from oxl_utils.valid.net import valid_port
from oxl_utils.valid.net import get_ipv
# domains
from oxl_utils.valid.dns import valid_domain
# uuid
from oxl_utils.valid.uuid import valid_uuid4
Crypto
# AES CBC
## set secret
from os import environ
environ['CRYPTO_SECRET'] = '<YOUR-SECRET>'
from oxl_utils.crypto.aes_cbc import encrypt
from oxl_utils.crypto.aes_cbc import decrypt
from oxl_utils.crypto.aes_cbc import encrypt_bytes
from oxl_utils.crypto.aes_cbc import decrypt_bytes
Processing
# subprocess wrapper
from oxl_utils.ps import process
## for read-only commands which output should be cached
from oxl_utils.ps import process_cache
# thread handling
from oxl_utils.ps import wait_for_threads
from oxl_utils.ps import process_list_in_threads
Django
# fix datetime timezone
from oxl_utils.dj.dt import datetime_from_db
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oxl_utils-0.3.tar.gz
(45.2 kB
view details)
Built Distribution
oxl_utils-0.3-py3-none-any.whl
(37.6 kB
view details)
File details
Details for the file oxl_utils-0.3.tar.gz
.
File metadata
- Download URL: oxl_utils-0.3.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14935986288bb506d1fba314d5bb08abf01dac06edf83445c1d17d3d520b5e1 |
|
MD5 | bfc4346df27031b7c078752312ff256b |
|
BLAKE2b-256 | 9d36761ccf86f9928d8c35eb67715b8ab274587245410098cfd90fc4b39104ab |
File details
Details for the file oxl_utils-0.3-py3-none-any.whl
.
File metadata
- Download URL: oxl_utils-0.3-py3-none-any.whl
- Upload date:
- Size: 37.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bf2ec965c5e38f873842f8b491da52c69c9ad6f3bf058c7d77ca2a31a054e7 |
|
MD5 | 96d1f79c9dca7a8c33ec26116efd0984 |
|
BLAKE2b-256 | ac752d87ded55fddadc4e9cdc0f844e898a9c582308b6a77a852ffdf884c5f00 |