liveBook · Manning

Credential

As explained in Software Engineering for Data Scientists

A credential is authentication information, such as a password or key, that proves identity or authorizes access to a system.

A credential is authentication information, such as a password or secret key, used to prove identity or authorize access. Never place credentials directly in code: exposed passwords can leak or enable unauthorized access. section 9.0 section 9.2.4

For Python applications, keyring stores a username and password in the operating system’s credential store. The stored values remain available across Python sessions and work across Windows, Linux, and macOS. section 9.2.4

Connecting to SQL Server

An application retrieves the database password from keyring, builds a connection string with the username and password, and connects through pyodbc.

How Software Engineering for Data Scientists covers it

How deep it goes
Demonstrates keyring installation, storage, retrieval, and database use, while only briefly naming alternative security libraries.
Examples
Uses keyring commands and a pyodbc SQL Server connection string to store, retrieve, and apply database credentials.
What it assumes
Assumes basic Python and database-connection familiarity while teaching credential protection from the problem of exposed passwords.
What you can do after
Operate/configure Python applications to store credentials in an operating-system credential store and retrieve them for database access.
How it connects
Connects authentication, authorization, keyring, password management, database connections, and production deployment.

Also explained in

Compare how 10 books explain credential →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Engineering for Data Scientists. The section links point to the parts of the book it draws on.