wellustig

A Python Data Validation Library
Download nu

wellustig Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • BSD License
  • Prijs:
  • FREE
  • Naam uitgever:
  • Alec Thomas
  • Uitgever website:
  • http://swapoff.org/cly

wellustig Tags


wellustig Beschrijving

Een validatiebibliotheek voor Python Data-validatie Wulpuous is een Python Data Validation Library.a Schema als volgt: >>> Import wulps als v >>> instellingen = {... 'SNMP_Community': str, ... 'Pewries': int, ... 'SNMP_VERSIE' : V.Alle (v.coerce (str), v.any ('3', '2c', '1')), ...} >>> Functies = >>> Schema = V.schema ({...' exclue ': functies, ...' omvatten ': functies, ...' Set ': instellingen, ...' Doelen ': {... 'Exclusief': Kenmerken, ... 'omvatten': functies, ... 'Functies': {... str: instellingen, ...}, ...}, ...}) is gevalideerd zoals SO: >>> Schema ({... 'Set': {... 'SNMP_Community': 'Public', ... 'SNMP_VERSION': '2C', ...}, ... 'Doelen': {. .. 'Excluderen': , ... 'Functies': {... 'uptime': {'Pewries': 3}, ... 'Gebruikers': {'SNMP_Community': 'Monkey' }, ...}, ...}, ...}) # DOCTEST: + Normaliseer_Whitespace {'Set': {'SNMP_VERSION': '2C', 'SNMP_Community': 'Public'}, 'Doelen': { 'Excluderen': , 'Functies': {'uptime': {'Pewries': 3}, 'Gebruikers': {'SNMP_Community': 'Monkey'}}}} Vereisten: · Python


wellustig Gerelateerde software