aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-11 16:03:18 +0530
committernatsuoto <[email protected]>2026-07-11 16:03:18 +0530
commitaae0da040c86c922c2f517c2e1526ea60e59f1af (patch)
tree673a420673243dabd0af4838d77492aa1877e291
parent52ff1940bff2c4ac7d8d380077ef83dfb9fc0cbf (diff)
downloadedify-aae0da040c86c922c2f517c2e1526ea60e59f1af.tar.xz
edify-aae0da040c86c922c2f517c2e1526ea60e59f1af.zip
feat(library): 22 patterns across security/grammar/web categories
-rw-r--r--edify/library/grammar/__init__.py6
-rw-r--r--edify/library/grammar/abnf.py5
-rw-r--r--edify/library/grammar/bnf.py5
-rw-r--r--edify/library/grammar/ebnf.py5
-rw-r--r--edify/library/grammar/peg.py5
-rw-r--r--edify/library/grammar/pest.py5
-rw-r--r--edify/library/security/__init__.py12
-rw-r--r--edify/library/security/age.py5
-rw-r--r--edify/library/security/certificate.py5
-rw-r--r--edify/library/security/csr.py5
-rw-r--r--edify/library/security/der.py5
-rw-r--r--edify/library/security/keyring.py5
-rw-r--r--edify/library/security/pem.py5
-rw-r--r--edify/library/security/pgp.py5
-rw-r--r--edify/library/security/ssh.py5
-rw-r--r--edify/library/security/x509.py5
-rw-r--r--edify/library/web/__init__.py12
-rw-r--r--edify/library/web/apache.py5
-rw-r--r--edify/library/web/captcha.py5
-rw-r--r--edify/library/web/htaccess.py5
-rw-r--r--edify/library/web/humans.py5
-rw-r--r--edify/library/web/manifest.py5
-rw-r--r--edify/library/web/nginx.py5
-rw-r--r--edify/library/web/robots.py5
-rw-r--r--edify/library/web/sitemap.py5
25 files changed, 140 insertions, 0 deletions
diff --git a/edify/library/grammar/__init__.py b/edify/library/grammar/__init__.py
new file mode 100644
index 0000000..bc507cf
--- /dev/null
+++ b/edify/library/grammar/__init__.py
@@ -0,0 +1,6 @@
+from edify.library.grammar.abnf import abnf
+from edify.library.grammar.bnf import bnf
+from edify.library.grammar.ebnf import ebnf
+from edify.library.grammar.peg import peg
+from edify.library.grammar.pest import pest
+__all__ = ["abnf", "bnf", "ebnf", "peg", "pest"]
diff --git a/edify/library/grammar/abnf.py b/edify/library/grammar/abnf.py
new file mode 100644
index 0000000..25f4d6f
--- /dev/null
+++ b/edify/library/grammar/abnf.py
@@ -0,0 +1,5 @@
+"""``abnf`` — abnf grammar-spec content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+abnf = RegexBackedPattern(r"^[A-Za-z0-9_\-<>:=|*+?()\[\]{}\s.'\"/;,]{4,65536}$")
+"""Callable :class:`Pattern` for abnf grammar-specification content."""
diff --git a/edify/library/grammar/bnf.py b/edify/library/grammar/bnf.py
new file mode 100644
index 0000000..4d1cf87
--- /dev/null
+++ b/edify/library/grammar/bnf.py
@@ -0,0 +1,5 @@
+"""``bnf`` — bnf grammar-spec content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+bnf = RegexBackedPattern(r"^[A-Za-z0-9_\-<>:=|*+?()\[\]{}\s.'\"/;,]{4,65536}$")
+"""Callable :class:`Pattern` for bnf grammar-specification content."""
diff --git a/edify/library/grammar/ebnf.py b/edify/library/grammar/ebnf.py
new file mode 100644
index 0000000..ead4bd8
--- /dev/null
+++ b/edify/library/grammar/ebnf.py
@@ -0,0 +1,5 @@
+"""``ebnf`` — ebnf grammar-spec content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+ebnf = RegexBackedPattern(r"^[A-Za-z0-9_\-<>:=|*+?()\[\]{}\s.'\"/;,]{4,65536}$")
+"""Callable :class:`Pattern` for ebnf grammar-specification content."""
diff --git a/edify/library/grammar/peg.py b/edify/library/grammar/peg.py
new file mode 100644
index 0000000..38e5e79
--- /dev/null
+++ b/edify/library/grammar/peg.py
@@ -0,0 +1,5 @@
+"""``peg`` — peg grammar-spec content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+peg = RegexBackedPattern(r"^[A-Za-z0-9_\-<>:=|*+?()\[\]{}\s.'\"/;,]{4,65536}$")
+"""Callable :class:`Pattern` for peg grammar-specification content."""
diff --git a/edify/library/grammar/pest.py b/edify/library/grammar/pest.py
new file mode 100644
index 0000000..c9334d6
--- /dev/null
+++ b/edify/library/grammar/pest.py
@@ -0,0 +1,5 @@
+"""``pest`` — pest grammar-spec content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+pest = RegexBackedPattern(r"^[A-Za-z0-9_\-<>:=|*+?()\[\]{}\s.'\"/;,]{4,65536}$")
+"""Callable :class:`Pattern` for pest grammar-specification content."""
diff --git a/edify/library/security/__init__.py b/edify/library/security/__init__.py
new file mode 100644
index 0000000..9fea6a0
--- /dev/null
+++ b/edify/library/security/__init__.py
@@ -0,0 +1,12 @@
+from edify.library.security.age import age
+from edify.library.security.certificate import certificate
+from edify.library.security.csr import csr
+from edify.library.security.der import der
+from edify.library.security.keyring import keyring
+from edify.library.security.pem import pem
+from edify.library.security.pgp import pgp
+from edify.library.security.ssh import ssh
+from edify.library.security.x509 import x509
+__all__ = [
+ "age", "certificate", "csr", "der", "keyring", "pem", "pgp", "ssh", "x509",
+]
diff --git a/edify/library/security/age.py b/edify/library/security/age.py
new file mode 100644
index 0000000..9945e9a
--- /dev/null
+++ b/edify/library/security/age.py
@@ -0,0 +1,5 @@
+"""``age`` — age cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+age = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for age cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/certificate.py b/edify/library/security/certificate.py
new file mode 100644
index 0000000..c37aa3d
--- /dev/null
+++ b/edify/library/security/certificate.py
@@ -0,0 +1,5 @@
+"""``certificate`` — certificate cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+certificate = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for certificate cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/csr.py b/edify/library/security/csr.py
new file mode 100644
index 0000000..055a461
--- /dev/null
+++ b/edify/library/security/csr.py
@@ -0,0 +1,5 @@
+"""``csr`` — csr cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+csr = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for csr cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/der.py b/edify/library/security/der.py
new file mode 100644
index 0000000..97c727a
--- /dev/null
+++ b/edify/library/security/der.py
@@ -0,0 +1,5 @@
+"""``der`` — der cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+der = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for der cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/keyring.py b/edify/library/security/keyring.py
new file mode 100644
index 0000000..fd58b13
--- /dev/null
+++ b/edify/library/security/keyring.py
@@ -0,0 +1,5 @@
+"""``keyring`` — keyring cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+keyring = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for keyring cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/pem.py b/edify/library/security/pem.py
new file mode 100644
index 0000000..b387d6d
--- /dev/null
+++ b/edify/library/security/pem.py
@@ -0,0 +1,5 @@
+"""``pem`` — pem cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+pem = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for pem cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/pgp.py b/edify/library/security/pgp.py
new file mode 100644
index 0000000..eb28dd5
--- /dev/null
+++ b/edify/library/security/pgp.py
@@ -0,0 +1,5 @@
+"""``pgp`` — pgp cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+pgp = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for pgp cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/ssh.py b/edify/library/security/ssh.py
new file mode 100644
index 0000000..10697dc
--- /dev/null
+++ b/edify/library/security/ssh.py
@@ -0,0 +1,5 @@
+"""``ssh`` — ssh cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+ssh = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for ssh cryptographic-artifact identifier or payload."""
diff --git a/edify/library/security/x509.py b/edify/library/security/x509.py
new file mode 100644
index 0000000..5533734
--- /dev/null
+++ b/edify/library/security/x509.py
@@ -0,0 +1,5 @@
+"""``x509`` — x509 cryptography artifact shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+x509 = RegexBackedPattern(r"^[A-Za-z0-9+/=_\-.:\s]{16,4096}$")
+"""Callable :class:`Pattern` for x509 cryptographic-artifact identifier or payload."""
diff --git a/edify/library/web/__init__.py b/edify/library/web/__init__.py
new file mode 100644
index 0000000..c274a81
--- /dev/null
+++ b/edify/library/web/__init__.py
@@ -0,0 +1,12 @@
+from edify.library.web.apache import apache
+from edify.library.web.captcha import captcha
+from edify.library.web.htaccess import htaccess
+from edify.library.web.humans import humans
+from edify.library.web.manifest import manifest
+from edify.library.web.nginx import nginx
+from edify.library.web.robots import robots
+from edify.library.web.sitemap import sitemap
+__all__ = [
+ "apache", "captcha", "htaccess", "humans", "manifest", "nginx",
+ "robots", "sitemap",
+]
diff --git a/edify/library/web/apache.py b/edify/library/web/apache.py
new file mode 100644
index 0000000..3dc3120
--- /dev/null
+++ b/edify/library/web/apache.py
@@ -0,0 +1,5 @@
+"""``apache`` — apache web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+apache = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for apache web-artifact identifier or content marker."""
diff --git a/edify/library/web/captcha.py b/edify/library/web/captcha.py
new file mode 100644
index 0000000..d62cf64
--- /dev/null
+++ b/edify/library/web/captcha.py
@@ -0,0 +1,5 @@
+"""``captcha`` — captcha web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+captcha = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for captcha web-artifact identifier or content marker."""
diff --git a/edify/library/web/htaccess.py b/edify/library/web/htaccess.py
new file mode 100644
index 0000000..a7411bb
--- /dev/null
+++ b/edify/library/web/htaccess.py
@@ -0,0 +1,5 @@
+"""``htaccess`` — htaccess web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+htaccess = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for htaccess web-artifact identifier or content marker."""
diff --git a/edify/library/web/humans.py b/edify/library/web/humans.py
new file mode 100644
index 0000000..8e11817
--- /dev/null
+++ b/edify/library/web/humans.py
@@ -0,0 +1,5 @@
+"""``humans`` — humans web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+humans = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for humans web-artifact identifier or content marker."""
diff --git a/edify/library/web/manifest.py b/edify/library/web/manifest.py
new file mode 100644
index 0000000..441671b
--- /dev/null
+++ b/edify/library/web/manifest.py
@@ -0,0 +1,5 @@
+"""``manifest`` — manifest web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+manifest = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for manifest web-artifact identifier or content marker."""
diff --git a/edify/library/web/nginx.py b/edify/library/web/nginx.py
new file mode 100644
index 0000000..b36df40
--- /dev/null
+++ b/edify/library/web/nginx.py
@@ -0,0 +1,5 @@
+"""``nginx`` — nginx web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+nginx = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for nginx web-artifact identifier or content marker."""
diff --git a/edify/library/web/robots.py b/edify/library/web/robots.py
new file mode 100644
index 0000000..b6081d0
--- /dev/null
+++ b/edify/library/web/robots.py
@@ -0,0 +1,5 @@
+"""``robots`` — robots web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+robots = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for robots web-artifact identifier or content marker."""
diff --git a/edify/library/web/sitemap.py b/edify/library/web/sitemap.py
new file mode 100644
index 0000000..d5fa78b
--- /dev/null
+++ b/edify/library/web/sitemap.py
@@ -0,0 +1,5 @@
+"""``sitemap`` — sitemap web-artifact identifier/URL/content shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+sitemap = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+=?&#:%~]{2,4096}$")
+"""Callable :class:`Pattern` for sitemap web-artifact identifier or content marker."""