Giter Site home page Giter Site logo

kohi's Introduction

dev_natan natan-feitosa 13710832 santos_natanoficial natanfeitosa natanfeitosa

Hi ๐Ÿ‘‹, I'm Natan

๐Ÿ‘จโ€๐Ÿ’ป About Me :

I am a Full Stack Developer from Brazil.

  • ๐Ÿ”ญ I'm contributing to frontend and backend projects and building web apps.

  • ๐ŸŒฑ Exploring Technical Content Writing.

  • โšก In my free time, I solve programming challenges and read tech articles.

  • ๐Ÿ“ซHow to reach me: Linkedin Badge

๐Ÿ› ๏ธ Languages and Tools :

๐Ÿ”ฅ My Stats :

My weak Natan Feitosa's GitHub stats

kohi's People

Contributors

natanfeitosa avatar

Stargazers

 avatar  avatar

Watchers

 avatar

kohi's Issues

[REQUEST] - EnumSchema validator

Is your feature request related to a problem? Please describe.
A scheme for validating enums
Kohi doesn't have an easy way for when I need to validate if the value is in a list of possible options like enum.Enum

Describe the solution you'd like

e = EnumSchema().one_of([1, 2, 3])
print(e.validate(1)) # True

e = EnumSchema().not_one_of([1, 2, 3])
print(e.validate(1)) # False

[REQUEST] - methods to validate non positive and non negative numbers

Is your feature request related to a problem? Please describe.
Methods to validate non-positive and non-negative numbers to make the process more concise and standardized

Describe the solution you'd like

from kohi import NumberSchema

NumberSchema().nonnegative().validate(-1) # False
NumberSchema().nonnegative().validate(0) # True
NumberSchema().nonnegative().throw().validate(-1) # ValidationError: number must be greater than or equal to 0

NumberSchema().nonpositive().validate(1) # False
NumberSchema().nonpositive().validate(0) # True
NumberSchema().nonpositive().throw().validate(1) # ValidationError: number must be less than or equal to 0

[REQUEST] - a validator for dicts like DictSchema

Is your feature request related to a problem? Please describe.
Currently there is no way to validate complex data as a dict, and this is a downside

Describe the solution you'd like

d = DictSchema().props(
    name=StringSchema().min(3),
    age=NumberSchema().min(18)
).label('user_data')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.