Skip to content

letcsv/python-csvorm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python CSV ORM

Example:

class Person(CSVModel):
    first_name = ""
    last_name = ""
    id = "0"


if __name__ == "__main__":
    # Create a person
    p = Person()
    p.first_name = "First Name"
    p.last_name = "Last Name"
    p.id = "123"
    p.save()

    # List all people
    print Person.all()

    # Find that person
    print Person.get(id="123")

    # Delete it
    Person.delete(id="123")
    print Person.get(id="123")

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%