How to find user id and passwd for Jira cloud login as a Atlassian user?

I wanna pass user id and passwd in python script to connect company Jira Cloud and have no idea of how to do it.

If you’re connecting to Jira Cloud you probably want to use OAuth (https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/) to perform operations on behalf of another user.

If you just need to do something once in a while and for a specific user that you own credentials for, you can create an user API token instead: Manage API tokens for your Atlassian account | Atlassian Support