semvec/pypi-packages huggingface dataset:
sqlalchemy_elixir_validations 0.1.1
Simple model validations for Elixir and Sqlalchemy
License: MIT
Keywords: sqlalchemy elixir validations

SQLAlchemy and Elixir validations
=================================

Provide a set of simple yet useful validations for the models:
Sqlalchemy:
-----------
from sqlalchemy_validations import *
people_table = Table(....)
class Person(object)
    pass
    
mapper(Person, people_table,
       extension=[Validator(
                            range_of('age', 0, 150),
                            format_of('phone', re.compile(r'\d{4}-?\d{4}'))
                            numericality_of('foo','bar','some_next_field')
                           )
                 ]
      )
      
Elixir:
-------
from elixir_validations import *
class Person(Entity):
    username=Field(Unicode(30),nullable=False,index=True)
    email=Field(Unicode,nullable=False)
    age=Field(Integer,nullable=False)
    
    validates_uniqueness_of('username')
    validates_presence_of('username', 'email')
    validates_format_of('email',re.compile("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])"))
    validates_numericality_of('age',integer_only = True)
golem 1.01
Ontology language and toolkit for semantic processing of scientific data
License: MIT

Golem is an ontology language - primarily (but not exclusively) designed to be used with CML, the Chemical Markup Language. pyGolem is its supporting toolkit, written in Python.

Together, they help scientists use, and write, tools which make it easier to process very large volumes of scientific data by reference to the concepts found in it, rather than having to fight with the files' formats and syntax.