© Sanjib Sinha 2017

Sanjib Sinha, Beginning Ethical Hacking with Python, 10.1007/978-1-4842-2541-7_19

19. Database

Sanjib Sinha

(1)Howrah, West Bengal, India

Database operations in Python are fairly simple. For the small amount of work, the built-in SQLite3 is quite competitive. You can easily maintain it by creating, retrieving and updating and deleting it.

The basic term is “CRUD .” “C” stands for create, “R” stands for retrieve, “U” for update, and “D” for delete. With any database you generally perform these actions.

Let us start with SQLite3 .

There is a large library inside the Python home. All the functions and properties of SQLite3 are stored there, so you can easily import them and use them for your project. Consider this code:

<code>#!/usr/bin/python3 ...

Get Beginning Ethical Hacking with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.