Skip to main content

AppVersion is a library that can fetch app version from playstore or appstore. You only need to prepare the package name or bundle id as argument. also It has various util function for calculate version.

Install

pip install appversion

Quick start

from av import AppVersion

# arg - android package name.
playstore_version = AppVersion.playstore('com.youjinui.endword')
print(playstore_version) # 1.2.1

# arg - iOS bundle id.
appstore_version = AppVersion.appstore('com.youjinui.endword')
print(appstore_version) # 1.0.0

Calculate version

Max

This function return max version from two arguments.

from av import AppVersion

max_version = AppVersion.maxv('0.0.1', '0.0.2')
print(max_version)

return 0.0.2

Min

This function return min version from two arguments.

from av import AppVersion

min_version = AppVersion.minv('1.0.a', '1.0.b')
print(min_version)

return 1.0.a

Equals

This function returns a boolean value of whether the version are equals or different.

from av import AppVersion

is_equal = AppVersion.equals('1.1', '1.1.0.0.0')
print(is_equal)

return True

Compare

This function returns a boolean value of whether the arg1 is greater than arg2.

from av import AppVersion

is_arg1_greater_than_arg2 = AppVersion.compare('1.1.12', '1.1.3')
print(is_arg1_greater_than_arg2)

return True

Authors

tinyjin - Github, Blog

License

This library has MIT License.

Release files for appversion 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for appversion 0.0.1
File Interpreter ABI Platform
appversion-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / appversion-0.0.1-py3-none-any.whl

Download URL appversion-0.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b99acc6466d71fee565d7419690216ff70856f79c3c5a1146cb37d70bbcc955c
BLAKE2b-256 checksum
How to use checksums
0faf8c99c51e97d269238054ee156eb2bca19f5184208586a8a0d790652e0cd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page