{"id":25883093,"url":"https://github.com/o-x-l/py-utils","last_synced_at":"2026-01-27T10:33:07.784Z","repository":{"id":260819957,"uuid":"882317176","full_name":"O-X-L/py-utils","owner":"O-X-L","description":"Python3 Utils collection","archived":false,"fork":false,"pushed_at":"2025-08-02T12:44:53.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"latest","last_synced_at":"2025-08-29T00:13:01.368Z","etag":null,"topics":["dns-query","dns-resolver","port-check","utilities","utility","validation","validators"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/O-X-L.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-02T13:57:13.000Z","updated_at":"2025-08-02T12:44:57.000Z","dependencies_parsed_at":"2025-03-02T23:15:06.670Z","dependency_job_id":null,"html_url":"https://github.com/O-X-L/py-utils","commit_stats":null,"previous_names":["o-x-l/py-utils"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/O-X-L/py-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fpy-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fpy-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fpy-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fpy-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/O-X-L","download_url":"https://codeload.github.com/O-X-L/py-utils/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fpy-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28811960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns-query","dns-resolver","port-check","utilities","utility","validation","validators"],"created_at":"2025-03-02T16:31:13.682Z","updated_at":"2026-01-27T10:33:07.768Z","avatar_url":"https://github.com/O-X-L.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utils Collection\n\n[![Lint](https://github.com/O-X-L/py-utils/actions/workflows/lint.yml/badge.svg)](https://github.com/O-X-L/py-utils/actions/workflows/lint.yml)\n[![Test](https://github.com/O-X-L/py-utils/actions/workflows/test.yml/badge.svg)](https://github.com/O-X-L/py-utils/actions/workflows/test.yml)\n[![PyPI - Version](https://img.shields.io/pypi/v/oxl-utils?color=green)](https://pypi.org/project/oxl-utils/)\n\n[pypi.org](https://pypi.org/project/oxl-utils/)\n\n## Install\n\n```bash\npip install oxl-utils\n```\n\n----\n\n## Data States\n\n```python3\nfrom oxl_utils.state import is_set\nfrom oxl_utils.state import is_null\n```\n\n----\n\n## Network interaction\n\n```python3\n# dnspython wrapper\nfrom oxl_utils.net import resolve_dns\n\n# get first IP\nfrom oxl_utils.net import resolve_first_ip\n\n# check if a remote port is reachable\nfrom oxl_utils.net import is_port_open\n```\n\n----\n\n## Validators\n\n```python3\n# validate email format\nfrom oxl_utils.valid.email import valid_email\nfrom oxl_utils.valid.email import has_mailserver\n\n# ips and networks\nfrom oxl_utils.valid.net import valid_ip\nfrom oxl_utils.valid.net import valid_ip4\nfrom oxl_utils.valid.net import valid_ip6\nfrom oxl_utils.valid.net import valid_net4\nfrom oxl_utils.valid.net import valid_net6\nfrom oxl_utils.valid.net import valid_public_ip\nfrom oxl_utils.valid.net import valid_asn\nfrom oxl_utils.valid.net import valid_port\nfrom oxl_utils.valid.net import get_ipv\n\n# domains\nfrom oxl_utils.valid.dns import valid_domain\n\n# uuid\nfrom oxl_utils.valid.uuid import valid_uuid4\n```\n\n----\n\n## Crypto\n\n```python3\n# AES CBC\n## set secret\nfrom os import environ\nenviron['CRYPTO_SECRET'] = '\u003cYOUR-SECRET\u003e'\n\nfrom oxl_utils.crypto.aes_cbc import encrypt\nfrom oxl_utils.crypto.aes_cbc import decrypt\nfrom oxl_utils.crypto.aes_cbc import encrypt_bytes\nfrom oxl_utils.crypto.aes_cbc import decrypt_bytes\n```\n\n----\n\n## Processing\n\n```python3\n# subprocess wrapper\nfrom oxl_utils.ps import process\n## for read-only commands which output should be cached\nfrom oxl_utils.ps import process_cache\n\n# thread handling\nfrom oxl_utils.ps import wait_for_threads\nfrom oxl_utils.ps import process_list_in_threads\n```\n\n----\n\n## Django\n\n```python3\n# fix datetime timezone\nfrom oxl_utils.dj.dt import datetime_from_db\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-x-l%2Fpy-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo-x-l%2Fpy-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-x-l%2Fpy-utils/lists"}