Skip to main content

OXL Utils-Collecion

Project description

Utils Collection

Lint Test

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
## 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

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

Uploaded Source

Built Distribution

oxl_utils-0.2-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oxl_utils-0.2.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for oxl_utils-0.2.tar.gz
Algorithm Hash digest
SHA256 ec0188e23ed488b991ac19174d14016a5f52105ebcf97714a74670368215165f
MD5 0fd6796a9fdb18c8ed1125801137ca2f
BLAKE2b-256 e34c4c8f51917bd1ab62512bc39a286e3d7a445c19fbb41dab088a18889fef83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oxl_utils-0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for oxl_utils-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc842c21db0ab2bd88df70230b19e1944cccc4c6b77d37391974088ba30caa4
MD5 096b86faedc52dc016a3b6580ee82810
BLAKE2b-256 b3a87c8f38e28f58cab4fd3df45eaa1501a1e8c3357e31443047e4603c9921a8

See more details on using hashes here.

Supported by

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