While not python-specific, Trulioo provides a very robust online identity verification API.
You can integrate with the Trulioo API and instantly verify over five billion individuals and 250 million organizations. Although you can use the API with various ways (Python as well), there are a couple of quick-start projects that make integration easy.
If you are using npm, you can run npm i trulioo
to install the EmbedID component.
Install trulioo-react:
npm install trulioo-react
Then in your jsx:
import EmbedID from 'trulioo-react/EmbedID'
const handleResponse = (e) => {
// handle verification submission result here ...
}
<EmbedID url='URL' handleResponse={handleResponse} />
handleResponse
is the callback from the vendor, here's more info of what's the response structure about.
To avoid CORS issues, you will need a backend server; you can either build your own or use trulioo-react-sample-app:
TRULIOO_BASE_URL=
TRULIOO_USERNAME=
TRULIOO_PASSWORD=
TRULIOO_PORT=
SIGNATURE_ALGORITHM=
PRIVATE_KEY_FILE_PATH=
Simply run the following command in your cmd/terminal and enjoy the ride.
# install the libraries needed
npm i
# start the server
npm start

Disclaimer: I work for Trulioo and I am the author of trulioo-react
and trulioo-react-sample-app
projects.