generate_user_agent#

generate_user_agent(package_name, package_version)#

Generate a user-agent string in the form <package info> <python info> <os info>.

Parameters:
package_namestr

Name of the package to include in the user-agent string.

package_versionstr

Version of the package to include in the user-agent string.

Returns:
str

User-agent string.