Skip to main content

OXL Utils-Collecion

Project description

Utils Collection

Lint Test PyPI - Version

pypi.org

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
from oxl_utils.ps import process2, ProcessArgs, ProcessResult
## for read-only commands which output should be cached
from oxl_utils.ps import process_with_cache
from oxl_utils.ps import process2_with_cache, ProcessArgs, ProcessResult

# 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


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.4.tar.gz (46.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oxl_utils-0.4-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file oxl_utils-0.4.tar.gz.

File metadata

  • Download URL: oxl_utils-0.4.tar.gz
  • Upload date:
  • Size: 46.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for oxl_utils-0.4.tar.gz
Algorithm Hash digest
SHA256 bdc5f3c250248b75676766d4d1451abfa777aa7fa2a3e51f53f352c63b4ea61d
MD5 28210bf9507629b9014d500550bd5ca8
BLAKE2b-256 f3e10397bf69a6c67a522b7ccb290d630c2c34efa3c142294752bc9a7e8f0c80

See more details on using hashes here.

File details

Details for the file oxl_utils-0.4-py3-none-any.whl.

File metadata

  • Download URL: oxl_utils-0.4-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for oxl_utils-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6926b73465e889c32584bbee8b0133a7cdae21df7ba74643ecf6ce5ee7c63b55
MD5 5dfa5812999fc91c9796dfd9c00fefd9
BLAKE2b-256 997e7b58634ed6f251d4129b6e18eb5009501ac7384034c0e6879c5d2b532bb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page