code stringlengths 114 1.05M | path stringlengths 3 312 | quality_prob float64 0.5 0.99 | learning_prob float64 0.2 1 | filename stringlengths 3 168 | kind stringclasses 1
value |
|---|---|---|---|---|---|
from typing import List
from typing import Dict
from pprint import pformat
from baseblock import Stopwatch
from baseblock import BaseObject
from schema_classification.dto import NormalizedSchema
class FilterExcludeOneOf(BaseObject):
""" Filter Classifications using EXCLUDE_ONE_OF Rulesets
Remove invalid c... | /schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/filter_exclude_oneof.py | 0.876066 | 0.315565 | filter_exclude_oneof.py | pypi |
import pprint
from typing import Dict
from baseblock import BaseObject
from schema_classification.dto import Markers
from schema_classification.dto import ExplainResult
from schema_classification.dto import MappingResult
class ConfidenceIncludeAllOf(BaseObject):
""" Determine Confidence Level for Selected Mappi... | /schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/confidence_include_allof.py | 0.745676 | 0.252833 | confidence_include_allof.py | pypi |
from typing import Any
from typing import Dict
from typing import List
from typing import DefaultDict
from collections import defaultdict
from baseblock import Stopwatch
from baseblock import BaseObject
class IndexIncludeAllOf(BaseObject):
""" Generate an Index of 'include-all-of' Mappings"""
def __init__(... | /schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/index_include_allof.py | 0.767341 | 0.178418 | index_include_allof.py | pypi |
from typing import Dict
from typing import List
from baseblock import Stopwatch
from baseblock import BaseObject
from schema_classification.dto import NormalizedSchema
class FilterIncludeOneOf(BaseObject):
""" Compute INCLUDE_ONE_OF Rulesets """
def __init__(self,
d_index: NormalizedSchema... | /schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/filter_include_oneof.py | 0.83193 | 0.24951 | filter_include_oneof.py | pypi |
from enum import Enum
from psycopg2 import sql
class DataTypes(Enum):
BOOL = "bool"
TEXT = "text"
CHAR = "char"
VARCHAR = "varchar"
DOUBLE = "float8"
INTEGER = "int"
DECIMAL = "decimal"
DATE = "date"
@staticmethod
def limited():
return [DataTypes.CHAR, DataTypes.VARCHA... | /schema_cntl-1.0.1-py3-none-any.whl/schema_cntl/dialects/postgres.py | 0.689933 | 0.272709 | postgres.py | pypi |
from ansible.inventory.manager import InventoryManager # pylint: disable=import-error
from ansible.parsing.dataloader import DataLoader # pylint: disable=import-error
from ansible.vars.manager import VariableManager # pylint: disable=import-error
from ansible.template import Templar # pylint: disable=import-error
... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/ansible_inventory.py | 0.777849 | 0.193795 | ansible_inventory.py | pypi |
import os
import os.path
import sys
from pathlib import Path
from typing import Dict, List, Optional
import toml
from pydantic import BaseSettings, ValidationError
SETTINGS = None
class Settings(BaseSettings): # pylint: disable=too-few-public-methods
"""Main Settings Class for the project.
The type of eac... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/config.py | 0.712432 | 0.334168 | config.py | pypi |
import sys
import click
from termcolor import colored
from schema_enforcer.utils import MutuallyExclusiveOption
from schema_enforcer import config
from schema_enforcer.schemas.manager import SchemaManager
from schema_enforcer.instances.file import InstanceFileManager
from schema_enforcer.utils import error
from schem... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/cli.py | 0.483892 | 0.30641 | cli.py | pypi |
import copy
import json
import os
from functools import cached_property
from jsonschema import Draft7Validator # pylint: disable=import-self
from schema_enforcer.schemas.validator import BaseValidation
from schema_enforcer.validation import ValidationResult, RESULT_FAIL, RESULT_PASS
class JsonSchema(BaseValidation)... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/schemas/jsonschema.py | 0.685634 | 0.183667 | jsonschema.py | pypi |
# pylint: disable=no-member, too-few-public-methods
# See PEP585 (https://www.python.org/dev/peps/pep-0585/)
from __future__ import annotations
import pkgutil
import inspect
import jmespath
from schema_enforcer.validation import ValidationResult
class BaseValidation:
"""Base class for Validation classes."""
... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/schemas/validator.py | 0.865835 | 0.21819 | validator.py | pypi |
import os
import sys
import json
import jsonref
from termcolor import colored
from rich.console import Console
from rich.table import Table
from schema_enforcer.utils import load_file, find_file, find_files, dump_data_to_yaml
from schema_enforcer.validation import ValidationResult, RESULT_PASS, RESULT_FAIL
from schem... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/schemas/manager.py | 0.567457 | 0.21428 | manager.py | pypi |
import os
import re
import itertools
from pathlib import Path
from schema_enforcer.utils import find_files, load_file
SCHEMA_TAG = "jsonschema"
class InstanceFileManager: # pylint: disable=too-few-public-methods
"""InstanceFileManager."""
def __init__(self, config):
"""Initialize the interface File... | /schema_enforcer-1.2.2.tar.gz/schema_enforcer-1.2.2/schema_enforcer/instances/file.py | 0.606382 | 0.152537 | file.py | pypi |
# 简介
程序入口的构造工具.
这个基类的设计目的是为了配置化入口的定义.通过继承和覆盖基类中的特定字段和方法来实现入口的参数配置读取.
目前的实现可以依次从指定路径下的json文件,环境变量,命令行参数读取需要的数据.
然后校验是否符合设定的json schema规定的模式,在符合模式后执行注册进去的回调函数.
入口树中可以有中间节点,用于分解复杂命令行参数,中间节点不会执行.
他们将参数传递给下一级节点,直到尾部可以执行为止.
# 特性
+ 根据子类的名字小写构造命令
+ 根据子类的docstring,`epilog字段`和`description字段`自动构造,命令行说明.
+ 根据子类的`schema字段`和`e... | /schema_entry-0.1.5.tar.gz/schema_entry-0.1.5/README.md | 0.647018 | 0.879871 | README.md | pypi |
import abc
import argparse
from pathlib import Path
from typing import Callable, Sequence, Dict, Any, Optional, Tuple, List, Union
from mypy_extensions import TypedDict
class ItemType(TypedDict):
type: str
enum: List[Union[int, float, str]]
class PropertyType(TypedDict):
type: str
title: str
des... | /schema_entry-0.1.5.tar.gz/schema_entry-0.1.5/schema_entry/entrypoint_base.py | 0.70416 | 0.396535 | entrypoint_base.py | pypi |
import warnings
import argparse
from typing import List, Dict, Any, Optional
from .entrypoint_base import EntryPointABC, PropertyType, ItemType
def _get_parent_tree(c: EntryPointABC, result: List[str]) -> None:
if c.parent:
result.append(c.parent.name)
_get_parent_tree(c.parent, result)
else:
... | /schema_entry-0.1.5.tar.gz/schema_entry-0.1.5/schema_entry/utils.py | 0.707304 | 0.324597 | utils.py | pypi |
SUPPORT_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"properties": {
"type": "object",
"minProperties": 1,
"additionalProperties": False,
"patternProperties": {
r"^\w+$": {
... | /schema_entry-0.1.5.tar.gz/schema_entry-0.1.5/schema_entry/protocol.py | 0.683947 | 0.381018 | protocol.py | pypi |
import io
import unicodecsv as csv
from schema_induction.type import Type
from schema_induction.union_type import UnionType
def dump_csv(array, delimiter=','):
f = io.BytesIO()
writer = csv.writer(f, delimiter=delimiter, quoting=csv.QUOTE_ALL)
writer.writerow(array)
return f.getvalue()[:-2].decode(... | /schema_induction-1.1.7-py3-none-any.whl/schema_induction/primitive_type.py | 0.605333 | 0.376279 | primitive_type.py | pypi |
from pyspark.sql.types import (
BooleanType,
BooleanType,
DoubleType,
IntegerType,
StringType,
StructField,
StructType,
)
def bronze_machine_raw():
"""
fill in
"""
schema = StructType(
[
StructField("N8j2", DoubleType(), True),
StructField("4... | /schema_jobs-0.1.15-py3-none-any.whl/schema_jobs/jobs/utility/schema/schemas.py | 0.794505 | 0.413714 | schemas.py | pypi |
Overview
========
Schema is a general algorithm for integrating heterogeneous data
modalities. While it has been specially designed for multi-modal
single-cell biological datasets, it should work in other multi-modal
contexts too.
.. image:: ../_static/Schema-Overview-v2.png
:width: 648
:alt: 'Overview of Sche... | /schema_learn-0.1.5.5.tar.gz/schema_learn-0.1.5.5/docs/source/overview.rst | 0.969389 | 0.838217 | overview.rst | pypi |
Data Integration Examples
=======
API-usage Examples
~~~~~~~~~~~~~~
*Note*: The code snippets below show how Schema could be used for hypothetical datasets and illustrates the API usage. In the next sections (`Paired RNA-seq and ATAC-seq`_, `Paired-Tag`_) and in `Visualization`_, we describe worked examples where we ... | /schema_learn-0.1.5.5.tar.gz/schema_learn-0.1.5.5/docs/source/recipes/index.rst | 0.919054 | 0.943764 | index.rst | pypi |
# Schema
Schema is a general algorithm for integrating heterogeneous data
modalities. It has been specially designed for multi-modal
single-cell biological datasets, but should work in other contexts too.
This version is based on a Quadratic Programming framework.
It is described in the paper
["*Schema: A general fr... | /schema_learn-0.1.5.5.tar.gz/schema_learn-0.1.5.5/deprecated/old_readme.md | 0.780244 | 0.990505 | old_readme.md | pypi |
from schema import SchemaQP
from anndata import AnnData
import numpy as np
import scanpy as sc
from .process import load_names
def load_meta(fname):
age, strain = [], []
with open(fname) as f:
f.readline() # Consume header.
for line in f:
fields = line.rstrip().split()
... | /schema_learn-0.1.5.5.tar.gz/schema_learn-0.1.5.5/deprecated/old_examples/fly_brain/fly_brain.py | 0.634204 | 0.388444 | fly_brain.py | pypi |
def validate_type_model_errors(types):
"""
Validate a user type model's types
:param dict types: The map of user type name to user type model
:returns: The list of type name, member name, and error message tuples
"""
errors = []
# Check each user type
for type_name, user_type in types... | /schema_markdown-1.2.6-py3-none-any.whl/schema_markdown/schema_util.py | 0.625209 | 0.155495 | schema_util.py | pypi |
from datetime import date, datetime, timezone
from decimal import Decimal
from math import isnan, isinf
from uuid import UUID
from .schema_util import validate_type_model_errors
from .type_model import TYPE_MODEL
def get_referenced_types(types, type_name, referenced_types=None):
"""
Get a type's referenced t... | /schema_markdown-1.2.6-py3-none-any.whl/schema_markdown/schema.py | 0.818483 | 0.172102 | schema.py | pypi |
from datetime import date, datetime, timezone
from decimal import Decimal
import json
from urllib.parse import quote, unquote
from uuid import UUID
class JSONEncoder(json.JSONEncoder):
"""
A :class:`~json.JSONEncoder` sub-class with support for :class:`~datetime.datetime`, :class:`~datetime.date`,
:class:... | /schema_markdown-1.2.6-py3-none-any.whl/schema_markdown/encode.py | 0.854171 | 0.2901 | encode.py | pypi |
from .parser import parse_schema_markdown
#: The Schema Markdown type model
TYPE_MODEL = parse_schema_markdown('''\
# Map of user type name to user type model
typedef UserType{len > 0} Types
# Union representing a member type
union Type
# A built-in type
BuiltinType builtin
# An array type
Array a... | /schema_markdown-1.2.6-py3-none-any.whl/schema_markdown/type_model.py | 0.797675 | 0.289786 | type_model.py | pypi |
from itertools import chain
import re
from .schema_util import validate_type_model_errors
# Built-in types
BUILTIN_TYPES = {'bool', 'date', 'datetime', 'float', 'int', 'object', 'string', 'uuid'}
# Schema Markdown regex
RE_PART_ID = r'(?:[A-Za-z]\w*)'
RE_PART_ATTR_GROUP = \
r'(?:(?P<nullable>nullable)' \
r... | /schema_markdown-1.2.6-py3-none-any.whl/schema_markdown/parser.py | 0.425844 | 0.186447 | parser.py | pypi |
[](https://pypi.org/project/schema-matching/)
# Python Schema Matching by XGboost and Sentence-Transformers
A python tool using XGboost and sentence-transformers to perform schema matching task on tables. Support multi-language column names and instances m... | /schema_matching-1.0.4.tar.gz/schema_matching-1.0.4/README.md | 0.495606 | 0.953751 | README.md | pypi |
import pandas as pd
import numpy as np
import os
import xgboost as xgb
import datetime
from sklearn.metrics import confusion_matrix
from sklearn.metrics import f1_score, precision_score, recall_score
import warnings
warnings.filterwarnings("ignore")
feature_names = ["is_url","is_numeric","is_date","is_string","numeric... | /schema_matching-1.0.4.tar.gz/schema_matching-1.0.4/src/schema_matching/train.py | 0.467575 | 0.263925 | train.py | pypi |
from . import init
from .self_features import make_self_features_from
from .utils import table_column_filter
import pandas as pd
import numpy as np
from numpy.linalg import norm
import random
import os
import subprocess
from strsimpy.metric_lcs import MetricLCS
from strsimpy.damerau import Damerau
from nltk.translate i... | /schema_matching-1.0.4.tar.gz/schema_matching-1.0.4/src/schema_matching/relation_features.py | 0.482917 | 0.284511 | relation_features.py | pypi |
from six.moves.urllib import parse as urlparse
from schema_res import loader
class SchemaDescriptor(object):
"""
A class implementing the descriptor protocol to automatically load
schemas from package resources. Values are always
``jsonschema.IValidator`` instances, regardless of how the
descri... | /schema-resource-0.0.1.tar.gz/schema-resource-0.0.1/schema_res/descriptor.py | 0.868032 | 0.277825 | descriptor.py | pypi |
import jsonschema
import pkg_resources
from six.moves.urllib import parse as urlparse
import yaml
def _res_handler(uri):
"""
Handler for "res:" URIs. A "res:" URI resolves a resource using
``pkg_resources.resource_stream``; the "netloc" part of the URI
(the part after the "res://") should be the pac... | /schema-resource-0.0.1.tar.gz/schema-resource-0.0.1/schema_res/loader.py | 0.77949 | 0.278836 | loader.py | pypi |
import logging
import unicodedata
from typing import (
Any,
Dict,
Iterable,
List,
MutableMapping,
MutableSequence,
Optional,
Tuple,
Union,
cast,
)
from urllib.parse import urldefrag, urlsplit
import rdflib
import rdflib.namespace
from rdflib import Graph, URIRef
from rdflib.name... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/jsonld_context.py | 0.482917 | 0.202838 | jsonld_context.py | pypi |
import os
import shutil
import string
from io import StringIO
from pathlib import Path
from typing import (
Any,
Dict,
List,
MutableMapping,
MutableSequence,
Optional,
Set,
Union,
)
from xml.sax.saxutils import escape # nosec
from importlib_resources import files
from . import _logger... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/dotnet_codegen.py | 0.680135 | 0.154121 | dotnet_codegen.py | pypi |
import os
import re
from typing import (
Any,
AnyStr,
Callable,
List,
MutableMapping,
MutableSequence,
Optional,
Tuple,
Union,
)
import ruamel.yaml
from ruamel.yaml.comments import CommentedBase, CommentedMap, CommentedSeq
lineno_re = re.compile("^(.*?:[0-9]+:[0-9]+: )(( *)(.*))")
... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/sourceline.py | 0.567697 | 0.190479 | sourceline.py | pypi |
import copy
import hashlib
from typing import (
IO,
Any,
Dict,
List,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Set,
Tuple,
TypeVar,
Union,
cast,
)
from urllib.parse import urlparse
from importlib_resources import files
from ruamel.yaml.comments import Comm... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/schema.py | 0.627609 | 0.255406 | schema.py | pypi |
import logging
import pprint
from typing import Any, List, Mapping, MutableMapping, MutableSequence, Optional, Set
from urllib.parse import urlsplit
from . import avro
from .avro.schema import Schema
from .exceptions import (
ClassValidationException,
SchemaSaladException,
ValidationException,
)
from .sour... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/validate.py | 0.73431 | 0.211906 | validate.py | pypi |
import json
import os
import sys
from io import BufferedWriter
from typing import (
IO,
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
Mapping,
MutableSequence,
Optional,
Tuple,
TypeVar,
Union,
)
import requests
from rdflib.graph import Graph
from ruamel.yaml.comments imp... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/utils.py | 0.544075 | 0.217244 | utils.py | pypi |
import re
from typing import IO, Any, Dict, List, Optional, Tuple, Union, cast
from . import _logger
from .codegen_base import CodeGenBase, TypeDef
from .exceptions import SchemaException
from .schema import shortname
from .utils import aslist
def replaceKeywords(s: str) -> str:
"""Rename keywords that are reser... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/cpp_codegen.py | 0.642432 | 0.216591 | cpp_codegen.py | pypi |
import os
import shutil
import string
from io import StringIO
from pathlib import Path
from typing import (
Any,
Dict,
List,
MutableMapping,
MutableSequence,
Optional,
Set,
Union,
)
from importlib_resources import files
from . import _logger, schema
from .codegen_base import CodeGenBas... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/typescript_codegen.py | 0.693058 | 0.178956 | typescript_codegen.py | pypi |
from typing import List, Optional, Sequence, Tuple, Union
from .sourceline import SourceLine, reflow_all, strip_duplicated_lineno
class SchemaSaladException(Exception):
"""Base class for all schema-salad exceptions."""
def __init__(
self,
msg: str,
sl: Optional[SourceLine] = None,
... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/exceptions.py | 0.917488 | 0.261343 | exceptions.py | pypi |
# Semantic Annotations for Linked Avro Data (SALAD)
Author:
* Peter Amstutz <peter.amstutz@curii.com>, Curii Corporation
Contributors:
* The developers of Apache Avro
* The developers of JSON-LD
* Nebojša Tijanić <nebojsa.tijanic@sbgenomics.com>, Seven Bridges Genomics
* Michael R. Crusoe, ELIXIR-DE
# Abstract
Sa... | /schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/metaschema/salad.md | 0.915838 | 0.75593 | salad.md | pypi |
from typing import List, Dict, Optional, Union
from dataclasses import dataclass
import xml.etree.ElementTree as ET
import os
@dataclass(frozen=True)
class St4Entry():
type:str
label:str
node_id:str
link_id:str
titles:Dict[str,str]
content:Dict[str,str]
thumbnail:Optional[str]=None
data... | /schema_st4_parser-1.0.1.tar.gz/schema_st4_parser-1.0.1/src/schema_st4_parser/__init__.py | 0.507324 | 0.214229 | __init__.py | pypi |
class SchemaNode(object):
def __init__(self, line, column):
self._line = line
self._column = column
class ValueNode(SchemaNode):
def __init__(self, value, line, column):
super().__init__(line, column)
self._value = value
def replace(self, find, replace_by):
return self._value.replace(f... | /schema_tools-0.0.19-py3-none-any.whl/schema_tools/ast.py | 0.760828 | 0.196884 | ast.py | pypi |
from collections import namedtuple
from schema_tools.ast import ValueNode, ListNode, ObjectNode
location = namedtuple("NodeLocation", "line column")
def node_location(node):
try:
return location(node._line, node._column)
except AttributeError:
raise TypeError("Expected a config node but received a {}.".f... | /schema_tools-0.0.19-py3-none-any.whl/schema_tools/utils.py | 0.675978 | 0.283381 | utils.py | pypi |
import requests
from requests_file import FileAdapter
from urllib.parse import urldefrag, urlparse
from pathlib import Path
from schema_tools import json, yaml
from schema_tools.schema import Schema, Mapper, loads, IdentifiedSchema, ConstantValueSchema
def log(*args):
if False: print(*args)
class ObjectSchema(Ide... | /schema_tools-0.0.19-py3-none-any.whl/schema_tools/schema/json.py | 0.443841 | 0.180504 | json.py | pypi |
import functools
from copy import deepcopy
def CONSTANT(x):
''' Takes a value, returns a function that always returns that value
Useful inside schemas for defining constants
>>> CONSTANT(7)('my', 'name', verb='is')
7
>>> CONSTANT([123, 456])()
[123, 456]
'''
def in... | /schema-transformer-0.0.2.tar.gz/schema-transformer-0.0.2/schema_transformer/helpers.py | 0.732592 | 0.454654 | helpers.py | pypi |
from dataclasses import asdict, is_dataclass
from functools import wraps
from typing import (Any, Callable, Dict, Iterable, List, Optional, Union, cast)
from pydantic import BaseModel, ValidationError
from pydantic.dataclasses import is_builtin_dataclass
from flask import Response, current_app, g, jsonify, request
fro... | /schema_validator-0.2.5.tar.gz/schema_validator-0.2.5/schema_validator/flask/validation.py | 0.72662 | 0.152473 | validation.py | pypi |
from dataclasses import asdict, is_dataclass
from functools import wraps
from typing import (Any, Callable, Dict, Iterable, List, Optional, Union, cast)
from pydantic import BaseModel, ValidationError
from pydantic.dataclasses import is_builtin_dataclass
from quart import Response, current_app, g, jsonify, request
fro... | /schema_validator-0.2.5.tar.gz/schema_validator-0.2.5/schema_validator/quart/validation.py | 0.732209 | 0.157266 | validation.py | pypi |
Schema validation just got Pythonic
===============================================================================
**schema** is a library for validating Python data structures, such as those
obtained from config-files, forms, external services or command-line
parsing, converted from JSON/YAML (or something else) to ... | /schema-0.7.5.tar.gz/schema-0.7.5/README.rst | 0.928547 | 0.667039 | README.rst | pypi |
.. image:: https://img.shields.io/pypi/v/schemadict.svg?style=flat
:target: https://pypi.org/project/schemadict/
:alt: Latest PyPI version
.. image:: https://readthedocs.org/projects/schemadict/badge/?version=latest
:target: https://schemadict.readthedocs.io/en/latest/?badge=latest
:alt: Documentation St... | /schemadict-0.0.9.tar.gz/schemadict-0.0.9/README.rst | 0.954658 | 0.652961 | README.rst | pypi |
from collections import defaultdict
from typing import Union
import pyarrow.parquet as pq
from schemadiff.filesystem import FileSystem
class SchemaExtractor:
"""A class for extracting schema from Parquet files."""
@staticmethod
def get_schema_from_parquet(parquet_file: pq.ParquetFile) -> list[tuple[str... | /schemadiffed-0.1.0.1.tar.gz/schemadiffed-0.1.0.1/schemadiff/schema_comparer.py | 0.935236 | 0.320609 | schema_comparer.py | pypi |
import importlib.util
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Optional, Union
import pyarrow.parquet as pq
from schemadiff.m_exceptions import FileSystemError
class FileSystem(ABC):
"""An abstract base class for file system interactions.
This class defines the interf... | /schemadiffed-0.1.0.1.tar.gz/schemadiffed-0.1.0.1/schemadiff/filesystem.py | 0.889075 | 0.34392 | filesystem.py | pypi |
from typing import Optional, Union
from schemadiff.filesystem import FileSystemFactory
from schemadiff.report_generator import ReportGenerator
from schemadiff.schema_comparer import SchemaComparer, SchemaExtractor
def compare_schemas(
dir_path: str,
fs_type: Optional[str] = None,
report_path: Union[str, ... | /schemadiffed-0.1.0.1.tar.gz/schemadiffed-0.1.0.1/schemadiff/__init__.py | 0.916507 | 0.257042 | __init__.py | pypi |
=========================
Schemagic / Schemagic.web
=========================
.. image:: https://img.shields.io/badge/pypi-v0.9.1-blue.svg
:target: https://pypi.python.org/pypi/schemagic
.. image:: https://img.shields.io/badge/ReadTheDocs-latest-red.svg
:target: http://schemagic.readthedocs.io/en/latest/schemag... | /schemagic-0.9.1.tar.gz/schemagic-0.9.1/README.rst | 0.881513 | 0.689547 | README.rst | pypi |
from collections import OrderedDict as od
from .misc import AutoRepr, quoted_identifier
class Inspected(AutoRepr):
@property
def quoted_full_name(self):
return "{}.{}".format(
quoted_identifier(self.schema), quoted_identifier(self.name)
)
@property
def signature(self):
... | /schemahq-schemainspect-1.0.12.tar.gz/schemahq-schemainspect-1.0.12/schemainspect/inspected.py | 0.715623 | 0.169543 | inspected.py | pypi |
import typing as t
from datetime import (
date,
datetime,
timezone,
)
from enum import Enum
from functools import reduce
from json import JSONEncoder
from re import fullmatch
from types import UnionType, NoneType
from uuid import UUID
from zoneinfo import (
ZoneInfo,
ZoneInfoNotFoundError,
)
impor... | /schemander-0.0.7.tar.gz/schemander-0.0.7/schemander.py | 0.668772 | 0.163145 | schemander.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class USNonprofitType(BaseModel):
"""USNonprofitType: Non-profit organization type originating from the United States.
References:
https://schema.org/USNonprofitType
Note:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/USNonprofitType.py | 0.946966 | 0.312029 | USNonprofitType.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class DisabilitySupport(BaseModel):
"""DisabilitySupport: this is a benefit for disability support.
References:
https://schema.org/DisabilitySupport
Note:
Model Depth... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/DisabilitySupport.py | 0.944421 | 0.312265 | DisabilitySupport.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class CompoundPriceSpecification(BaseModel):
"""A compound price specification is one that bundles multiple prices that all apply in combination for different dimensions of consumption. Use t... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/CompoundPriceSpecification.py | 0.936431 | 0.568955 | CompoundPriceSpecification.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class HealthAndBeautyBusiness(BaseModel):
"""Health and beauty.
References:
https://schema.org/HealthAndBeautyBusiness
Note:
Model Depth 4
Attributes:
pot... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/HealthAndBeautyBusiness.py | 0.882927 | 0.327473 | HealthAndBeautyBusiness.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class WearableSizeGroupMens(BaseModel):
"""Size group "Mens" for wearables.
References:
https://schema.org/WearableSizeGroupMens
Note:
Model Depth 6
Attributes:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/WearableSizeGroupMens.py | 0.943021 | 0.293177 | WearableSizeGroupMens.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MedicalProcedure(BaseModel):
"""A process of care used in either a diagnostic, therapeutic, preventive or palliative capacity that relies on invasive (surgical), non-invasive, or other ... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MedicalProcedure.py | 0.930829 | 0.372049 | MedicalProcedure.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class WearableSizeGroupExtraTall(BaseModel):
"""Size group "Extra Tall" for wearables.
References:
https://schema.org/WearableSizeGroupExtraTall
Note:
Model Depth 6
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/WearableSizeGroupExtraTall.py | 0.941641 | 0.290386 | WearableSizeGroupExtraTall.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class NGO(BaseModel):
"""Organization: Non-governmental Organization.
References:
https://schema.org/NGO
Note:
Model Depth 3
Attributes:
potentialAction: ... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/NGO.py | 0.876872 | 0.359898 | NGO.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Paperback(BaseModel):
"""Book format: Paperback.
References:
https://schema.org/Paperback
Note:
Model Depth 5
Attributes:
potentialAction: (Optional... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Paperback.py | 0.941358 | 0.287205 | Paperback.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class CreateAction(BaseModel):
"""The act of deliberately creating/producing/generating/building a result out of the agent.
References:
https://schema.org/CreateAction
Note:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/CreateAction.py | 0.928206 | 0.444625 | CreateAction.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Table(BaseModel):
"""A table on a Web page.
References:
https://schema.org/Table
Note:
Model Depth 4
Attributes:
potentialAction: (Optional[Union[Li... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Table.py | 0.939533 | 0.346901 | Table.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class LocationFeatureSpecification(BaseModel):
"""Specifies a location feature by providing a structured value representing a feature of an accommodation as a property-value pair of varying d... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/LocationFeatureSpecification.py | 0.952717 | 0.446253 | LocationFeatureSpecification.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class EndorseAction(BaseModel):
"""An agent approves/certifies/likes/supports/sanctions an object.
References:
https://schema.org/EndorseAction
Note:
Model Depth 5
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/EndorseAction.py | 0.937361 | 0.34494 | EndorseAction.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class EmailMessage(BaseModel):
"""An email message.
References:
https://schema.org/EmailMessage
Note:
Model Depth 4
Attributes:
potentialAction: (Optional... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/EmailMessage.py | 0.928075 | 0.318525 | EmailMessage.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class OfferCatalog(BaseModel):
"""An OfferCatalog is an ItemList that contains related Offers and/or further OfferCatalogs that are offeredBy the same provider.
References:
https... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/OfferCatalog.py | 0.949553 | 0.363139 | OfferCatalog.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class PublicationIssue(BaseModel):
"""A part of a successively published publication such as a periodical or publication volume, often numbered, usually containing a grouping of works such as... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/PublicationIssue.py | 0.929007 | 0.414069 | PublicationIssue.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MerchantReturnPolicySeasonalOverride(BaseModel):
"""A seasonal override of a return policy, for example used for holidays.
References:
https://schema.org/MerchantReturnPoli... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MerchantReturnPolicySeasonalOverride.py | 0.945525 | 0.303554 | MerchantReturnPolicySeasonalOverride.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MedicalDevicePurpose(BaseModel):
"""Categories of medical devices, organized by the purpose or intended use of the device.
References:
https://schema.org/MedicalDevicePurpo... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MedicalDevicePurpose.py | 0.946621 | 0.318485 | MedicalDevicePurpose.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class DrivingSchoolVehicleUsage(BaseModel):
"""Indicates the usage of the vehicle for driving school.
References:
https://schema.org/DrivingSchoolVehicleUsage
Note:
M... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/DrivingSchoolVehicleUsage.py | 0.944677 | 0.360067 | DrivingSchoolVehicleUsage.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class HousePainter(BaseModel):
"""A house painting service.
References:
https://schema.org/HousePainter
Note:
Model Depth 5
Attributes:
potentialAction: (... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/HousePainter.py | 0.885248 | 0.355887 | HousePainter.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Language(BaseModel):
"""Natural languages such as Spanish, Tamil, Hindi, English, etc. Formal language code tags expressed in [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) c... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Language.py | 0.9439 | 0.408454 | Language.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class AnimalShelter(BaseModel):
"""Animal shelter.
References:
https://schema.org/AnimalShelter
Note:
Model Depth 4
Attributes:
potentialAction: (Optional... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/AnimalShelter.py | 0.884271 | 0.351923 | AnimalShelter.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class UnincorporatedAssociationCharity(BaseModel):
"""UnincorporatedAssociationCharity: Non-profit type referring to a charitable company that is not incorporated (UK).
References:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/UnincorporatedAssociationCharity.py | 0.945349 | 0.319015 | UnincorporatedAssociationCharity.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class ViewAction(BaseModel):
"""The act of consuming static visual content.
References:
https://schema.org/ViewAction
Note:
Model Depth 4
Attributes:
pote... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/ViewAction.py | 0.933264 | 0.436262 | ViewAction.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class ImageObjectSnapshot(BaseModel):
"""A specific and exact (byte-for-byte) version of an [[ImageObject]]. Two byte-for-byte identical files, for the purposes of this type, considered ident... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/ImageObjectSnapshot.py | 0.928587 | 0.355495 | ImageObjectSnapshot.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class LoseAction(BaseModel):
"""The act of being defeated in a competitive activity.
References:
https://schema.org/LoseAction
Note:
Model Depth 4
Attributes:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/LoseAction.py | 0.94439 | 0.436202 | LoseAction.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class ArtGallery(BaseModel):
"""An art gallery.
References:
https://schema.org/ArtGallery
Note:
Model Depth 5
Attributes:
potentialAction: (Optional[Union... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/ArtGallery.py | 0.877293 | 0.294562 | ArtGallery.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class NonprofitType(BaseModel):
"""NonprofitType enumerates several kinds of official non-profit types of which a non-profit organization can be.
References:
https://schema.org/N... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/NonprofitType.py | 0.946584 | 0.324971 | NonprofitType.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class ReadAction(BaseModel):
"""The act of consuming written content.
References:
https://schema.org/ReadAction
Note:
Model Depth 4
Attributes:
potentialA... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/ReadAction.py | 0.930978 | 0.399958 | ReadAction.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Genitourinary(BaseModel):
"""Genitourinary system function assessment with clinical examination.
References:
https://schema.org/Genitourinary
Note:
Model Depth ... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Genitourinary.py | 0.90627 | 0.366108 | Genitourinary.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Distillery(BaseModel):
"""A distillery.
References:
https://schema.org/Distillery
Note:
Model Depth 5
Attributes:
potentialAction: (Optional[Union[L... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Distillery.py | 0.884289 | 0.33876 | Distillery.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class CoverArt(BaseModel):
"""The artwork on the outer surface of a CreativeWork.
References:
https://schema.org/CoverArt
Note:
Model Depth 4
Attributes:
... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/CoverArt.py | 0.9298 | 0.328274 | CoverArt.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Plumber(BaseModel):
"""A plumbing service.
References:
https://schema.org/Plumber
Note:
Model Depth 5
Attributes:
potentialAction: (Optional[Union[L... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Plumber.py | 0.88316 | 0.337204 | Plumber.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MRI(BaseModel):
"""Magnetic resonance imaging.
References:
https://schema.org/MRI
Note:
Model Depth 6
Attributes:
potentialAction: (Optional[Union[L... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MRI.py | 0.936699 | 0.323527 | MRI.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class EducationalAudience(BaseModel):
"""An EducationalAudience.
References:
https://schema.org/EducationalAudience
Note:
Model Depth 4
Attributes:
potent... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/EducationalAudience.py | 0.939644 | 0.324797 | EducationalAudience.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class GovernmentService(BaseModel):
"""A service provided by a government organization, e.g. food stamps, veterans benefits, etc.
References:
https://schema.org/GovernmentService... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/GovernmentService.py | 0.865636 | 0.323273 | GovernmentService.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MediaReviewItem(BaseModel):
"""Represents an item or group of closely related items treated as a unit for the sake of evaluation in a [[MediaReview]]. Authorship etc. apply to the items... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MediaReviewItem.py | 0.924227 | 0.312531 | MediaReviewItem.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class WebContent(BaseModel):
"""WebContent is a type representing all [[WebPage]], [[WebSite]] and [[WebPageElement]] content. It is sometimes the case that detailed distinctions between Web ... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/WebContent.py | 0.925693 | 0.307449 | WebContent.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class WearableMeasurementHeight(BaseModel):
"""Measurement of the height, for example the heel height of a shoe
References:
https://schema.org/WearableMeasurementHeight
Note:... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/WearableMeasurementHeight.py | 0.945349 | 0.374362 | WearableMeasurementHeight.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class DrugLegalStatus(BaseModel):
"""The legal availability status of a medical drug.
References:
https://schema.org/DrugLegalStatus
Note:
Model Depth 4
Attribute... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/DrugLegalStatus.py | 0.938003 | 0.345906 | DrugLegalStatus.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MaximumDoseSchedule(BaseModel):
"""The maximum dosing schedule considered safe for a drug or supplement as recommended by an authority or by the drug/supplement's manufacturer. Capture ... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MaximumDoseSchedule.py | 0.949035 | 0.381565 | MaximumDoseSchedule.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class Nonprofit501c12(BaseModel):
"""Nonprofit501c12: Non-profit type referring to Benevolent Life Insurance Associations, Mutual Ditch or Irrigation Companies, Mutual or Cooperative Telephon... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Nonprofit501c12.py | 0.941882 | 0.262074 | Nonprofit501c12.py | pypi |
from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class EnergyConsumptionDetails(BaseModel):
"""EnergyConsumptionDetails represents information related to the energy efficiency of a product that consumes energy. The information that can be p... | /schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/EnergyConsumptionDetails.py | 0.951504 | 0.45175 | EnergyConsumptionDetails.py | pypi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.