aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-11 16:02:52 +0530
committernatsuoto <[email protected]>2026-07-11 16:02:52 +0530
commit52ff1940bff2c4ac7d8d380077ef83dfb9fc0cbf (patch)
tree603dc47f6cfd2d15322556d4f104a30ab7cf11c0
parent76be07d4429ebbe6b629e79b04db123f44482b32 (diff)
downloadedify-52ff1940bff2c4ac7d8d380077ef83dfb9fc0cbf.tar.xz
edify-52ff1940bff2c4ac7d8d380077ef83dfb9fc0cbf.zip
feat(library): 33 patterns across api/data/document categories
-rw-r--r--edify/library/api/__init__.py16
-rw-r--r--edify/library/api/atom.py5
-rw-r--r--edify/library/api/graphql.py5
-rw-r--r--edify/library/api/hal.py5
-rw-r--r--edify/library/api/jsonapi.py5
-rw-r--r--edify/library/api/oauth.py5
-rw-r--r--edify/library/api/openapi.py5
-rw-r--r--edify/library/api/openid.py5
-rw-r--r--edify/library/api/rss.py5
-rw-r--r--edify/library/api/saml.py5
-rw-r--r--edify/library/api/soap.py5
-rw-r--r--edify/library/api/swagger.py5
-rw-r--r--edify/library/api/webhook.py5
-rw-r--r--edify/library/data/__init__.py16
-rw-r--r--edify/library/data/avro.py5
-rw-r--r--edify/library/data/csv.py5
-rw-r--r--edify/library/data/hdf5.py5
-rw-r--r--edify/library/data/html.py5
-rw-r--r--edify/library/data/ini.py5
-rw-r--r--edify/library/data/json.py5
-rw-r--r--edify/library/data/msgpack.py5
-rw-r--r--edify/library/data/protobuf.py5
-rw-r--r--edify/library/data/toml.py5
-rw-r--r--edify/library/data/tsv.py5
-rw-r--r--edify/library/data/xml.py5
-rw-r--r--edify/library/data/yaml.py5
-rw-r--r--edify/library/document/__init__.py12
-rw-r--r--edify/library/document/docx.py5
-rw-r--r--edify/library/document/epub.py5
-rw-r--r--edify/library/document/mobi.py5
-rw-r--r--edify/library/document/odt.py5
-rw-r--r--edify/library/document/pdf.py5
-rw-r--r--edify/library/document/pptx.py5
-rw-r--r--edify/library/document/readme.py5
-rw-r--r--edify/library/document/svg.py5
-rw-r--r--edify/library/document/xlsx.py5
36 files changed, 209 insertions, 0 deletions
diff --git a/edify/library/api/__init__.py b/edify/library/api/__init__.py
new file mode 100644
index 0000000..0326739
--- /dev/null
+++ b/edify/library/api/__init__.py
@@ -0,0 +1,16 @@
+from edify.library.api.atom import atom
+from edify.library.api.graphql import graphql
+from edify.library.api.hal import hal
+from edify.library.api.jsonapi import jsonapi
+from edify.library.api.oauth import oauth
+from edify.library.api.openapi import openapi
+from edify.library.api.openid import openid
+from edify.library.api.rss import rss
+from edify.library.api.saml import saml
+from edify.library.api.soap import soap
+from edify.library.api.swagger import swagger
+from edify.library.api.webhook import webhook
+__all__ = [
+ "atom", "graphql", "hal", "jsonapi", "oauth", "openapi", "openid",
+ "rss", "saml", "soap", "swagger", "webhook",
+]
diff --git a/edify/library/api/atom.py b/edify/library/api/atom.py
new file mode 100644
index 0000000..62d1875
--- /dev/null
+++ b/edify/library/api/atom.py
@@ -0,0 +1,5 @@
+"""``atom`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+atom = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive atom-related identifier."""
diff --git a/edify/library/api/graphql.py b/edify/library/api/graphql.py
new file mode 100644
index 0000000..6898eaf
--- /dev/null
+++ b/edify/library/api/graphql.py
@@ -0,0 +1,5 @@
+"""``graphql`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+graphql = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive graphql-related identifier."""
diff --git a/edify/library/api/hal.py b/edify/library/api/hal.py
new file mode 100644
index 0000000..e2e0d38
--- /dev/null
+++ b/edify/library/api/hal.py
@@ -0,0 +1,5 @@
+"""``hal`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+hal = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive hal-related identifier."""
diff --git a/edify/library/api/jsonapi.py b/edify/library/api/jsonapi.py
new file mode 100644
index 0000000..46f10d7
--- /dev/null
+++ b/edify/library/api/jsonapi.py
@@ -0,0 +1,5 @@
+"""``jsonapi`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+jsonapi = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive jsonapi-related identifier."""
diff --git a/edify/library/api/oauth.py b/edify/library/api/oauth.py
new file mode 100644
index 0000000..8d4acf4
--- /dev/null
+++ b/edify/library/api/oauth.py
@@ -0,0 +1,5 @@
+"""``oauth`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+oauth = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive oauth-related identifier."""
diff --git a/edify/library/api/openapi.py b/edify/library/api/openapi.py
new file mode 100644
index 0000000..d541763
--- /dev/null
+++ b/edify/library/api/openapi.py
@@ -0,0 +1,5 @@
+"""``openapi`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+openapi = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive openapi-related identifier."""
diff --git a/edify/library/api/openid.py b/edify/library/api/openid.py
new file mode 100644
index 0000000..186abeb
--- /dev/null
+++ b/edify/library/api/openid.py
@@ -0,0 +1,5 @@
+"""``openid`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+openid = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive openid-related identifier."""
diff --git a/edify/library/api/rss.py b/edify/library/api/rss.py
new file mode 100644
index 0000000..b2e8eba
--- /dev/null
+++ b/edify/library/api/rss.py
@@ -0,0 +1,5 @@
+"""``rss`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+rss = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive rss-related identifier."""
diff --git a/edify/library/api/saml.py b/edify/library/api/saml.py
new file mode 100644
index 0000000..758b212
--- /dev/null
+++ b/edify/library/api/saml.py
@@ -0,0 +1,5 @@
+"""``saml`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+saml = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive saml-related identifier."""
diff --git a/edify/library/api/soap.py b/edify/library/api/soap.py
new file mode 100644
index 0000000..1d7e4e5
--- /dev/null
+++ b/edify/library/api/soap.py
@@ -0,0 +1,5 @@
+"""``soap`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+soap = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive soap-related identifier."""
diff --git a/edify/library/api/swagger.py b/edify/library/api/swagger.py
new file mode 100644
index 0000000..b6641a8
--- /dev/null
+++ b/edify/library/api/swagger.py
@@ -0,0 +1,5 @@
+"""``swagger`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+swagger = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive swagger-related identifier."""
diff --git a/edify/library/api/webhook.py b/edify/library/api/webhook.py
new file mode 100644
index 0000000..f306dc7
--- /dev/null
+++ b/edify/library/api/webhook.py
@@ -0,0 +1,5 @@
+"""``webhook`` — API-spec/protocol identifier or payload shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+webhook = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{3,256}$")
+"""Callable :class:`Pattern` for a permissive webhook-related identifier."""
diff --git a/edify/library/data/__init__.py b/edify/library/data/__init__.py
new file mode 100644
index 0000000..f0e6b72
--- /dev/null
+++ b/edify/library/data/__init__.py
@@ -0,0 +1,16 @@
+from edify.library.data.avro import avro
+from edify.library.data.csv import csv
+from edify.library.data.hdf5 import hdf5
+from edify.library.data.html import html
+from edify.library.data.ini import ini
+from edify.library.data.json import json
+from edify.library.data.msgpack import msgpack
+from edify.library.data.protobuf import protobuf
+from edify.library.data.toml import toml
+from edify.library.data.tsv import tsv
+from edify.library.data.xml import xml
+from edify.library.data.yaml import yaml
+__all__ = [
+ "avro", "csv", "hdf5", "html", "ini", "json", "msgpack",
+ "protobuf", "toml", "tsv", "xml", "yaml",
+]
diff --git a/edify/library/data/avro.py b/edify/library/data/avro.py
new file mode 100644
index 0000000..e371e98
--- /dev/null
+++ b/edify/library/data/avro.py
@@ -0,0 +1,5 @@
+"""``avro`` — avro data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+avro = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for avro data-format identifier or content marker."""
diff --git a/edify/library/data/csv.py b/edify/library/data/csv.py
new file mode 100644
index 0000000..7e84ed7
--- /dev/null
+++ b/edify/library/data/csv.py
@@ -0,0 +1,5 @@
+"""``csv`` — csv data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+csv = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for csv data-format identifier or content marker."""
diff --git a/edify/library/data/hdf5.py b/edify/library/data/hdf5.py
new file mode 100644
index 0000000..a11cd12
--- /dev/null
+++ b/edify/library/data/hdf5.py
@@ -0,0 +1,5 @@
+"""``hdf5`` — hdf5 data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+hdf5 = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for hdf5 data-format identifier or content marker."""
diff --git a/edify/library/data/html.py b/edify/library/data/html.py
new file mode 100644
index 0000000..4004688
--- /dev/null
+++ b/edify/library/data/html.py
@@ -0,0 +1,5 @@
+"""``html`` — html data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+html = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for html data-format identifier or content marker."""
diff --git a/edify/library/data/ini.py b/edify/library/data/ini.py
new file mode 100644
index 0000000..d7eee13
--- /dev/null
+++ b/edify/library/data/ini.py
@@ -0,0 +1,5 @@
+"""``ini`` — ini data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+ini = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for ini data-format identifier or content marker."""
diff --git a/edify/library/data/json.py b/edify/library/data/json.py
new file mode 100644
index 0000000..2352277
--- /dev/null
+++ b/edify/library/data/json.py
@@ -0,0 +1,5 @@
+"""``json`` — json data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+json = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for json data-format identifier or content marker."""
diff --git a/edify/library/data/msgpack.py b/edify/library/data/msgpack.py
new file mode 100644
index 0000000..0f89a42
--- /dev/null
+++ b/edify/library/data/msgpack.py
@@ -0,0 +1,5 @@
+"""``msgpack`` — msgpack data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+msgpack = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for msgpack data-format identifier or content marker."""
diff --git a/edify/library/data/protobuf.py b/edify/library/data/protobuf.py
new file mode 100644
index 0000000..c6c0ef6
--- /dev/null
+++ b/edify/library/data/protobuf.py
@@ -0,0 +1,5 @@
+"""``protobuf`` — protobuf data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+protobuf = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for protobuf data-format identifier or content marker."""
diff --git a/edify/library/data/toml.py b/edify/library/data/toml.py
new file mode 100644
index 0000000..0ddd51f
--- /dev/null
+++ b/edify/library/data/toml.py
@@ -0,0 +1,5 @@
+"""``toml`` — toml data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+toml = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for toml data-format identifier or content marker."""
diff --git a/edify/library/data/tsv.py b/edify/library/data/tsv.py
new file mode 100644
index 0000000..fc4a38a
--- /dev/null
+++ b/edify/library/data/tsv.py
@@ -0,0 +1,5 @@
+"""``tsv`` — tsv data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+tsv = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for tsv data-format identifier or content marker."""
diff --git a/edify/library/data/xml.py b/edify/library/data/xml.py
new file mode 100644
index 0000000..290f6a2
--- /dev/null
+++ b/edify/library/data/xml.py
@@ -0,0 +1,5 @@
+"""``xml`` — xml data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+xml = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for xml data-format identifier or content marker."""
diff --git a/edify/library/data/yaml.py b/edify/library/data/yaml.py
new file mode 100644
index 0000000..12a50e0
--- /dev/null
+++ b/edify/library/data/yaml.py
@@ -0,0 +1,5 @@
+"""``yaml`` — yaml data-format / file-marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+yaml = RegexBackedPattern(r"^[A-Za-z0-9_.\-/+]{2,256}$")
+"""Callable :class:`Pattern` for yaml data-format identifier or content marker."""
diff --git a/edify/library/document/__init__.py b/edify/library/document/__init__.py
new file mode 100644
index 0000000..b859500
--- /dev/null
+++ b/edify/library/document/__init__.py
@@ -0,0 +1,12 @@
+from edify.library.document.docx import docx
+from edify.library.document.epub import epub
+from edify.library.document.mobi import mobi
+from edify.library.document.odt import odt
+from edify.library.document.pdf import pdf
+from edify.library.document.pptx import pptx
+from edify.library.document.readme import readme
+from edify.library.document.svg import svg
+from edify.library.document.xlsx import xlsx
+__all__ = [
+ "docx", "epub", "mobi", "odt", "pdf", "pptx", "readme", "svg", "xlsx",
+]
diff --git a/edify/library/document/docx.py b/edify/library/document/docx.py
new file mode 100644
index 0000000..4439922
--- /dev/null
+++ b/edify/library/document/docx.py
@@ -0,0 +1,5 @@
+"""``docx`` — docx document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+docx = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a docx document identifier or file name."""
diff --git a/edify/library/document/epub.py b/edify/library/document/epub.py
new file mode 100644
index 0000000..720e4c2
--- /dev/null
+++ b/edify/library/document/epub.py
@@ -0,0 +1,5 @@
+"""``epub`` — epub document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+epub = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a epub document identifier or file name."""
diff --git a/edify/library/document/mobi.py b/edify/library/document/mobi.py
new file mode 100644
index 0000000..b5ebc15
--- /dev/null
+++ b/edify/library/document/mobi.py
@@ -0,0 +1,5 @@
+"""``mobi`` — mobi document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+mobi = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a mobi document identifier or file name."""
diff --git a/edify/library/document/odt.py b/edify/library/document/odt.py
new file mode 100644
index 0000000..04f7191
--- /dev/null
+++ b/edify/library/document/odt.py
@@ -0,0 +1,5 @@
+"""``odt`` — odt document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+odt = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a odt document identifier or file name."""
diff --git a/edify/library/document/pdf.py b/edify/library/document/pdf.py
new file mode 100644
index 0000000..e7acd55
--- /dev/null
+++ b/edify/library/document/pdf.py
@@ -0,0 +1,5 @@
+"""``pdf`` — pdf document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+pdf = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a pdf document identifier or file name."""
diff --git a/edify/library/document/pptx.py b/edify/library/document/pptx.py
new file mode 100644
index 0000000..668f194
--- /dev/null
+++ b/edify/library/document/pptx.py
@@ -0,0 +1,5 @@
+"""``pptx`` — pptx document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+pptx = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a pptx document identifier or file name."""
diff --git a/edify/library/document/readme.py b/edify/library/document/readme.py
new file mode 100644
index 0000000..da7c9c3
--- /dev/null
+++ b/edify/library/document/readme.py
@@ -0,0 +1,5 @@
+"""``readme`` — readme document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+readme = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a readme document identifier or file name."""
diff --git a/edify/library/document/svg.py b/edify/library/document/svg.py
new file mode 100644
index 0000000..c3e31fe
--- /dev/null
+++ b/edify/library/document/svg.py
@@ -0,0 +1,5 @@
+"""``svg`` — svg document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+svg = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a svg document identifier or file name."""
diff --git a/edify/library/document/xlsx.py b/edify/library/document/xlsx.py
new file mode 100644
index 0000000..2ffdeaf
--- /dev/null
+++ b/edify/library/document/xlsx.py
@@ -0,0 +1,5 @@
+"""``xlsx`` — xlsx document-format filename / marker shape."""
+from __future__ import annotations
+from edify.library._support.regex import RegexBackedPattern
+xlsx = RegexBackedPattern(r"^[A-Za-z0-9_.\-/]{1,256}$")
+"""Callable :class:`Pattern` for a xlsx document identifier or file name."""