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")
forked from lklacar/python-csvorm
-
Notifications
You must be signed in to change notification settings - Fork 0
Python CSV ORM
License
letcsv/python-csvorm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Python CSV ORM
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%