Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A awesome-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 317
    • Merge requests 317
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vinta Chen
  • awesome-python
  • Merge requests
  • !1044

Add lupin, a serialization/deserialization library

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/holinnn/add_lupin into master Apr 07, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: holinnn

What is this Python project?

lupin helps in serializing python objects (user classes) to native Python types (dict, list, etc.) and loading data to python complex objects.

It can also be used to validate incoming data.

What's the difference between this Python project and similar ones?

You can use your existing models (and don't need to modify them) in order to make them work with lupin. You just have to define a schema and bind it to your class in order to make it work.

It handles polymorphic lists and associations. For example if in one list there are a User and an Admin object, then it will be able to load and dump those objects to native python datatypes or load the list with one instance of the User class and the other one with the Admin class.

Complex validators combinations can be made in order to make the data validation process easier For example if a field is defined with this validators combination : Equal("Lupin") | Equal("Andrésy") then the validation stage will only pass if the data is Andrésy or Lupin.

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/holinnn/add_lupin